NXOpen.UF.Assem.AddPartToAssembly

Assem.AddPartToAssembly()

Refer to UF_ASSEM_add_part_to_assembly for documentation.

Signature: AddPartToAssembly(parentPart, part, refsetName, instanceName, origin, csysMatrix, layer)

Parameters:
  • parentPart (Tag) – tag of part to add instance to
  • part (str) – name of part to instance. The part name can include a directory path. This can not exceed MAX_FSPEC_NCHARS characters.
  • refsetName (str) – Name of reference set to use from component parts. The refset_name cannot exceed UF_OBJ_NAME_NCHARS characters, cannot include a directory path, and should not have a file extension.
  • instanceName (str) – Name of new instance The instance_name cannot exceed UF_OBJ_NAME_NCHARS characters, cannot include a directory path, and should not have a file extension.
  • origin (list of float) – Position in where the instance is to be created
  • csysMatrix (list of float) – Orientation of the instance
  • layer (int) – -1 Means use the original layers. 0 Means use the work layer 1-255 Means use the specified layer.
Returns:

A Tuple

Return type:

A tuple consisting of (instance,errorStatus)

instance(Tag): Tag of the new instance in the work part

errorStatus(`NXOpen.UF.Part.LoadStatus Refer to UF_PART_load_status_s for documentation.`): User allocted structure consisting of names and associated error codes. The allocated arrays must be freed with UF_free_string_array and UF_free. See the description of the UF_PART_load_status_t structure for details on freeing this structure.

License requirements: ASSEMBLIES MODULE