LabelData Class

class NXOpen.Annotations.LabelData

Bases: NXOpen.TransientObject

Represents label data

New in version NX4.0.0.

Methods

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

Method Detail

Dispose

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

LabelData.GetSimpleDraftingAidPreferences

Returns the SimpleDraftingAidPreferences object

Signature GetSimpleDraftingAidPreferences()

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

New in version NX4.0.0.

License requirements: None.

GetText

LabelData.GetText

Returns the text

Signature GetText()

Returns:List of lines
Return type:list of str

New in version NX4.0.0.

License requirements: None.

SetSimpleDraftingAidPreferences

LabelData.SetSimpleDraftingAidPreferences

Sets the SimpleDraftingAidPreferences object

Signature SetSimpleDraftingAidPreferences(preferences)

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

New in version NX4.0.0.

License requirements: None.

SetText

LabelData.SetText

Sets the text

Signature SetText(lines)

Parameters:lines (list of str) – List of new lines

New in version NX4.0.0.

License requirements: None.