> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class Heal

Namespace: [VM.API.Pre.CAD](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.API.Pre.CAD)\
Assembly: VM.API.Pre.dll

This class implements APIs for heal.

```csharp theme={null}
public static class Heal
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Heal](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.API.Pre.CAD.Heal.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Methods

### HasDefect(Body, Action\<string>, bool)

Check if the body has defect.

```csharp theme={null}
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` [Action](https://learn.microsoft.com/dotnet/api/system.action-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>

The action delegate for output message.

`bShowDetailedInformation` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

The flag whether showing the detailed information.

#### Returns

[int](https://learn.microsoft.com/dotnet/api/system.int32)

The error type.

### HasDefect(IGeometryContainer, Action\<string>, bool)

Check if the geometry container has defect.

```csharp theme={null}
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` [Action](https://learn.microsoft.com/dotnet/api/system.action-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>

The action delegate for output message.

`bShowDetailedInformation` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

The flag whether showing the detailed information.

#### Returns

[int](https://learn.microsoft.com/dotnet/api/system.int32)

The error type.

### HasDefect(Obj, Action\<string>, bool)

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

#### Parameters

`entity` [Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.API.Pre.Obj.md)

`actOutMessage` [Action](https://learn.microsoft.com/dotnet/api/system.action-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>

`bShowDetailedInformation` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

#### Returns

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### Repair(Body, Action\<string>)

Repair the body.

```csharp theme={null}
public static int Repair(this Body body, Action<string> actOutMessage = null)
```

#### Parameters

`body` Body

The target body to repair.

`actOutMessage` [Action](https://learn.microsoft.com/dotnet/api/system.action-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>

The action delegate for output message.

#### Returns

[int](https://learn.microsoft.com/dotnet/api/system.int32)

The error type.

### Repair(IGeometryContainer, Action\<string>)

Repair the geometry container.

```csharp theme={null}
public static int Repair(this IGeometryContainer geometryContainer, Action<string> actOutMessage = null)
```

#### Parameters

`geometryContainer` IGeometryContainer

The target geometry container to repair.

`actOutMessage` [Action](https://learn.microsoft.com/dotnet/api/system.action-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>

The action delegate for output message.

#### Returns

[int](https://learn.microsoft.com/dotnet/api/system.int32)

The error type.

### Repair(Obj, Action\<string>)

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

#### Parameters

`entity` [Obj](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/lib/VM.API.Pre.Obj.md)

`actOutMessage` [Action](https://learn.microsoft.com/dotnet/api/system.action-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>

#### Returns

[int](https://learn.microsoft.com/dotnet/api/system.int32)
