> ## 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/2025-r2/lib/VM.Managed.DAFUL.Operation.Util)\
Assembly: VMOpCore.dll

The utility class for the contacts creation.

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

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[CreateContact](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r2/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/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_)

## 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](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 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](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 theme={null}
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 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\[]

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 theme={null}
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 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](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\<IContactable>, bool)

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

#### Parameters

`lst` [List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<IContactable>

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

#### Returns

MultipleContactInfo\[]

### 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](https://learn.microsoft.com/dotnet/api/system.boolean)
