GeneralViewPreferences Class

class NXOpen.Preferences.GeneralViewPreferences

Bases: object

Represents set of General View Preferencess applicable to drafting views.

These settings apply to any newly created base view.

To obtain an instance of this class use Preferences.ViewPreferences.General()

New in version NX5.0.0.

Properties

Property Description
AngleDecimalPointFormat Returns or sets the decimal point character to use for view angle display.
AngleFormat Returns or sets the format to use for view angle display.
AnglePrecision Returns or sets the precision to use for view angle display.
AutomaticAnchorPoint Returns or sets the status of Automatic anchor point
AutomaticUpdate Returns or sets the status of Automatic Update.
BoundaryStatus Returns or sets the boundary status.
Centerlines Returns or sets the status of center line.
DisplayId Returns or sets the display identifier option for a member view.
ExtractedEdges Returns or sets the extracted edge that provides an alternative way to display model geometry in a drawing view.
FramebarHorizontal Returns or sets the status of horizontal framebar.
FramebarVertical Returns or sets the status of vertical framebar.
LegacyView Returns or sets the leagcy view toggle on the GENERAL tab of the View Style Dialog
LightweightView Returns or sets the view representation enum on the GENERAL tab of the View Style Dialog
LockmethodView Returns or sets the lock method setting on the Configuration tab of the View Style Dialog
Reference Returns or sets the status of reference.
ShowAngleLeadingZeros Returns or sets the status of leading zeros display in view angle.
ShowAngleTrailingZeros Returns or sets the status of trailing zeros display in view angle.
Silhouettes Returns or sets the status of silhouettes curves, if true silhouettes for selected drawing member views are added else silhouettes are removed from the selected member views.
SnapshotView Returns or sets the snapshot toggle on the GENERAL tab of the View Style Dialog
Tolerance Returns or sets the value of tolerance that specifies a chord height tolerance value for silhouette and hidden line generation in a given drawing view.
UvGrid Returns or sets the status of UV grid.
ViewQuality Returns or sets the view quality that provides alternative ways to display geometry in a drawing member view.
ViewRepresentation Returns or sets the view representation enum on the GENERAL tab of the View Style Dialog
WireframeColorSource Returns or sets the source of the wireframe color for a member view.

Methods

Property Detail

AngleDecimalPointFormat

GeneralViewPreferences.AngleDecimalPointFormat

Returns or sets the decimal point character to use for view angle display.

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

Getter Method

Signature AngleDecimalPointFormat

Returns:
Return type:NXOpen.Preferences.DecimalPointCharacter

New in version NX8.5.0.

License requirements: None.

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

Setter Method

Signature AngleDecimalPointFormat

Parameters:format (NXOpen.Preferences.DecimalPointCharacter) –

New in version NX8.5.0.

License requirements: drafting (“DRAFTING”)

AngleFormat

GeneralViewPreferences.AngleFormat

Returns or sets the format to use for view angle display.

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

Getter Method

Signature AngleFormat

Returns:
Return type:NXOpen.Preferences.AngleFormat

New in version NX8.5.0.

License requirements: None.

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

Setter Method

Signature AngleFormat

Parameters:format (NXOpen.Preferences.AngleFormat) –

New in version NX8.5.0.

License requirements: drafting (“DRAFTING”)

AnglePrecision

GeneralViewPreferences.AnglePrecision

Returns or sets the precision to use for view angle display.

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

Getter Method

Signature AnglePrecision

Returns:
Return type:int

New in version NX8.5.0.

License requirements: None.

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

Setter Method

Signature AnglePrecision

Parameters:precision (int) –

New in version NX8.5.0.

License requirements: drafting (“DRAFTING”)

AutomaticAnchorPoint

GeneralViewPreferences.AutomaticAnchorPoint

Returns or sets the status of Automatic anchor point

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

Getter Method

Signature AutomaticAnchorPoint

Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

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

Setter Method

Signature AutomaticAnchorPoint

Parameters:automaticAnchorPoint (bool) –

New in version NX5.0.0.

License requirements: drafting (“DRAFTING”)

AutomaticUpdate

GeneralViewPreferences.AutomaticUpdate

Returns or sets the status of Automatic Update.

if true, then position, hidden lines, silhouettes, view bounds, section views and section view details are updated after a model change else above items are not updated after a model change.

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

Getter Method

Signature AutomaticUpdate

Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

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

Setter Method

Signature AutomaticUpdate

Parameters:automaticUpdate (bool) –

New in version NX5.0.0.

License requirements: drafting (“DRAFTING”)

BoundaryStatus

GeneralViewPreferences.BoundaryStatus

Returns or sets the boundary status.

This option determines whether or not a view’s out-of-date status includes its boundary. If True, the system checks the view boundary and marks it out of date if changes to non-solid geometry would cause the view’s boundary to change when updated, else the system does not perform view boundary checks.

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

Getter Method

Signature BoundaryStatus

Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

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

Setter Method

Signature BoundaryStatus

Parameters:boundaryStatus (bool) –

New in version NX5.0.0.

License requirements: drafting (“DRAFTING”)

Centerlines

GeneralViewPreferences.Centerlines

Returns or sets the status of center line.

If true it automatically creates linear, cylindrical, and bolt circle centerlines (with a circular instance set) for views where the hole or pin axis is perpendicular or parallel to the plane of the drawing view.

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

Getter Method

Signature Centerlines

Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

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

Setter Method

Signature Centerlines

Parameters:centerlines (bool) –

New in version NX5.0.0.

License requirements: drafting (“DRAFTING”)

DisplayId

GeneralViewPreferences.DisplayId

Returns or sets the display identifier option for a member view.

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

Getter Method

Signature DisplayId

Returns:
Return type:NXOpen.Preferences.GeneralDisplayIdOption

New in version NX7.5.0.

License requirements: None.

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

Setter Method

Signature DisplayId

Parameters:option (NXOpen.Preferences.GeneralDisplayIdOption) –

New in version NX7.5.0.

License requirements: drafting (“DRAFTING”)

ExtractedEdges

GeneralViewPreferences.ExtractedEdges

Returns or sets the extracted edge that provides an alternative way to display model geometry in a drawing view.

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

Getter Method

Signature ExtractedEdges

Returns:
Return type:NXOpen.Preferences.GeneralExtractedEdgesOption

New in version NX5.0.0.

License requirements: None.

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

Setter Method

Signature ExtractedEdges

Parameters:edgesOption (NXOpen.Preferences.GeneralExtractedEdgesOption) –

New in version NX5.0.0.

License requirements: drafting (“DRAFTING”)

FramebarHorizontal

GeneralViewPreferences.FramebarHorizontal

Returns or sets the status of horizontal framebar.

If true it automatically creates horizontal framebar for views when ship axis matches with view axis for horizontal framebar.

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

Getter Method

Signature FramebarHorizontal

Returns:
Return type:bool

New in version NX8.0.0.

License requirements: None.

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

Setter Method

Signature FramebarHorizontal

Parameters:horizontal (bool) –

New in version NX8.0.0.

License requirements: drafting (“DRAFTING”)

FramebarVertical

GeneralViewPreferences.FramebarVertical

Returns or sets the status of vertical framebar.

If true it automatically creates vertical framebar for views when ship axis matches with view axis for vertical framebar.

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

Getter Method

Signature FramebarVertical

Returns:
Return type:bool

New in version NX8.0.0.

License requirements: None.

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

Setter Method

Signature FramebarVertical

Parameters:vertical (bool) –

New in version NX8.0.0.

License requirements: drafting (“DRAFTING”)

LegacyView

GeneralViewPreferences.LegacyView

Returns or sets the leagcy view toggle on the GENERAL tab of the View Style Dialog

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

Getter Method

Signature LegacyView

Returns:Returns the legacy view toggle value that is on the general sub-builder
Return type:bool

New in version NX8.0.0.

License requirements: None.

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

Setter Method

Signature LegacyView

Parameters:legacyView (bool) – Sets a legacy view toggle value on the general sub-builder

New in version NX8.0.0.

License requirements: drafting (“DRAFTING”)

LightweightView

GeneralViewPreferences.LightweightView

Returns or sets the view representation enum on the GENERAL tab of the View Style Dialog

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

Getter Method

Signature LightweightView

Returns:Returns the view representation option that is on the general sub-builder
Return type:bool

New in version NX8.0.0.

License requirements: None.

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

Setter Method

Signature LightweightView

Parameters:lightweightView (bool) – Sets a view representation option on the general sub-builder

New in version NX8.0.0.

License requirements: drafting (“DRAFTING”)

LockmethodView

GeneralViewPreferences.LockmethodView

Returns or sets the lock method setting on the Configuration tab of the View Style Dialog

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

Getter Method

Signature LockmethodView

Returns:Returns the lock method option on the general sub-builder
Return type:NXOpen.Preferences.GeneralViewLockmethodOption

New in version NX11.0.1.

License requirements: None.

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

Setter Method

Signature LockmethodView

Parameters:lockmethodView (NXOpen.Preferences.GeneralViewLockmethodOption) – Sets a lockmethod option on the general sub-builder

New in version NX11.0.1.

License requirements: drafting (“DRAFTING”)

Reference

GeneralViewPreferences.Reference

Returns or sets the status of reference.

A view can have a status of either Active or Reference. So if the status is True the view is considered a reference view else considered as an Active view.

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

Getter Method

Signature Reference

Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

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

Setter Method

Signature Reference

Parameters:reference (bool) –

New in version NX5.0.0.

License requirements: drafting (“DRAFTING”)

ShowAngleLeadingZeros

GeneralViewPreferences.ShowAngleLeadingZeros

Returns or sets the status of leading zeros display in view angle.

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

Getter Method

Signature ShowAngleLeadingZeros

Returns:
Return type:bool

New in version NX8.5.0.

License requirements: None.

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

Setter Method

Signature ShowAngleLeadingZeros

Parameters:show (bool) –

New in version NX8.5.0.

License requirements: drafting (“DRAFTING”)

ShowAngleTrailingZeros

GeneralViewPreferences.ShowAngleTrailingZeros

Returns or sets the status of trailing zeros display in view angle.

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

Getter Method

Signature ShowAngleTrailingZeros

Returns:
Return type:bool

New in version NX8.5.0.

License requirements: None.

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

Setter Method

Signature ShowAngleTrailingZeros

Parameters:show (bool) –

New in version NX8.5.0.

License requirements: drafting (“DRAFTING”)

Silhouettes

GeneralViewPreferences.Silhouettes

Returns or sets the status of silhouettes curves, if true silhouettes for selected drawing member views are added else silhouettes are removed from the selected member views.

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

Getter Method

Signature Silhouettes

Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

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

Setter Method

Signature Silhouettes

Parameters:silhouettes (bool) –

New in version NX5.0.0.

License requirements: drafting (“DRAFTING”)

SnapshotView

GeneralViewPreferences.SnapshotView

Returns or sets the snapshot toggle on the GENERAL tab of the View Style Dialog

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

Getter Method

Signature SnapshotView

Returns:Returns the snapshot view toggle value that is on the general sub-builder
Return type:bool

New in version NX8.0.0.

Deprecated since version NX11.0.1: Use NXOpen.Preferences.GeneralViewPreferences.LockmethodView() instead(the value is NXOpen.Preferences.GeneralViewPreferences.GeneralViewLockmethodOptionSnapshot).

License requirements: None.

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

Setter Method

Signature SnapshotView

Parameters:snapshotView (bool) – Sets a snapshot view toggle value on the general sub-builder

New in version NX8.0.0.

Deprecated since version NX11.0.1: Use NXOpen.Preferences.GeneralViewPreferences.LockmethodView() instead(the value is NXOpen.Preferences.GeneralViewPreferences.GeneralViewLockmethodOptionSnapshot).

License requirements: drafting (“DRAFTING”)

Tolerance

GeneralViewPreferences.Tolerance

Returns or sets the value of tolerance that specifies a chord height tolerance value for silhouette and hidden line generation in a given drawing view.

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

Getter Method

Signature Tolerance

Returns:
Return type:float

New in version NX5.0.0.

License requirements: None.

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

Setter Method

Signature Tolerance

Parameters:tolerance (float) –

New in version NX5.0.0.

License requirements: drafting (“DRAFTING”)

UvGrid

GeneralViewPreferences.UvGrid

Returns or sets the status of UV grid.

If true, grid curves for selected drawing member views are added else the grid curves are removed from the selected member views.

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

Getter Method

Signature UvGrid

Returns:
Return type:bool

New in version NX5.0.0.

License requirements: None.

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

Setter Method

Signature UvGrid

Parameters:uvGrid (bool) –

New in version NX5.0.0.

License requirements: drafting (“DRAFTING”)

ViewQuality

GeneralViewPreferences.ViewQuality

Returns or sets the view quality that provides alternative ways to display geometry in a drawing member view.

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

Getter Method

Signature ViewQuality

Returns:
Return type:NXOpen.Preferences.GeneralViewQualityOption

New in version NX7.5.0.

License requirements: None.

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

Setter Method

Signature ViewQuality

Parameters:viewQualityOption (NXOpen.Preferences.GeneralViewQualityOption) –

New in version NX7.5.0.

License requirements: drafting (“DRAFTING”)

ViewRepresentation

GeneralViewPreferences.ViewRepresentation

Returns or sets the view representation enum on the GENERAL tab of the View Style Dialog

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

Getter Method

Signature ViewRepresentation

Returns:Returns the view representation option that is on the general sub-builder
Return type:NXOpen.Preferences.GeneralViewRepresentationOption

New in version NX8.5.0.

License requirements: None.

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

Setter Method

Signature ViewRepresentation

Parameters:viewRepresentation (NXOpen.Preferences.GeneralViewRepresentationOption) – Sets a view representation option on the general sub-builder

New in version NX8.5.0.

License requirements: drafting (“DRAFTING”)

WireframeColorSource

GeneralViewPreferences.WireframeColorSource

Returns or sets the source of the wireframe color for a member view.

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

Getter Method

Signature WireframeColorSource

Returns:
Return type:NXOpen.Preferences.GeneralWireframeColorSourceOption

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature WireframeColorSource

Parameters:edgesOption (NXOpen.Preferences.GeneralWireframeColorSourceOption) –

New in version NX6.0.0.

License requirements: drafting (“DRAFTING”)