Skip to main content

Motion Standalone Preprocessor C# library 2025 R2

Class CreateContact

Last update: 16.07.2025

Namespace: VM.Managed.DAFUL.Operation.Util
Assembly: VMOpCore.dll

The utility class for the contacts creation.

public class CreateContact

Inheritance

objectCreateContact

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects(object, LinkPropertyType)

Constructors

CreateContact()

public CreateContact()

Methods

CreateGeneralContact(Document3D, IObjectBase, IObjectBase, string)

Create the rigid to rigid 3D contact.

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

The new rigid to rigid 3D contact.

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

Create the rigid to rigid 3D contact.

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

The new rigid to rigid 3D contact.

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

Create general contact.

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

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

Create the rigid to rigid 3D contact.

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

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

The new rigid to rigid 3D contact.

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

Create the rigid to rigid 3D contact.

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

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.

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

The new rigid to rigid 3D contact.

GetMultipleInfoList(List, bool)

public static MultipleContactInfo[] GetMultipleInfoList(List<icontactable> lst, bool isFront)

Parameters

lst List

isFront bool

Returns

MultipleContactInfo[]

TryGetGeometry(IObjectBase, out IContactable, Document)

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

Parameters

objectBase IObjectBase

geometry IContactable

doc Document

Returns

bool

Connect with Ansys