DatumData Class

class NXOpen.Annotations.DatumData

Bases: NXOpen.TransientObject

Represents datum data

New in version NX4.0.0.

Properties

Property Description
AlwaysVertical Returns or sets the flag indicating whether the datum is always vertical (without the stub)
DrawX Returns or sets the flag indicating whether to draw X, where the leader terminates
Label Returns or sets the label

Methods

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

Property Detail

AlwaysVertical

DatumData.AlwaysVertical

Returns or sets the flag indicating whether the datum is always vertical (without the stub)

-------------------------------------

Getter Method

Signature AlwaysVertical

Returns:Flag indicating whether the datum is always vertical
Return type:bool

New in version NX4.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature AlwaysVertical

Parameters:alwaysVertical (bool) – Flag indicating whether the datum is always vertical

New in version NX4.0.0.

License requirements: None.

DrawX

DatumData.DrawX

Returns or sets the flag indicating whether to draw X, where the leader terminates

-------------------------------------

Getter Method

Signature DrawX

Returns:Flag indicating whether to draw X where leader termiantes
Return type:bool

New in version NX4.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature DrawX

Parameters:drawX (bool) – Flag indicating whether to draw X where leader termiantes

New in version NX4.0.0.

License requirements: None.

Label

DatumData.Label

Returns or sets the label

-------------------------------------

Getter Method

Signature Label

Returns:Datum label
Return type:str

New in version NX4.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature Label

Parameters:label (str) – Datum label

New in version NX4.0.0.

License requirements: None.

Method Detail

Dispose

DatumData.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

DatumData.GetSimpleDraftingAidPreferences

Returns the SimpleDraftingAidPreferences object

Signature GetSimpleDraftingAidPreferences()

Returns:Datum preferences
Return type:NXOpen.Annotations.SimpleDraftingAidPreferences

New in version NX4.0.0.

License requirements: None.

SetSimpleDraftingAidPreferences

DatumData.SetSimpleDraftingAidPreferences

Sets the SimpleDraftingAidPreferences object

Signature SetSimpleDraftingAidPreferences(preferences)

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

New in version NX4.0.0.

License requirements: None.