Skip to main content
Namespace: VM.API.Pre.Links
Assembly: VM.API.Pre.Links.dll
This class implements APIs for chained system.

Inheritance

object ← ChainedSystemAPI

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Methods

Add object to active document.

Parameters

chainedPlacing Obj The chained placing to add object. numberOfSegment int The number of segment. numberOfSegmentData int The number of segment data. preFixed IEnumerable<string> The pre-fixed names. The length is ‘numberOfSegmentData’. transforms IEnumerable<TMatrix> The segment transforms. The length is ‘numberOfSegment’. segmentDocuments IEnumerable<Document3D> The segment data documents. The length is ‘numberOfSegmentData’. isCreate bool The create flag. If operation is modify state, You can put the value in ‘false’.

Returns

IEnumerable<Obj> The new segment list

Exceptions

ArgumentNullException Will be thrown if ‘chainedPlacing’ arguments are empty. ArgumentException Will be thrown if type of ‘chainedPlacing’ is not ChainedPlacing. ArgumentException Will be thrown if type of ‘preFixed’, ‘transforms’, ‘segmentDocuments’ arguments are empty. ArgumentException Will be thrown if ‘numberOfSegmentData’ value is greater than ‘numberOfSegment’ value. ArgumentException Will be thrown if the length of ‘preFixed’ is not equal ‘numberOfSegmentData’ value. ArgumentException Will be thrown if the length of ‘segmentDocuments’ is not equal ‘numberOfSegmentData’ value. ArgumentException Will be thrown if the length of ‘transforms’ is not equal ‘numberOfSegment’ value. Change object layer.

Parameters

chainedPlacing Obj The chained placing to change object. visibleObjects IEnumerable<Obj> The objects to be changed. visibleStates IEnumerable<bool> The vislble flags.

Exceptions

ArgumentNullException Will be thrown if ‘chainedPlacing’ arguments are empty. ArgumentException Will be thrown if type of ‘chainedPlacing’ is not ChainedPlacing. ArgumentException Will be thrown if type of ‘visibleObjects’, ‘visibleStates’ argument is empty. Create center roller SolidBodyRoller with BuilderRollerCenterFlangeSimple builder.

Parameters

document DocumentChainedPath The document to create the center roller solid body. bodyName string The name of the SolidBodyRoller. 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 SolidBodyRoller object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ is null. Create center roller BodyRoller with BuilderRollerCenterFlangeSimple builder in part.

Parameters

document PartDocumentChainedPath The document to create the center roller body. color Color? The color of the new flat roller geometry. The default value is ‘0xBFAAAA’

Returns

Obj The new BodyRoller object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ is null. Create chained system ChainedPlacing.

Parameters

document SubSystemDocument The document to create the chained system. pathList IEnumerable<Obj> The path list. name string The name of the ChainedPlacing. If empty, default name starts with ‘CPlacing_’ will be generated and used.

Returns

Obj The new ChainedPlacing object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ , ‘pathList’ are null. ArgumentException Will be thrown if item type of ‘pathList’ is not InstanceContainer. Create double roller SolidBodyRoller with BuilderRollerDoubleFlangeSimple builder.

Parameters

document DocumentChainedPath The document to create the double roller solid body. bodyName string The name of the SolidBodyRoller. 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 SolidBodyRoller object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ is null. Create double roller BodyRoller with BuilderRollerDoubleFlangeSimple builder in part.

Parameters

document PartDocumentChainedPath The document to create the double roller body. color Color? The color of the new flat roller geometry. The default value is ‘0xBFAAAA’

Returns

Obj The new BodyRoller object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ is null. Create flat roller SolidBodyRoller with BuilderRollerFlatSimple builder.

Parameters

document DocumentChainedPath The document to create the flat roller solid body. bodyName string The name of the SolidBodyRoller. 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 SolidBodyRoller object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ is null. Create flat roller BodyRoller with BuilderRollerFlatSimple builder in part.

Parameters

document PartDocumentChainedPath The document to create the flat roller body. color Color? The color of the new flat roller geometry. The default value is ‘0xBFAAAA’

Returns

Obj The new BodyRoller object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ is null. Create general roller SolidBodyRoller with BuilderRollerGeneralSimple builder.

Parameters

document DocumentChainedPath The document to create the general roller solid body. bodyName string The name of the SolidBodyRoller. 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 SolidBodyRoller object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ is null. Create general roller BodyRoller with BuilderRollerGeneralSimple builder in part.

Parameters

document PartDocumentChainedPath The document to create the general roller body. color Color? The color of the new flat roller geometry. The default value is ‘0xBFAAAA’

Returns

Obj The new BodyRoller object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ is null. Create single roller SolidBodyRoller with BuilderRollerSingleFlangeSimple builder.

Parameters

document DocumentChainedPath The document to create the single roller solid body. bodyName string The name of the SolidBodyRoller. 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 SolidBodyRoller object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ is null. Create single roller BodyRoller with BuilderRollerSingleFlangeSimple builder in part.

Parameters

document PartDocumentChainedPath The document to create the single roller body. color Color? The color of the new flat roller geometry. The default value is ‘0xBFAAAA’

Returns

Obj The new BodyRoller object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ is null. Create sprocket SolidBodySprocket with BuilderSingleSprocketSimple builder.

Parameters

document DocumentChainedPath The document to create the sprocket solid body. bodyName string The name of the SolidBodySprocket. 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 SolidBodySprocket object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ is null. Create sprocket BodySprocket with BuilderSingleSprocketSimple builder in part.

Parameters

document PartDocumentChainedPath The document to create the sprocket body. color Color? The color of the new flat roller geometry. The default value is ‘0xBFAAAA’

Returns

Obj The new BodySprocket object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ is null. Add object to active document.

Parameters

chainedPlacing Obj The chained placing to delete object. deletedObjects IEnumerable<Obj> The objects to be deleted.

Exceptions

ArgumentNullException Will be thrown if ‘chainedPlacing’ arguments are empty. ArgumentException Will be thrown if type of ‘chainedPlacing’ is not ChainedPlacing. ArgumentException Will be thrown if type of ‘deletedObjects’ argument is empty.