NXOpen.UF.Assem.SubstituteComponent

Assem.SubstituteComponent()

Refer to UF_ASSEM_substitute_component for documentation.

Signature: SubstituteComponent(instance, newPartVersion, newCompName, newRefsetName, layer)

Parameters:
  • instance (Tag) – Pointer to tag of instance
  • newPartVersion (str) – Name of new component part version
  • newCompName (str) – Name of new component; must be no longer than UF_OBJ_NAME_NCHARS characters.
  • newRefsetName (str) – Name of new reference set; must be no longer than UF_OBJ_NAME_NCHARS characters.
  • layer (int) – -1 = original 0 = use work layer 1-255 = use specified layer
Returns:

A Tuple

Return type:

A tuple consisting of (instance,loadStatus)

instance(Tag): Modified value of instance

loadStatus(`NXOpen.UF.Part.LoadStatus Refer to UF_PART_load_status_s for documentation.`): See the UF_PART_load_status_t structure definition. The allocated structure is filled with the names and associated error codes of any parts that did not load correctly. The allocated arrays must be freed with UF_free_string_array and UF_free.

License requirements: ASSEMBLIES MODULE