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
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(format)

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(format)

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(precision)

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(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(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(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(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(option)

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(edgesOption)

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(horizontal)

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(vertical)

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(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(lightweightView)

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

New in version NX8.0.0.

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(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(show)

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(show)

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

License requirements: None.

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

Setter Method

Signature SnapshotView(snapshotView)

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

New in version NX8.0.0.

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(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(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(viewQualityOption)

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(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(edgesOption)

Parameters:edgesOption (NXOpen.Preferences.GeneralWireframeColorSourceOption) –

New in version NX6.0.0.

License requirements: drafting (“DRAFTING”)