NXOpen.UF.Ugmgr.CreateComponentPart¶
-
Ugmgr.
CreateComponentPart
()¶ Refer to UF_UGMGR_create_component_part for documentation.
Signature:
CreateComponentPart(parentPart, newPartName, refsetName, instanceName, units, layer, origin, csysMatrix, nObjects, objects, partType)
Parameters: - parentPart (Tag) – Tag of parent part
- newPartName (str) – Name of new component part
- refsetName (str) – Name of reference set
- instanceName (str) – Name of instance to add to parent part
- units (int) – 1 = MM,2 = Inches
- layer (int) – -1 = original0 = 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.
- partType (str) – Part type for the new component Part
Returns: Tag of instance
Return type: License requirements: None