NXOpen.UF.Part.OpenSingleComponentAs

Part.OpenSingleComponentAs()

Refer to UF_PART_open_single_component_as for documentation.

Signature: OpenSingleComponentAs(component, newPartName)

Parameters:
  • component (Tag) – The component being opened
  • newPartName (str) – The component’s new part name
Returns:

A Tuple

Return type:

A tuple consisting of (part,errorStatus)

part(Tag): The component part that is opened

errorStatus(`NXOpen.UF.Part.LoadStatus Refer to UF_PART_load_status_s for documentation.`): The user 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(). For details see the definition of UF_PART_load_status_t.

License requirements: None