Assembly: VM.API.Pre.Links.dll This class implements APIs for chained placing connector.
Inheritance
object ← CPlacingConnectorAPIExtension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)Methods
CalculatePinStiffness(string, string)
Calculate pin stiffness.Parameters
pinFilePath string
The pin file path.
pinName string
The pin name.
Returns
double The stiffness information that is calculated by this API.Exceptions
FileNotFoundException Will be thrown if ‘pinFilePath’ file path does not exist. ArgumentNullException Will be thrown if type of ‘pinName’ argument is empty.CalculatePulleyStiffness(string, string, string)
Calculate pulley stiffness.Parameters
pulleyFilePath string
The pulley file path.
pulleyName string
The pulley name.
pinFilePath string
The pin file path
Returns
List<double[]> The stiffness information that is calculated by this API.Exceptions
FileNotFoundException Will be thrown if ‘pulleyFilePath’ file path does not exist. ArgumentNullException Will be thrown if type of ‘pulleyName’ argument is empty. FileNotFoundException Will be thrown if ‘pinFilePath’ file path does not exist.CalculateSegmentStiffness(string)
Calculate segment stiffness.Parameters
segmentFilePath string
The segment file path.
Returns
Dictionary<string, VectorBase> The stiffness information that is calculated by this API.Exceptions
FileNotFoundException Will be thrown if ‘segmentFilePath’ file path does not exist.CreateCPlacingConnector(SubSystemDocument, Obj, string)
Create Chained placing connector CPlacingConnector.Parameters
document SubSystemDocument
The document to create the Chained placing connector.
chainedPlacing Obj
The chained placing.
name string
The name of the Pulley. If empty, default name starts with ‘CPlacingConnector_’ will be generated and used.
Returns
Obj The new Pulley object that is created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’, ‘chainedPlacing’ are null. ArgumentException Will be thrown if item type of ‘chainedPlacing’ is not ChainedPlacing.CreatePin(IChainedSegmentInfo, Obj, Vector, Vector, string)
Create pin Pin.Parameters
document IChainedSegmentInfo
The document to create the pin.
body Obj
The body to create the pin.
position Vector
The position to create the pin.
direction Vector
The direction to create the pin.
name string
The name of the Pin. If empty, default name starts with ‘Pin_’ will be generated and used.
Returns
Obj The new Pin object that is created by this API.Exceptions
ArgumentNullException Will be thrown if ‘document’, ‘body’ are null. ArgumentException Will be thrown if the magnitude of ‘direction’ is 0.CreatePulley(IChainedPathInfo, Obj, Vector, Vector, string)
Create pulley Pulley.Parameters
document IChainedPathInfo
The document to create the pulley.
body Obj
The body to create the pulley.
position Vector
The position to create the pulley.
axisZ Vector
The z-axis to create the pulley.
name string
The name of the Pulley. If empty, default name starts with ‘Pulley_’ will be generated and used.