NXOpen.UF.Assem.CreateComponentPart¶
-
Assem.
CreateComponentPart
()¶ Refer to UF_ASSEM_create_component_part for documentation.
Signature:
CreateComponentPart(parentPart, newPartName, refsetName, instanceName, units, layer, origin, csysMatrix, nObjects, objects)
Parameters: - parentPart (Tag) – Tag of parent part
- newPartName (str) – Name of new component part
- refsetName (str) – Name of reference set; must be no longer than UF_OBJ_NAME_NCHARS characters.
- instanceName (str) – Name of instance to add to parent part; must be no longer than UF_OBJ_NAME_NCHARS characters.
- units (int) – 1 = MM 2 = Inches
- layer (int) – -1 = original 0 = use work layer 1-255 = use specified layer
- origin (list of float) – Position in parent part where the instance is to be created.
- csysMatrix (list of float) – Orientation of the instance
- nObjects (int) – Number of objects in the “objects” array.
- objects (list of Tag) – Pointer to an array of tags of objects that should be moved to the new component part.
Returns: Tag of instance
Return type: License requirements: ASSEMBLIES MODULE