VisualizationLine Class

class NXOpen.Preferences.VisualizationLine

Bases: object

This class is for UI related preferences changes

To obtain an instance of this class, refer to NXOpen.UI

New in version NX3.0.0.

Properties

Property Description
DepthSortedWireframe Returns or sets the depth sorted wireframe.
WireframeContrast Returns or sets whether colors applied to wireframe geometry are automatically adjusted as necessary to produce a minimum contrast relative to the view background.

Methods

Method Description
RegenerateFromToleranceChange Regenerates after changing tolerance
UpdateLineFontObjects Updates the UI after line font is changed

Property Detail

DepthSortedWireframe

VisualizationLine.DepthSortedWireframe

Returns or sets the depth sorted wireframe.

Specifies whether the graphics driver should sort objects by depth in wireframe views.

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

Getter Method

Signature DepthSortedWireframe

Returns:
Return type:bool

New in version NX3.0.0.

License requirements: None.

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

Setter Method

Signature DepthSortedWireframe

Parameters:depthSortedWireframe (bool) –

New in version NX3.0.0.

License requirements: None.

WireframeContrast

VisualizationLine.WireframeContrast

Returns or sets whether colors applied to wireframe geometry are automatically adjusted as necessary to produce a minimum contrast relative to the view background.

The option affects onscreen displays only, so it affects interactive displays and raster images captured from interactive displays. It does not affect vector output produced by Plot, Print, CGM Export and similar functions.

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

Getter Method

Signature WireframeContrast

Returns:
Return type:bool

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature WireframeContrast

Parameters:wireframeContrast (bool) –

New in version NX6.0.0.

License requirements: None.

Method Detail

RegenerateFromToleranceChange

VisualizationLine.RegenerateFromToleranceChange

Regenerates after changing tolerance

Signature RegenerateFromToleranceChange(updateModeChange, studio)

Parameters:
  • updateModeChange (bool) – whether update_mode has changed
  • studio (bool) – studio or non studio

New in version NX3.0.0.

Deprecated since version NX12.0.0: Use NXOpen.Preferences.PartVisualizationLine.RegenerateFromToleranceChange() instead.

License requirements: None.

UpdateLineFontObjects

VisualizationLine.UpdateLineFontObjects

Updates the UI after line font is changed

Signature UpdateLineFontObjects(doSoftwareUpdate)

Parameters:doSoftwareUpdate (bool) – The do_software_update flag should be set to TRUE when changing from software fonts to hardware fonts or when changing dash

New in version NX3.0.0.

Deprecated since version NX12.0.0: Use NXOpen.Preferences.PartVisualizationLine.UpdateLineFontObjects() instead.

License requirements: None.