    

 ## On this page

  

 

 # Class CreateContact

 Last update: 16.07.2025 

Namespace: [VM.Managed.DAFUL.Operation.Util](VM.Managed.DAFUL.Operation.Util.md)  
Assembly: VMOpCore.dll

The utility class for the contacts creation.

```csharp
public class CreateContact

```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [CreateContact](VM.Managed.DAFUL.Operation.Util.CreateContact.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_)

## Constructors

### CreateContact()

```csharp
public CreateContact()

```

## Methods

### CreateGeneralContact(Document3D, IObjectBase, IObjectBase, string)

Create the rigid to rigid 3D contact.

```csharp
public static GeneralContact CreateGeneralContact(Document3D activeDocument, IObjectBase baseGeom, IObjectBase actionGeom, string strPrefixName)

```

#### Parameters

`activeDocument` Document3D

The active document.

`baseGeom` IObjectBase

The base geometry.

`actionGeom` IObjectBase

The action geometry.

`strPrefixName` [string](https://learn.microsoft.com/dotnet/api/system.string)

The rigid to rigid 3D contact prefix name.

#### Returns

GeneralContact

The new rigid to rigid 3D contact.

### CreateGeneralContact(Document3D, IObjectBase, IObjectBase, string, bool)

Create the rigid to rigid 3D contact.

```csharp
public static GeneralContact CreateGeneralContact(Document3D activeDocument, IObjectBase baseGeom, IObjectBase actionGeom, string name, bool getNewEntityName)

```

#### Parameters

`activeDocument` Document3D

The active document.

`baseGeom` IObjectBase

The base geometry.

`actionGeom` IObjectBase

The action geometry.

`name` [string](https://learn.microsoft.com/dotnet/api/system.string)

The rigid to rigid 3D contact prefix name.

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

Flag for creating a new entity if there is already an entity with the same name

#### Returns

GeneralContact

The new rigid to rigid 3D contact.

### CreateGeneralContact(Document, string, Body, Body, double)

Create general contact.

```csharp
public static GeneralContact CreateGeneralContact(Document doc, string strName, Body bodyFirst, Body bodySecond, double dTolerance)

```

#### Parameters

`doc` Document

The document

`strName` [string](https://learn.microsoft.com/dotnet/api/system.string)

The name

`bodyFirst` Body

The first body

`bodySecond` Body

The second body

`dTolerance` [double](https://learn.microsoft.com/dotnet/api/system.double)

The tolerance

#### Returns

GeneralContact

### CreateMbyNContactContact(Document3D, MultipleContactInfo\[\], MultipleContactInfo\[\], string, bool)

Create the rigid to rigid 3D contact.

```csharp
public static MbyNContact CreateMbyNContactContact(Document3D activeDocument, MultipleContactInfo[] baseGeoms, MultipleContactInfo[] actionGeoms, string name, bool getNewEntityName = false)

```

#### Parameters

`activeDocument` Document3D

The active document.

`baseGeoms` MultipleContactInfo\[\]

The base geometry.

`actionGeoms` MultipleContactInfo\[\]

The action geometry.

`name` [string](https://learn.microsoft.com/dotnet/api/system.string)

The rigid to rigid 3D contact prefix name.

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

Flag for creating a new entity if there is already an entity with the same name

#### Returns

MbyNContact

The new rigid to rigid 3D contact.

### CreateMbyNGeneralContact(Document3D, MultipleContactInfo\[\], MultipleContactInfo\[\], string)

Create the rigid to rigid 3D contact.

```csharp
public static MbyNContact CreateMbyNGeneralContact(Document3D activeDocument, MultipleContactInfo[] baseGeoms, MultipleContactInfo[] actionGeoms, string strPrefixName)

```

#### Parameters

`activeDocument` Document3D

The active document.

`baseGeoms` MultipleContactInfo\[\]

The base geometry.

`actionGeoms` MultipleContactInfo\[\]

The action geometry.

`strPrefixName` [string](https://learn.microsoft.com/dotnet/api/system.string)

The rigid to rigid 3D contact prefix name.

#### Returns

MbyNContact

The new rigid to rigid 3D contact.

### CreateRTR3D(Document3D, IContactableRigid3D, IContactableRigid3D, string)

Create the rigid to rigid 3D contact.

```csharp
public static RTR3D CreateRTR3D(Document3D activeDocument, IContactableRigid3D baseGeom, IContactableRigid3D actionGeom, string strPrefixName)

```

#### Parameters

`activeDocument` Document3D

The active document.

`baseGeom` IContactableRigid3D

The base geometry.

`actionGeom` IContactableRigid3D

The action geometry.

`strPrefixName` [string](https://learn.microsoft.com/dotnet/api/system.string)

The rigid to rigid 3D contact prefix name.

#### Returns

RTR3D

The new rigid to rigid 3D contact.

### GetMultipleInfoList(List&lt;IContactable&gt;, bool)

```csharp
public static MultipleContactInfo[] GetMultipleInfoList(List<IContactable> lst, bool isFront)

```

#### Parameters

`lst` [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)&lt;IContactable&gt;

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

#### Returns

MultipleContactInfo\[\]

### TryGetGeometry(IObjectBase, out IContactable, Document)

```csharp
public static bool TryGetGeometry(IObjectBase objectBase, out IContactable geometry, Document doc)

```

#### Parameters

`objectBase` IObjectBase

`geometry` IContactable

`doc` Document

#### Returns

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