NXOpen.UF.Part.OpenComponentAs¶
-
Part.
OpenComponentAs
()¶ Refer to UF_PART_open_component_as for documentation.
Signature:
OpenComponentAs(component, oldName, newName)
Parameters: - component (Tag) – The component being opened
- oldName (str) – The component’s current part name with ”.prt” file extension.
- newName (str) – The component’s new name part name with ”.prt” file extension.
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 structure must be freed with UF_PART_free_load_status. For details see the definition of UF_PART_load_status_t.License requirements: None