NoteData Class — NXOpen Python API Reference 12.0.0 documentation

# NoteData Class

class `NXOpen.Annotations.``NoteData`

  Bases: `NXOpen.TransientObject`

  Represents note 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

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

`NoteData.``GetSimpleDraftingAidPreferences`

  Returns the SimpleDraftingAidPreferences object

  Signature `GetSimpleDraftingAidPreferences()`

  Returns: | Note preferences
  Return type: | `NXOpen.Annotations.SimpleDraftingAidPreferences`

  New in version NX4.0.0.

  License requirements: None.

## GetText

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

`NoteData.``SetSimpleDraftingAidPreferences`

  Sets the SimpleDraftingAidPreferences object

  Signature `SetSimpleDraftingAidPreferences(preferences)`

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

  New in version NX4.0.0.

  License requirements: None.

## SetText

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