DatumTargetData Class — NXOpen Python API Reference 12.0.0 documentation

# DatumTargetData Class

class `NXOpen.Annotations.``DatumTargetData`

  Bases: `NXOpen.TransientObject`

  Represents datum target data

  New in version NX4.0.0.

# Properties

Property | Description
--- | ---
DatumLabel | Returns or sets the datum label.
Index | Returns or sets the target index.

# Methods

Method | Description
--- | ---
Dispose | Frees the object from memory.
GetSimpleDraftingAidPreferences | Returns the SimpleDraftingAidPreferences object
SetSimpleDraftingAidPreferences | Sets the SimpleDraftingAidPreferences object

# Property Detail

## DatumLabel

`DatumTargetData.``DatumLabel`

  Returns or sets the datum label.

  NOTE: The set method should not be used to edit a read-only object such as a Mirrored PMI object. If it is, the changes will be overridden when the part is updated.

  `-------------------------------------`

  Getter Method

  Signature `DatumLabel`

  Returns: | Datum label
  Return type: | str

  New in version NX4.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `DatumLabel`

  Parameters: | datumLabel (str) – New datum label

  New in version NX4.0.0.

  License requirements: None.

## Index

`DatumTargetData.``Index`

  Returns or sets the target index.

  NOTE: The set method should not be used to edit a read-only object such as a Mirrored PMI object. If it is, the changes will be overridden when the part is updated.

  `-------------------------------------`

  Getter Method

  Signature `Index`

  Returns: | Target index
  Return type: | int

  New in version NX4.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `Index`

  Parameters: | index (int) – New target index

  New in version NX4.0.0.

  License requirements: None.

# Method Detail

## Dispose

`DatumTargetData.``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.

## GetSimpleDraftingAidPreferences

`DatumTargetData.``GetSimpleDraftingAidPreferences`

  Returns the SimpleDraftingAidPreferences object

  Signature `GetSimpleDraftingAidPreferences()`

  Returns: | Datum target preferences
  Return type: | `NXOpen.Annotations.SimpleDraftingAidPreferences`

  New in version NX4.0.0.

  License requirements: None.

## SetSimpleDraftingAidPreferences

`DatumTargetData.``SetSimpleDraftingAidPreferences`

  Sets the SimpleDraftingAidPreferences object

  Signature `SetSimpleDraftingAidPreferences(preferences)`

  Parameters: | preferences (`NXOpen.Annotations.SimpleDraftingAidPreferences`) – New datum target preferences

  New in version NX4.0.0.

  License requirements: None.