Assembly: VM.API.Pre.EasyFlex.dll This class implements APIs for Tie and Weldclass.
Inheritance
object ← GlueAPIExtension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)Methods
CreateTieWithColor(SubSystemDocument, Obj, IEnumerable<Color>, Obj, IEnumerable<Color>, string, SymmetricType)
Parameters
document SubSystemDocument
baseBody Obj
baseColors IEnumerable<Color>
actionBody Obj
actionColors IEnumerable<Color>
tieName string
symmetricType SymmetricType
Returns
ObjCreateTieWithColor(PartDocument, Obj, IEnumerable<Color>, Obj, IEnumerable<Color>, string, SymmetricType)
Parameters
document PartDocument
baseBody Obj
baseColors IEnumerable<Color>
actionBody Obj
actionColors IEnumerable<Color>
tieName string
symmetricType SymmetricType
Returns
ObjCreateTieWithFaces(IDocument, IEnumerable<Obj>, IEnumerable<Obj>, string, SymmetricType)
Create Tie with faces.Parameters
document IDocument
The document to create the tie.
baseFaces IEnumerable<Obj>
The base faces
actionFaces IEnumerable<Obj>
The action faces
tieName string
The name of the tie. If empty, default name starts with ‘TIE_’ will be generated and used.
symmetricType SymmetricType
The symmetric type
Returns
Obj The new Tie object that is created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’ or ‘baseContactable’ or ‘actionContactable’ arguments are empty. ArgumentException Will be thrown if the type of ‘document’ is not SubSystemDocument and PartDocument.CreateTieWithFaceset(IDocument, Obj, Obj, string, SymmetricType)
Parameters
document IDocument
baseGeometry Obj
actionGeometry Obj
tieName string
symmetricType SymmetricType
Returns
ObjCreateWeld(IDocument, Obj, Obj, Vector, Vector, Vector?, string, ExpressionValueVariable?, ExpressionValueVariable?, Obj?, Color?)
Create Weld with two points.Parameters
document IDocument
The IDocument to create the weld in mesh free.
baseBody Obj
The base body of the weld in mesh free.
actionBody Obj
The action body of the weld in mesh free.
startPoint Vector
The start point of the weld in mesh free.
endPoint Vector
The end point of the weld in mesh free.
tangentialDirection Vector?
The tangential direction of the weld in mesh free.
name string
The name of the weld in mesh free.
number ExpressionValueVariable?
The num of element of the weld in mesh free.
halfLength ExpressionValueVariable?
The half length of element of the weld in mesh free.
material Obj?
The material of the weld in mesh free. This type should be ISO.
color Color?
The color of the weld in mesh free.
Returns
Obj the new Weld object created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’, ‘baseBody’, ‘actionBody’ argument is null. ArgumentException Will be thrown if the magnitude of ‘tangentialDirection’ is 0 and if the type of ‘material’ is not ‘ISO’. ArgumentException Will be thrown if ‘document’ is not SubSystemDocument and PartDocument. ArgumentException Will be thrown if ‘baseBody’, ‘actionBody’ is not Body and SolidBody or if ‘baseBody’ is equal to ‘actionBody’. ArgumentOutOfRangeException Will be thrown if ‘number’ value is less than 2.CreateWeld(IDocument, Obj, Obj, IEnumerable<Vector>, Vector?, string, ExpressionValueVariable?, Obj?, Color?)
Create Weld with multi points.Parameters
document IDocument
The IDocument to create the weld in mesh free.
baseBody Obj
The base body of the weld in mesh free.
actionBody Obj
The action body of the weld in mesh free.
positions IEnumerable<Vector>
The positions of the weld in mesh free.
tangentialDirection Vector?
The tangential direction of the weld in mesh free.
name string
The name of the weld in mesh free.
halfLength ExpressionValueVariable?
The half length of element of the weld in mesh free.
material Obj?
The material of the weld in mesh free. This type should be ISO.
color Color?
The color of the weld in mesh free.
Returns
Obj the new Weld object created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’, ‘baseBody’, ‘actionBody’ argument is null. ArgumentException Will be thrown if the magnitude of ‘tangentialDirection’ is 0 and if the type of ‘material’ is not ‘ISO’. ArgumentException Will be thrown if ‘document’ is not SubSystemDocument and PartDocument. ArgumentException Will be thrown if ‘baseBody’, ‘actionBody’ is not Body and SolidBody or if ‘baseBody’ is equal to ‘actionBody’.CreateWeld(IDocument, string, Obj, Obj, string, Obj?, Color?)
Create Weld with file.Parameters
document IDocument
The IDocument to create the weld in mesh free.
filePath string
The file path of the weld in mesh free.
baseBody Obj
The base body of the weld in mesh free.
actionBody Obj
The action body of the weld in mesh free.
name string
The name of the weld in mesh free.
material Obj?
The material of the weld in mesh free. This type should be ISO.
color Color?
The color of the weld in mesh free.