Skip to main content

Motion Standalone Preprocessor C# library 2025 R2

Class Heal

Last update: 16.07.2025

Namespace: VM.API.Pre.CAD
Assembly: VM.API.Pre.dll

This class implements APIs for heal.

public static class Heal

Inheritance

objectHeal

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects(object, LinkPropertyType)

Methods

HasDefect(Body, Action, bool)

Check if the body has defect.

public static int HasDefect(this Body body, Action<string> actOutMessage = null, bool bShowDetailedInformation = false)

Parameters

body Body

The target body to check the defect.

actOutMessage Actionstring&gt;

The action delegate for output message.

bShowDetailedInformation bool

The flag whether showing the detailed information.

Returns

int

The error type.

HasDefect(IGeometryContainer, Action, bool)

Check if the geometry container has defect.

public static int HasDefect(this IGeometryContainer geometryContainer, Action<string> actOutMessage = null, bool bShowDetailedInformation = false)

Parameters

geometryContainer IGeometryContainer

The geometry container to check the defect.

actOutMessage Actionstring&gt;

The action delegate for output message.

bShowDetailedInformation bool

The flag whether showing the detailed information.

Returns

int

The error type.

HasDefect(Obj, Action, bool)

[NotNullObj(new string[] { "entity" })]
public static int HasDefect(Obj entity, Action<string> actOutMessage = null, bool bShowDetailedInformation = false)

Parameters

entity Obj

actOutMessage Actionstring&gt;

bShowDetailedInformation bool

Returns

int

Repair(Body, Action)

Repair the body.

public static int Repair(this Body body, Action<string> actOutMessage = null)

Parameters

body Body

The target body to repair.

actOutMessage Actionstring&gt;

The action delegate for output message.

Returns

int

The error type.

Repair(IGeometryContainer, Action)

Repair the geometry container.

public static int Repair(this IGeometryContainer geometryContainer, Action<string> actOutMessage = null)

Parameters

geometryContainer IGeometryContainer

The target geometry container to repair.

actOutMessage Actionstring&gt;

The action delegate for output message.

Returns

int

The error type.

Repair(Obj, Action)

[NotNullObj(new string[] { "entity" })]
public static int Repair(Obj entity, Action<string> actOutMessage = null)

Parameters

entity Obj

actOutMessage Actionstring&gt;

Returns

int

Connect with Ansys