AssociatedObject Class¶
-
class
NXOpen.Annotations.
AssociatedObject
¶ Bases:
NXOpen.TransientObject
Represents the objects to which the PMI applies.
Examples are size tolerance applied to a set of cylindrical faces, GD and T datum applied to a planar face, and so on. .. versionadded:: NX4.0.0
Methods¶
Method | Description |
---|---|
Dispose | Frees the object from memory. |
GetObjectIndex | Returns the associated object index |
GetObjects | Returns the objects. |
SetObjects | Sets the objects. |
Method Detail¶
Dispose¶
-
AssociatedObject.
Dispose
¶ Frees the object from memory.
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.0.
License requirements: None.
GetObjectIndex¶
-
AssociatedObject.
GetObjectIndex
¶ Returns the associated object index
Signature
GetObjectIndex(object)
Parameters: object ( NXOpen.DisplayableObject
) – Object for which index is to be returnedReturns: Unique integer assigned to the associated object Return type: int New in version NX4.0.0.
License requirements: None.
GetObjects¶
-
AssociatedObject.
GetObjects
¶ Returns the objects.
Signature
GetObjects()
Returns: List of objects Return type: list of NXOpen.NXObject
New in version NX4.0.0.
License requirements: None.
SetObjects¶
-
AssociatedObject.
SetObjects
¶ Sets the objects.
Following objects are allowed -
Signature
SetObjects(objects)
Parameters: objects (list of NXOpen.NXObject
) – List of new objectsNew in version NX4.0.0.
License requirements: None.