Assembles a model (as a component feature) into a container Assembly in the CAD environment.
This version uses a Coordinate system on the Assembly and the Component to assemble.
Use the other version of this method to assemble by Datum references.
Parameters
ContainerModel (string) - the model name to assemble the component into
ComponentFileName (string) - the model that is applied/inserted.
ComponentCoOrdIdentifier (string) - the coordinate system on the Component (to set position) (ID or Name)
AssemblyCoOrdIdentifier (string) - the coordinate system on the container assembly (to set position) (ID or Name)
Return Value
The newly created Feature ID (integer)
Remarks
none
Examples
Dim NewID as integer
NewID = CAD.Comp.Assemble("asm0001.asm","prt0001.prt", "CSYS_END", "CSYS_ASM_END")' -------- or -----------
Dim NewID as integer
NewID = CAD.Comp.Assemble("asm0001.asm","prt0001.prt", "7", "127")
' -------- to add component to a subassembly -----------
' -------where 40 is the component id in the assembly-----Dim NewID as integer
CAD.Comp.Assemble("asm0001.asm", "prt0001.prt", "PRT_CSYS_DEF", "40\CS0")