AnnotationPreferences Class — NXOpen Python API Reference 12.0.0 documentation

# AnnotationPreferences Class

class `NXOpen.Preferences.``AnnotationPreferences`

  Bases: `object`

  Represents the global preferences for annotations

  To obtain an instance of this class, refer to `NXOpen.Annotations.AnnotationManager`

  New in version NX3.0.0.

# Methods

Method | Description
--- | ---
GetAngularTolerances | Returns the global angular tolerances for the part
GetDimensionPreferences | Returns the global dimension preferences for the part
GetFrameBarPreferences | Returns the global frame bar preferences for the part
GetLetteringPreferences | Returns the global lettering preferences for the part
GetLineAndArrowPreferences | Returns the global line and arrow preferences for the part
GetLinearTolerances | Returns the global linear tolerances for the part
GetNxFontCharacterSpaceFactor | Returns the NX font text space factor for each text type (dimension,general,appended,tolerance) for the part
GetPmiPreferences | Returns the global PMI preferences for the part
GetStandardFontCharacterSpaceFactor | Returns the standard font text space factor for each text type (dimension,general,appended,tolerance) for the part
GetSymbolPreferences | Returns the global symbol preferences for the part
SetAngularTolerances | Sets the global angular tolerances for the part
SetDimensionPreferences | Sets the global dimension preferences for the part
SetFrameBarPreferences | Sets the global frame bar preferences for the part
SetLetteringPreferences | Sets the global lettering preferences for the part
SetLineAndArrowPreferences | Sets the global line and arrow preferences for the part
SetLinearTolerances | Sets the global linear tolerances for the part
SetNxFontCharacterSpaceFactor | Sets the NX font text space factor for each text type (dimension,general,appended,tolerance) for the part
SetPmiPreferences | Sets the global PMI preferences for the part
SetStandardFontCharacterSpaceFactor | Sets the standard font text space factor for each text type (dimension,general,appended,tolerance) for the part
SetSymbolPreferences | Sets the global symbol preferences for the part

# Method Detail

## GetAngularTolerances

`AnnotationPreferences.``GetAngularTolerances`

  Returns the global angular tolerances for the part

  Signature `GetAngularTolerances()`

  Returns: |
  Return type: | `NXOpen.Annotations.AngularTolerance`

  New in version NX4.0.0.

  License requirements: None.

## GetDimensionPreferences

`AnnotationPreferences.``GetDimensionPreferences`

  Returns the global dimension preferences for the part

  Signature `GetDimensionPreferences()`

  Returns: |
  Return type: | `NXOpen.Annotations.DimensionPreferences`

  New in version NX4.0.0.

  License requirements: None.

## GetFrameBarPreferences

`AnnotationPreferences.``GetFrameBarPreferences`

  Returns the global frame bar preferences for the part

  Signature `GetFrameBarPreferences()`

  Returns: |
  Return type: | `NXOpen.Annotations.FrameBarPreferences`

  New in version NX8.0.0.

  License requirements: None.

## GetLetteringPreferences

`AnnotationPreferences.``GetLetteringPreferences`

  Returns the global lettering preferences for the part

  Signature `GetLetteringPreferences()`

  Returns: |
  Return type: | `NXOpen.Annotations.LetteringPreferences`

  New in version NX3.0.0.

  License requirements: None.

## GetLineAndArrowPreferences

`AnnotationPreferences.``GetLineAndArrowPreferences`

  Returns the global line and arrow preferences for the part

  Signature `GetLineAndArrowPreferences()`

  Returns: |
  Return type: | `NXOpen.Annotations.LineAndArrowPreferences`

  New in version NX3.0.0.

  License requirements: None.

## GetLinearTolerances

`AnnotationPreferences.``GetLinearTolerances`

  Returns the global linear tolerances for the part

  Signature `GetLinearTolerances()`

  Returns: |
  Return type: | `NXOpen.Annotations.LinearTolerance`

  New in version NX4.0.0.

  License requirements: None.

## GetNxFontCharacterSpaceFactor

`AnnotationPreferences.``GetNxFontCharacterSpaceFactor`

  Returns the NX font text space factor for each text type (dimension,general,appended,tolerance) for the part

  Signature `GetNxFontCharacterSpaceFactor()`

  Returns: |
  Return type: | `NXOpen.Annotations.CharacterSpaceFactor`

  New in version NX7.5.0.

  License requirements: None.

## GetPmiPreferences

`AnnotationPreferences.``GetPmiPreferences`

  Returns the global PMI preferences for the part

  Signature `GetPmiPreferences()`

  Returns: |
  Return type: | `NXOpen.Annotations.PmiPreferences`

  New in version NX4.0.0.

  License requirements: None.

## GetStandardFontCharacterSpaceFactor

`AnnotationPreferences.``GetStandardFontCharacterSpaceFactor`

  Returns the standard font text space factor for each text type (dimension,general,appended,tolerance) for the part

  Signature `GetStandardFontCharacterSpaceFactor()`

  Returns: |
  Return type: | `NXOpen.Annotations.CharacterSpaceFactor`

  New in version NX7.5.0.

  License requirements: None.

## GetSymbolPreferences

`AnnotationPreferences.``GetSymbolPreferences`

  Returns the global symbol preferences for the part

  Signature `GetSymbolPreferences()`

  Returns: |
  Return type: | `NXOpen.Annotations.SymbolPreferences`

  New in version NX3.0.0.

  License requirements: None.

## SetAngularTolerances

`AnnotationPreferences.``SetAngularTolerances`

  Sets the global angular tolerances for the part

  Signature `SetAngularTolerances(prefs)`

  Parameters: | prefs (`NXOpen.Annotations.AngularTolerance`) –

  New in version NX4.0.0.

  License requirements: geometric_tol (“GDT”) OR drafting (“DRAFTING”)

## SetDimensionPreferences

`AnnotationPreferences.``SetDimensionPreferences`

  Sets the global dimension preferences for the part

  Signature `SetDimensionPreferences(prefs)`

  Parameters: | prefs (`NXOpen.Annotations.DimensionPreferences`) –

  New in version NX4.0.0.

  License requirements: geometric_tol (“GDT”) OR drafting (“DRAFTING”)

## SetFrameBarPreferences

`AnnotationPreferences.``SetFrameBarPreferences`

  Sets the global frame bar preferences for the part

  Signature `SetFrameBarPreferences(frameBarPrefs)`

  Parameters: | frameBarPrefs (`NXOpen.Annotations.FrameBarPreferences`) –

  New in version NX8.0.0.

  License requirements: nx_ship_drafting (“Ship Drafting”)

## SetLetteringPreferences

`AnnotationPreferences.``SetLetteringPreferences`

  Sets the global lettering preferences for the part

  Signature `SetLetteringPreferences(letteringPrefs)`

  Parameters: | letteringPrefs (`NXOpen.Annotations.LetteringPreferences`) –

  New in version NX3.0.0.

  License requirements: geometric_tol (“GDT”) OR drafting (“DRAFTING”)

## SetLineAndArrowPreferences

`AnnotationPreferences.``SetLineAndArrowPreferences`

  Sets the global line and arrow preferences for the part

  Signature `SetLineAndArrowPreferences(prefs)`

  Parameters: | prefs (`NXOpen.Annotations.LineAndArrowPreferences`) –

  New in version NX3.0.0.

  License requirements: geometric_tol (“GDT”) OR drafting (“DRAFTING”)

## SetLinearTolerances

`AnnotationPreferences.``SetLinearTolerances`

  Sets the global linear tolerances for the part

  Signature `SetLinearTolerances(prefs)`

  Parameters: | prefs (`NXOpen.Annotations.LinearTolerance`) –

  New in version NX4.0.0.

  License requirements: geometric_tol (“GDT”) OR drafting (“DRAFTING”)

## SetNxFontCharacterSpaceFactor

`AnnotationPreferences.``SetNxFontCharacterSpaceFactor`

  Sets the NX font text space factor for each text type (dimension,general,appended,tolerance) for the part

  Signature `SetNxFontCharacterSpaceFactor(nxFontCharacterSpaceFactor)`

  Parameters: | nxFontCharacterSpaceFactor (`NXOpen.Annotations.CharacterSpaceFactor`) –

  New in version NX7.5.0.

  License requirements: geometric_tol (“GDT”) OR drafting (“DRAFTING”)

## SetPmiPreferences

`AnnotationPreferences.``SetPmiPreferences`

  Sets the global PMI preferences for the part

  Signature `SetPmiPreferences(pmiPrefs)`

  Parameters: | pmiPrefs (`NXOpen.Annotations.PmiPreferences`) –

  New in version NX4.0.0.

  License requirements: geometric_tol (“GDT”) OR drafting (“DRAFTING”)

## SetStandardFontCharacterSpaceFactor

`AnnotationPreferences.``SetStandardFontCharacterSpaceFactor`

  Sets the standard font text space factor for each text type (dimension,general,appended,tolerance) for the part

  Signature `SetStandardFontCharacterSpaceFactor(standardFontCharacterSpaceFactor)`

  Parameters: | standardFontCharacterSpaceFactor (`NXOpen.Annotations.CharacterSpaceFactor`) –

  New in version NX7.5.0.

  License requirements: geometric_tol (“GDT”) OR drafting (“DRAFTING”)

## SetSymbolPreferences

`AnnotationPreferences.``SetSymbolPreferences`

  Sets the global symbol preferences for the part

  Signature `SetSymbolPreferences(prefs)`

  Parameters: | prefs (`NXOpen.Annotations.SymbolPreferences`) –

  New in version NX3.0.0.

  License requirements: geometric_tol (“GDT”) OR drafting (“DRAFTING”)