    

 ## On this page

  

 

 # Class CreateContact

 Last update: 09.03.2026 

<a id="VM_Managed_DAFUL_Operation_Util_CreateContact"></a>

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 ← [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

### <a id="VM_Managed_DAFUL_Operation_Util_CreateContact__ctor"></a> CreateContact()

```csharp
public CreateContact()

```

## Methods

### <a id="VM_Managed_DAFUL_Operation_Util_CreateContact_CreateGeneralContact_VM_Managed_Document3D_VM_Models_Pre_IObjectBase_VM_Models_Pre_IObjectBase_System_String_"></a> 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

The rigid to rigid 3D contact prefix name.

#### Returns

[GeneralContact](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDCt/GeneralContact.cs)

The new rigid to rigid 3D contact.

### <a id="VM_Managed_DAFUL_Operation_Util_CreateContact_CreateGeneralContact_VM_Managed_Document3D_VM_Models_Pre_IObjectBase_VM_Models_Pre_IObjectBase_System_String_System_Boolean_"></a> 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

The rigid to rigid 3D contact prefix name.

`getNewEntityName` bool

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

#### Returns

[GeneralContact](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDCt/GeneralContact.cs)

The new rigid to rigid 3D contact.

### <a id="VM_Managed_DAFUL_Operation_Util_CreateContact_CreateGeneralContact_VM_Managed_Document_System_String_VM_Managed_CAD_Body_VM_Managed_CAD_Body_System_Double_"></a> 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

The name

`bodyFirst` Body

The first body

`bodySecond` Body

The second body

`dTolerance` double

The tolerance

#### Returns

[GeneralContact](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDCt/GeneralContact.cs)

### <a id="VM_Managed_DAFUL_Operation_Util_CreateContact_CreateMbyNContactContact_VM_Managed_Document3D_VM_Managed_DAFUL_Contact_MultipleContactInfo___VM_Managed_DAFUL_Contact_MultipleContactInfo___System_String_System_Boolean_"></a> 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](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDCt/MultipleContactBase.cs)\[\]

The base geometry.

`actionGeoms` [MultipleContactInfo](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDCt/MultipleContactBase.cs)\[\]

The action geometry.

`name` string

The rigid to rigid 3D contact prefix name.

`getNewEntityName` bool

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

#### Returns

[MbyNContact](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDCt/MbyNContact.cs)

The new rigid to rigid 3D contact.

### <a id="VM_Managed_DAFUL_Operation_Util_CreateContact_CreateMbyNGeneralContact_VM_Managed_Document3D_VM_Managed_DAFUL_Contact_MultipleContactInfo___VM_Managed_DAFUL_Contact_MultipleContactInfo___System_String_"></a> 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](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDCt/MultipleContactBase.cs)\[\]

The base geometry.

`actionGeoms` [MultipleContactInfo](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDCt/MultipleContactBase.cs)\[\]

The action geometry.

`strPrefixName` string

The rigid to rigid 3D contact prefix name.

#### Returns

[MbyNContact](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDCt/MbyNContact.cs)

The new rigid to rigid 3D contact.

### <a id="VM_Managed_DAFUL_Operation_Util_CreateContact_CreateRTR3D_VM_Managed_Document3D_VM_Managed_DAFUL_IContactableRigid3D_VM_Managed_DAFUL_IContactableRigid3D_System_String_"></a> 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

The rigid to rigid 3D contact prefix name.

#### Returns

[RTR3D](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDCt/RTR3D.cs)

The new rigid to rigid 3D contact.

### <a id="VM_Managed_DAFUL_Operation_Util_CreateContact_GetMultipleInfoList_System_Collections_Generic_List_VM_Managed_DAFUL_IContactable__System_Boolean_"></a> GetMultipleInfoList(List&lt;IContactable&gt;, bool)

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

```

#### Parameters

`lst` List&lt;IContactable&gt;

`isFront` bool

#### Returns

[MultipleContactInfo](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDCt/MultipleContactBase.cs)\[\]

### <a id="VM_Managed_DAFUL_Operation_Util_CreateContact_TryGetGeometry_VM_Models_Pre_IObjectBase_VM_Managed_DAFUL_IContactable__VM_Managed_Document_"></a> 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