GeneralViewPreferences Class¶
-
class
NXOpen.Preferences.GeneralViewPreferences¶ Bases:
objectRepresents 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
AngleDecimalPointFormatReturns: Return type: NXOpen.Preferences.DecimalPointCharacterNew in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
AngleDecimalPointFormatParameters: 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
AngleFormatReturns: Return type: NXOpen.Preferences.AngleFormatNew in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
AngleFormatParameters: 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
AnglePrecisionReturns: Return type: int New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
AnglePrecisionParameters: 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
AutomaticAnchorPointReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
AutomaticAnchorPointParameters: 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
AutomaticUpdateReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
AutomaticUpdateParameters: 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
BoundaryStatusReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
BoundaryStatusParameters: 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
CenterlinesReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
CenterlinesParameters: 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
DisplayIdReturns: Return type: NXOpen.Preferences.GeneralDisplayIdOptionNew in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
DisplayIdParameters: 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
ExtractedEdgesReturns: Return type: NXOpen.Preferences.GeneralExtractedEdgesOptionNew in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ExtractedEdgesParameters: 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
FramebarHorizontalReturns: Return type: bool New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
FramebarHorizontalParameters: 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
FramebarVerticalReturns: Return type: bool New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
FramebarVerticalParameters: 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
LegacyViewReturns: 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
LegacyViewParameters: 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
LightweightViewReturns: 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
LightweightViewParameters: 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
LockmethodViewReturns: Returns the lock method option on the general sub-builder Return type: NXOpen.Preferences.GeneralViewLockmethodOptionNew in version NX11.0.1.
License requirements: None.
-------------------------------------Setter Method
Signature
LockmethodViewParameters: lockmethodView ( NXOpen.Preferences.GeneralViewLockmethodOption) – Sets a lockmethod option on the general sub-builderNew 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
ReferenceReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ReferenceParameters: 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
ShowAngleLeadingZerosReturns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ShowAngleLeadingZerosParameters: 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
ShowAngleTrailingZerosReturns: Return type: bool New in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ShowAngleTrailingZerosParameters: 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
SilhouettesReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SilhouettesParameters: 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
SnapshotViewReturns: 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
SnapshotViewParameters: 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
ToleranceReturns: Return type: float New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ToleranceParameters: 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
UvGridReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
UvGridParameters: 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
ViewQualityReturns: Return type: NXOpen.Preferences.GeneralViewQualityOptionNew in version NX7.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ViewQualityParameters: 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
ViewRepresentationReturns: Returns the view representation option that is on the general sub-builder Return type: NXOpen.Preferences.GeneralViewRepresentationOptionNew in version NX8.5.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ViewRepresentationParameters: viewRepresentation ( NXOpen.Preferences.GeneralViewRepresentationOption) – Sets a view representation option on the general sub-builderNew 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
WireframeColorSourceReturns: Return type: NXOpen.Preferences.GeneralWireframeColorSourceOptionNew in version NX6.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
WireframeColorSourceParameters: edgesOption ( NXOpen.Preferences.GeneralWireframeColorSourceOption) –New in version NX6.0.0.
License requirements: drafting (“DRAFTING”)