> ## 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 CreateContact

Namespace: [VM.Managed.DAFUL.Operation.Util](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.Operation.Util)\
Assembly: VMOpCore.dll

The utility class for the contacts creation.

```csharp theme={null}
public class CreateContact
```

#### Inheritance

object ←
[CreateContact](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.Operation.Util.CreateContact.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/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/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/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### CreateContact()

```csharp theme={null}
public CreateContact()
```

## Methods

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

Create the rigid to rigid 3D contact.

```csharp theme={null}
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.

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

Create the rigid to rigid 3D contact.

```csharp theme={null}
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.

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

Create general contact.

```csharp theme={null}
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)

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

Create the rigid to rigid 3D contact.

```csharp theme={null}
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.

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

Create the rigid to rigid 3D contact.

```csharp theme={null}
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.

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

Create the rigid to rigid 3D contact.

```csharp theme={null}
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.

### GetMultipleInfoList(List\<IContactable>, bool)

```csharp theme={null}
public static MultipleContactInfo[] GetMultipleInfoList(List<IContactable> lst, bool isFront)
```

#### Parameters

`lst` List\<IContactable>

`isFront` bool

#### Returns

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

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

```csharp theme={null}
public static bool TryGetGeometry(IObjectBase objectBase, out IContactable geometry, Document doc)
```

#### Parameters

`objectBase` IObjectBase

`geometry` IContactable

`doc` Document

#### Returns

bool
