    

 ## On this page

  

 

 # Class Heal

 Last update: 16.07.2025 

Namespace: [VM.API.Pre.CAD](VM.API.Pre.CAD.md)  
Assembly: VM.API.Pre.dll

This class implements APIs for heal.

```csharp
public static class Heal

```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [Heal](VM.API.Pre.CAD.Heal.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkedObjects&lt;T&gt;(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Methods

### HasDefect(Body, Action&lt;string&gt;, bool)

Check if the body has defect.

```csharp
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)&lt;[string](https://learn.microsoft.com/dotnet/api/system.string)&gt;

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&lt;string&gt;, bool)

Check if the geometry container has defect.

```csharp
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)&lt;[string](https://learn.microsoft.com/dotnet/api/system.string)&gt;

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&lt;string&gt;, bool)

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

```

#### Parameters

`entity` [Obj](VM.API.Pre.Obj.md)

`actOutMessage` [Action](https://learn.microsoft.com/dotnet/api/system.action-1)&lt;[string](https://learn.microsoft.com/dotnet/api/system.string)&gt;

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

#### Returns

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

### Repair(Body, Action&lt;string&gt;)

Repair the body.

```csharp
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)&lt;[string](https://learn.microsoft.com/dotnet/api/system.string)&gt;

The action delegate for output message.

#### Returns

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

The error type.

### Repair(IGeometryContainer, Action&lt;string&gt;)

Repair the geometry container.

```csharp
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)&lt;[string](https://learn.microsoft.com/dotnet/api/system.string)&gt;

The action delegate for output message.

#### Returns

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

The error type.

### Repair(Obj, Action&lt;string&gt;)

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

```

#### Parameters

`entity` [Obj](VM.API.Pre.Obj.md)

`actOutMessage` [Action](https://learn.microsoft.com/dotnet/api/system.action-1)&lt;[string](https://learn.microsoft.com/dotnet/api/system.string)&gt;

#### Returns

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