Assembly: VM.API.Pre.dll This class implements APIs for contact classes.
Inheritance
object ← ContactAPIExtension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)Methods
CreateAutoContact(SubSystemDocument, IEnumerable<Obj>, ExpressionValueVariable?, string)
Parameters
subSystemDocument SubSystemDocument
objectList IEnumerable<Obj>
maximumDistance ExpressionValueVariable?
name string
Returns
ObjCreateCVCV(SubSystemDocument, Obj, Obj, string, FrictionContact, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?)
Parameters
subSystemDocument SubSystemDocument
baseCurveset Obj
actionCurveset Obj
name string
friction FrictionContact
baseClearance ExpressionValueVariable?
actionClearance ExpressionValueVariable?
stiffScaleFactor ExpressionValueVariable?
Returns
ObjCreateColorCurveSet(SubSystemDocument, Obj, IEnumerable<Color>, string)
Parameters
subSystemDocument SubSystemDocument
body Obj
colors IEnumerable<Color>
name string
Returns
ObjCreateColorCurveSet(PartDocument, Obj, IEnumerable<Color>, string)
Create PartSetCurveForEdges by color.Parameters
document PartDocument
The PartDocument to create a curve set by color.
body Obj
The body of a curve set.
colors IEnumerable<Color>
The colors of edges.
name string
The name of a curve set. If empty, default name starts with ‘CURVESET’ will be generated and used.
Returns
Obj The new PartSetCurveForEdges object created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’, ‘colors’, ‘body’ argument is null. ArgumentException Will be thrown if the type of ‘body’ is not equal to Body and SolidBody.CreateColorFaceSet(SubSystemDocument, Obj, IEnumerable<Color>, string)
Parameters
subSystemDocument SubSystemDocument
body Obj
colors IEnumerable<Color>
name string
Returns
ObjCreateColorFaceSet(PartDocument, Obj, IEnumerable<Color>, string)
Create PartSetFace by color.Parameters
document PartDocument
The PartDocument to create a face set by color.
body Obj
The body of a face set.
colors IEnumerable<Color>
The colors of faces.
name string
The name of a face set. If empty, default name starts with ‘FACESET_’ will be generated and used.
Returns
Obj The new PartSetFace object created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’, ‘colors’, ‘body’ argument is null. ArgumentException Will be thrown if the type of ‘body’ is not equal to Body and SolidBody.CreateContactTolerance(SubSystemDocument, IEnumerable<Obj>)
Create contact tolerance.Parameters
subSystemDocument SubSystemDocument
The SubSystemDocument to create contact tolerances.
objectList IEnumerable<Obj>
The object list of contacts.
Exceptions
ArgumentNullException Will be thrown if ‘subSystemDocument’, ‘objectList’ argument is null. ArgumentException Will be thrown if the type of ‘objectList’ is not equal to IGapSupport.CreateCurveSet(SubSystemDocument, IEnumerable<Obj>, string)
Parameters
subSystemDocument SubSystemDocument
edges IEnumerable<Obj>
name string
Returns
ObjCreateCurveSet(SubSystemDocument, string, Obj, string)
Parameters
subSystemDocument SubSystemDocument
filePath string
body Obj
name string
Returns
ObjCreateCurveSet(PartDocument, IEnumerable<Obj>, string)
Create PartSetCurveForEdgesParameters
document PartDocument
The PartDocument to create a curve set by edges.
edges IEnumerable<Obj>
The edges of a curve set.
name string
The name of a curve set. If empty, default name starts with ‘CURVESET’ will be generated and used.
Returns
Obj The new PartSetCurveForEdges object created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’, ‘edges’ argument is null. ArgumentException Will be thrown if the type of ‘edges’ is not equal to Edge.CreateCurveSet(PartDocument, string, Obj, string)
Create PartSetCurveForImportParameters
document PartDocument
The PartDocument to create a curve set by file import.
filePath string
The file path about points of a curve set.
body Obj
The body of a curve set.
name string
The name of a curve set. If empty, default name starts with ‘CURVESET’ will be generated and used.
Returns
Obj The new PartSetCurveForImport object created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’, ‘body’ argument is null. ArgumentException Will be thrown if the type of ‘body’ is not equal to Body and SolidBody.CreateCylinderToMultiCurveContact(SubSystemDocument, IEnumerable<Obj>, Obj, string)
Parameters
subSystemDocument SubSystemDocument
baseGeomerty IEnumerable<Obj>
actionGeomerty Obj
name string
Returns
ObjCreateCylinderToMultiCurveContact(SubSystemDocument, IEnumerable<Obj>, Obj, Vector, Vector, ExpressionValueVariable?, string)
Parameters
subSystemDocument SubSystemDocument
baseGeomerty IEnumerable<Obj>
actionGeomerty Obj
bottomPosition Vector
topPosition Vector
radius ExpressionValueVariable?
name string
Returns
ObjCreateExtractFaceSet(SubSystemDocument, Obj, Obj, ExpressionValueVariable?, string, bool, string, bool)
Parameters
subSystemDocument SubSystemDocument
firstBody Obj
secondBody Obj
tolerance ExpressionValueVariable?
firstFacesetName string
splitFirstBody bool
secondFacesetName string
splitSecondBody bool
CreateExtractFaceSet(SubSystemDocument, IEnumerable<Obj>, Obj, ExpressionValueVariable?, string, bool, string, bool)
Parameters
subSystemDocument SubSystemDocument
faces IEnumerable<Obj>
secondBody Obj
tolerance ExpressionValueVariable?
firstFacesetName string
splitFirstBody bool
secondFacesetName string
splitSecondBody bool
CreateFaceSet(SubSystemDocument, IEnumerable<Obj>, string)
Parameters
subSystemDocument SubSystemDocument
faces IEnumerable<Obj>
name string
Returns
ObjCreateFaceSet(PartDocument, IEnumerable<Obj>, string)
Create PartSetFaceParameters
document PartDocument
The PartDocument to create a face set.
faces IEnumerable<Obj>
The faces of a face set.
name string
The name of a face set. If empty, default name starts with ‘FACESET_’ will be generated and used.
Returns
Obj The new PartSetFace object created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’, ‘faces’ argument is null. ArgumentException Will be thrown if the type of ‘faces’ is not equal to Face.CreateGeneralContact(IDocument, Obj, Obj, string)
Parameters
document IDocument
baseEntity Obj
actionEntity Obj
contactName string
Returns
ObjCreateGeneralContactWithFaces(IDocument, IEnumerable<Obj>, IEnumerable<Obj>, string)
Parameters
document IDocument
baseFaces IEnumerable<Obj>
actionFaces IEnumerable<Obj>
contactName string
Returns
ObjCreateMbyNContact(SubSystemDocument, IEnumerable<Obj>, IEnumerable<Obj>, string)
Create MbyNContactParameters
subSystemDocument SubSystemDocument
The SubSystemDocument to create M by N contacts.
baseGeomerty IEnumerable<Obj>
The base geomerty of M by N contacts.
actionGeomerty IEnumerable<Obj>
The action geomerty of M by N contacts.
name string
The name of M by N contacts. If empty, default name starts with ‘MbyN’ will be generated and used.
Returns
Obj The new MbyNContact object created by this API.Exceptions
ArgumentNullException Will be thrown if ‘subSystemDocument’, ‘baseGeomerty’, ‘actionGeomerty’ argument is null. ArgumentException Will be thrown if the type of ‘baseGeomerty’, ‘actionGeomerty’ is not equal to IContactable3D and SolidBody.CreateMultiCurveToMultiCurveContact(SubSystemDocument, IEnumerable<Obj>, IEnumerable<Obj>, string)
Parameters
subSystemDocument SubSystemDocument
baseGeomerty IEnumerable<Obj>
actionGeomerty IEnumerable<Obj>
name string
Returns
ObjCreateNCombinationContact(SubSystemDocument, IEnumerable<Obj>, string)
Create NCombinationContactParameters
subSystemDocument SubSystemDocument
The SubSystemDocument to create N combination contacts.
geomerty IEnumerable<Obj>
The geomerty of N combination contacts.
name string
The name of N combination contacts. If empty, default name starts with ‘NCombi’ will be generated and used.
Returns
Obj The new NCombinationContact object created by this API.Exceptions
ArgumentNullException Will be thrown if ‘subSystemDocument’, ‘geomerty’ argument is null. ArgumentException Will be thrown if the type of ‘geomerty’ is not equal to IContactable3D and SolidBody.CreatePTCV(SubSystemDocument, Obj, Obj, Vector, string, Relative, FrictionContact, ExpressionValueVariable?, ExpressionValueVariable?)
Parameters
subSystemDocument SubSystemDocument
baseCurveset Obj
actionBody Obj
actionPosition Vector
name string
relative Relative
friction FrictionContact
baseClearance ExpressionValueVariable?
stiffScaleFactor ExpressionValueVariable?
Returns
ObjCreateSphereToMultiCurveContact(SubSystemDocument, IEnumerable<Obj>, Obj, string)
Parameters
subSystemDocument SubSystemDocument
baseGeomerty IEnumerable<Obj>
actionGeomerty Obj
name string
Returns
ObjCreateSphereToMultiCurveContact(SubSystemDocument, IEnumerable<Obj>, Obj, Vector, ExpressionValueVariable?, string)
Parameters
subSystemDocument SubSystemDocument
baseGeomerty IEnumerable<Obj>
actionGeomerty Obj
centerPosition Vector
radius ExpressionValueVariable?
name string