Assembly: VM.API.Pre.Links.dll This class implements APIs for chained system.
Inheritance
object ← TrackedSystemAPIExtension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)Methods
AddPathObjectToDocument(Obj, IEnumerable<Obj>, IEnumerable<Document3D>)
Add path to active document.Parameters
trackPlacing Obj
The track placing to add object.
paths IEnumerable<Obj>
The paths.
pathDocuments IEnumerable<Document3D>
The path data documents.
Returns
IEnumerable<Obj> The new path listExceptions
ArgumentNullException Will be thrown if ‘trackPlacing’ arguments are empty. ArgumentException Will be thrown if type of ‘trackPlacing’ is not TrackPlacing. ArgumentException Will be thrown if ‘paths’, ‘pathDocuments’ arguments are empty. ArgumentException Will be thrown if length of ‘paths’ and length of ‘pathDocuments’ are not equal.CreateDouble(DocumentChainedSegment, string, Color?, bool)
Create double shoe SolidBodyShoe with BuilderShoeUserDefined builder.Parameters
document DocumentChainedSegment
The document to create the double shoe solid body.
bodyName string
The name of the SolidBodyShoe. If empty, default name starts with ‘BD_’ will be generated and used.
color Color?
The color of the new flat roller geometry. The default value is ‘0xBFAAAA’
isInterface bool
‘true’ if it is interface body. Otherwise, ‘false’.
Returns
Obj The new SolidBodyShoe object that is created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’ is null.CreateDouble(PartDocumentChainedSegment, Color?)
Create double shoe BodyShoe with BuilderShoeUserDefined builder in part.Parameters
document PartDocumentChainedSegment
The document to create the double shoe body.
color Color?
The color of the new flat roller geometry. The default value is ‘0xBFAAAA’
Returns
Obj The new BodyLink object that is created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’ is null.CreateSimple(DocumentChainedSegment, string, Color?, bool)
Create simple link SolidBodyLink with BuilderLinkUserDefined builder.Parameters
document DocumentChainedSegment
The document to create the simple link solid body.
bodyName string
The name of the SolidBodyLink. If empty, default name starts with ‘BD_’ will be generated and used.
color Color?
The color of the new flat roller geometry. The default value is ‘0xBFAAAA’
isInterface bool
‘true’ if it is interface body. Otherwise, ‘false’.
Returns
Obj The new SolidBodyLink object that is created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’ is null.CreateSimple(PartDocumentChainedSegment, Color?)
Create simple link BodyLink with BuilderLinkUserDefined builder in part.Parameters
document PartDocumentChainedSegment
The document to create the simple link body.
color Color?
The color of the new flat roller geometry. The default value is ‘0xBFAAAA’
Returns
Obj The new BodyLink object that is created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’ is null.CreateSingle(DocumentChainedSegment, string, Color?, bool)
Create single shoe SolidBodyShoe with BuilderShoeUserDefined builder.Parameters
document DocumentChainedSegment
The document to create the single shoe solid body.
bodyName string
The name of the SolidBodyShoe. If empty, default name starts with ‘BD_’ will be generated and used.
color Color?
The color of the new flat roller geometry. The default value is ‘0xBFAAAA’
isInterface bool
‘true’ if it is interface body. Otherwise, ‘false’.
Returns
Obj The new SolidBodyShoe object that is created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’ is null.CreateSingle(PartDocumentChainedSegment, Color?)
Create single shoe BodyShoe with BuilderShoeUserDefined builder in part.Parameters
document PartDocumentChainedSegment
The document to create the single shoe body.
color Color?
The color of the new flat roller geometry. The default value is ‘0xBFAAAA’
Returns
Obj The new BodyLink object that is created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’ is null.CreateTrackedSystem(SubSystemDocument, string)
Create tracked system TrackPlacing.Parameters
document SubSystemDocument
The document to create the tracked system.
name string
The name of the TrackPlacing. If empty, default name starts with ‘TPlacing_’ will be generated and used.
Returns
Obj The new TrackPlacing object that is created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’ is null.CreateTriple(DocumentChainedSegment, string, Color?, bool)
Create triple shoe SolidBodyShoe with BuilderShoeUserDefined builder.Parameters
document DocumentChainedSegment
The document to create the triple shoe solid body.
bodyName string
The name of the SolidBodyShoe. If empty, default name starts with ‘BD_’ will be generated and used.
color Color?
The color of the new flat roller geometry. The default value is ‘0xBFAAAA’
isInterface bool
‘true’ if it is interface body. Otherwise, ‘false’.
Returns
Obj The new SolidBodyShoe object that is created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’ is null.CreateTriple(PartDocumentChainedSegment, Color?)
Create triple shoe BodyShoe with BuilderShoeUserDefined builder in part.Parameters
document PartDocumentChainedSegment
The document to create the triple shoe body.
color Color?
The color of the new flat roller geometry. The default value is ‘0xBFAAAA’
Returns
Obj The new BodyLink object that is created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’ is null.CreateUserDefined(DocumentChainedSegment, string, Color?, bool)
Create user-defined shoe SolidBodyShoe with BuilderShoeUserDefined builder.Parameters
document DocumentChainedSegment
The document to create the user-defined shoe solid body.
bodyName string
The name of the SolidBodyShoe. If empty, default name starts with ‘BD_’ will be generated and used.
color Color?
The color of the new flat roller geometry. The default value is ‘0xBFAAAA’
isInterface bool
‘true’ if it is interface body. Otherwise, ‘false’.
Returns
Obj The new SolidBodyShoe object that is created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’ is null.CreateUserDefined(PartDocumentChainedSegment, Color?)
Create user-defined shoe BodyShoe with BuilderShoeUserDefined builder in part.Parameters
document PartDocumentChainedSegment
The document to create the user-defined shoe body.
color Color?
The color of the new flat roller geometry. The default value is ‘0xBFAAAA’
Returns
Obj The new BodyLink object that is created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’ is null.CreateVType(DocumentChainedSegment, string, Color?, bool)
Create V-type link SolidBodyLink with BuilderLinkUserDefined builder.Parameters
document DocumentChainedSegment
The document to create the V-type link solid body.
bodyName string
The name of the SolidBodyLink. If empty, default name starts with ‘BD_’ will be generated and used.
color Color?
The color of the new flat roller geometry. The default value is ‘0xBFAAAA’
isInterface bool
‘true’ if it is interface body. Otherwise, ‘false’.
Returns
Obj The new SolidBodyLink object that is created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’ is null.CreateVType(PartDocumentChainedSegment, Color?)
Create V-type link BodyLink with BuilderLinkUserDefined builder in part.Parameters
document PartDocumentChainedSegment
The document to create the V-type link body.
color Color?
The color of the new flat roller geometry. The default value is ‘0xBFAAAA’
Returns
Obj The new BodyLink object that is created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’ is null.ReplaceDesignPosition(Obj, Obj, ExpressionValueVariable, TMatrix)
Replace design position.Parameters
segmentBody Obj
The segment body.
designPoint Obj
The design point to be replaced.
value ExpressionValueVariable
The value to be replaced with axis.
matT TMatrix
The transformation to be replaced.
Exceptions
ArgumentNullException Will be thrown if ‘segmentBody’,‘designPoint’ arguments are empty. ArgumentException Will be thrown if type of ‘segmentBody’ is not BodyShoe or BodyLink or SolidBodyShoe or SolidBodyLink. ArgumentException Will be thrown if type of ‘designPoint’ is not DesignPoint.RestorePathToOriginPositionAndOrientation(Obj, IEnumerable<Obj>, IEnumerable<TMatrix>)
Parameters
trackPlacing Obj
paths IEnumerable<Obj>
transforms IEnumerable<TMatrix>