NXOpen.UF.Assem.UpgradeToInstances¶
-
Assem.
UpgradeToInstances
()¶ Refer to UF_ASSEM_upgrade_to_instances for documentation.
Signature:
UpgradeToInstances(part, nComponents, components, recurse, createComponent)
Parameters: - part (Tag) – Tag of part containing components to be upgraded
- nComponents (int) – Number of components in the “components” array
- components (list of Tag) – n_componentsArray of old style components to be upgraded
- recurse (bool) – TRUE = recurse thru listed components upgrading their subassemblies; FALSE = only upgrade components listed
- createComponent (bool) – FALSE = look for v10 part in memory and disk and update with part if found; otherwise fail to upgrade component TRUE = Try above, if part not found create part in current directory and move geometry to it
Returns: A Tuple
Return type: A tuple consisting of (upgradeStatus,bool)
upgradeStatus(
`NXOpen.UF.Assem.UpgradeStatus
Refer to UF_ASSEM_upgrade_status_s for documentation.`): Contains failure code for each component that failed to upgrade. Structure arrays must be freed with UF_free.retVar(bool): Returns TRUE if successful; otherwise returns FALSE.
License requirements: None