PendingComponentsManager Class¶
-
class
NXOpen.PDM.
PendingComponentsManager
¶ Bases:
NXOpen.TransientObject
This class is used for managing a part’s pending components, that is, those that have been added within Teamcenter but are not yet present in NX.
An instance of this class for a particular part can be created by calling
PDM.PartManager.NewPendingComponentsManager()
.New in version NX4.0.1.
Methods¶
Method | Description |
---|---|
AddComponent | Adds a pending component. |
AddNgcComponent | Adds a pending NGC component. |
ComponentHasPosition | Determines whether a given pending component has been positioned by Teamcenter. |
DeleteComponent | Deletes a pending component. |
Dispose | Free resources associated with the instance. |
GetComponentPartFileName | Gets the NX Manager file name for the part corresponding to a pending component. |
GetComponents | Gets handles for the pending components of the part associated with this object. |
Method Detail¶
AddComponent¶
-
PendingComponentsManager.
AddComponent
¶ Adds a pending component.
Signature
AddComponent(handle)
Parameters: handle (str) – the handle for the pending component Returns: a tuple Return type: A tuple consisting of (component, loadStatus). component is a NXOpen.Assemblies.Component
. loadStatus is aNXOpen.PartLoadStatus
. result of loading the component partNew in version NX4.0.1.
License requirements: None.
AddNgcComponent¶
-
PendingComponentsManager.
AddNgcComponent
¶ Adds a pending NGC component.
Signature
AddNgcComponent(handle)
Parameters: handle (str) – the handle for the pending ngc component Returns: a tuple Return type: A tuple consisting of (component, loadStatus). component is a NXOpen.Assemblies.Component
. loadStatus is aNXOpen.PartLoadStatus
. result of loading the ngc component partNew in version NX6.0.0.
License requirements: None.
ComponentHasPosition¶
-
PendingComponentsManager.
ComponentHasPosition
¶ Determines whether a given pending component has been positioned by Teamcenter.
If
PDM.PendingComponentsManager.AddComponent()
is called regarding a component without a position, it will automatically be positioned at the origin.Signature
ComponentHasPosition(handle)
Parameters: handle (str) – the handle for the pending component Returns: Return type: bool New in version NX4.0.1.
License requirements: None.
DeleteComponent¶
-
PendingComponentsManager.
DeleteComponent
¶ Deletes a pending component.
Signature
DeleteComponent(handle)
Parameters: handle (str) – the handle for the pending component New in version NX4.0.1.
License requirements: None.
Dispose¶
-
PendingComponentsManager.
Dispose
¶ Free resources associated with the instance.
After this method is called, it is illegal to use the object. In .NET, this method is automatically called when the object is deleted by the garbage collector.
Signature
Dispose()
New in version NX4.0.1.
License requirements: None.
GetComponentPartFileName¶
-
PendingComponentsManager.
GetComponentPartFileName
¶ Gets the NX Manager file name for the part corresponding to a pending component.
Signature
GetComponentPartFileName(handle)
Parameters: handle (str) – the handle for the pending component Returns: Return type: str New in version NX4.0.1.
License requirements: None.