GeneralViewStyle Class¶
-
class
NXOpen.Drawings.GeneralViewStyle¶ Bases:
objectRepresents set of General View Styles Preferences applicable to drafting views.
To obtain an instance of this class use
Drawings.ViewStyle.General()New in version NX5.0.0.
Properties¶
| Property | Description |
|---|---|
| Angle | Returns or sets the value of angle of a member view. |
| 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. |
| AssociativeAngle | Returns or sets the value of angle of a member view. |
| AutomaticAnchorPoint | Returns or sets the status of Automatic Anchor Point. |
| AutomaticUpdate | Returns or sets the status of Automatic update, if true then position, hidden lines, silhouettes, view bounds, section views, and section view details updated after a model change else the above items are not updated after a model change. |
| BoundaryStatus | Returns or sets the boundary status. |
| DisplayId | Returns or sets the display identifier option for a member view. |
| ExpressionForScale | Returns or sets the expression for scale |
| ExtractedEdges | Returns or sets the extracted edge, that provides an alternative way to display model geometry in a drawing view. |
| 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, that toggles a view from active to reference. |
| RenderCount | Returns or sets the render count. |
| Scale | Returns or sets the scale of a member view. |
| ScaleLabel | Returns or sets the display of scale label. |
| 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 added else silhouettes 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, if true, grid curves for selected drawing member views are added else the grid curves are removed from the selected member views. |
| ViewLabel | Returns or sets the display of view label. |
| ViewQuality | Returns or sets the view quality, that provides an alternative way to display model geometry in a drawing 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¶
| Method | Description |
|---|---|
| SetCenterlines | The status of center line, if true 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. |
| SetFramebarHorizontal | The status of framebar horizontal, if true automatically creates horizontal framebar for views where the view axis match with ship axis. |
| SetFramebarVertical | The status of framebar vertical, if true automatically creates vertical framebar for views where the view axis match with ship axis. |
Property Detail¶
Angle¶
-
GeneralViewStyle.Angle¶ Returns or sets the value of angle of a member view.
-------------------------------------Getter Method
Signature
AngleReturns: Return type: float New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
AngleParameters: angle (float) – New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
AngleDecimalPointFormat¶
-
GeneralViewStyle.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¶
-
GeneralViewStyle.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: angleFormat ( NXOpen.Preferences.AngleFormat) –New in version NX8.5.0.
License requirements: drafting (“DRAFTING”)
AnglePrecision¶
-
GeneralViewStyle.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: anglePrecision (int) – New in version NX8.5.0.
License requirements: drafting (“DRAFTING”)
AssociativeAngle¶
-
GeneralViewStyle.AssociativeAngle¶ Returns or sets the value of angle of a member view.
-------------------------------------Getter Method
Signature
AssociativeAngleReturns: Return type: NXOpen.ScalarNew in version NX11.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
AssociativeAngleParameters: angle ( NXOpen.Scalar) –New in version NX11.0.0.
License requirements: drafting (“DRAFTING”)
AutomaticAnchorPoint¶
-
GeneralViewStyle.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¶
-
GeneralViewStyle.AutomaticUpdate¶ Returns or sets the status of Automatic update, if true then position, hidden lines, silhouettes, view bounds, section views, and section view details updated after a model change else the 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¶
-
GeneralViewStyle.BoundaryStatus¶ Returns or sets the boundary status.
-------------------------------------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”)
DisplayId¶
-
GeneralViewStyle.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”)
ExpressionForScale¶
-
GeneralViewStyle.ExpressionForScale¶ Returns or sets the expression for scale
-------------------------------------Getter Method
Signature
ExpressionForScaleReturns: Return type: NXOpen.ExpressionNew in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
-------------------------------------Setter Method
Signature
ExpressionForScaleParameters: expressionForScale ( NXOpen.Expression) –New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
ExtractedEdges¶
-
GeneralViewStyle.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”)
LegacyView¶
-
GeneralViewStyle.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¶
-
GeneralViewStyle.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¶
-
GeneralViewStyle.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 lock method option on the general sub-builderNew in version NX11.0.1.
License requirements: drafting (“DRAFTING”)
Reference¶
-
GeneralViewStyle.Reference¶ Returns or sets the status of reference, that toggles a view from active to reference.
If true, the view is considered a reference 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”)
RenderCount¶
-
GeneralViewStyle.RenderCount¶ Returns or sets the render count.
-------------------------------------Getter Method
Signature
RenderCountReturns: Return type: int New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
RenderCountParameters: renderCount (int) – New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
Scale¶
-
GeneralViewStyle.Scale¶ Returns or sets the scale of a member view.
-------------------------------------Getter Method
Signature
ScaleReturns: Return type: float New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ScaleParameters: scale (float) – New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
ScaleLabel¶
-
GeneralViewStyle.ScaleLabel¶ Returns or sets the display of scale label.
-------------------------------------Getter Method
Signature
ScaleLabelReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ScaleLabelParameters: scaleLabel (bool) – New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
ShowAngleLeadingZeros¶
-
GeneralViewStyle.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¶
-
GeneralViewStyle.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¶
-
GeneralViewStyle.Silhouettes¶ Returns or sets the status of silhouettes curves, if true silhouettes for selected drawing member views added else silhouettes 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¶
-
GeneralViewStyle.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.Drawings.GeneralViewStyle.LockmethodView()instead.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.Drawings.GeneralViewStyle.LockmethodView()instead.License requirements: drafting (“DRAFTING”)
Tolerance¶
-
GeneralViewStyle.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¶
-
GeneralViewStyle.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”)
ViewLabel¶
-
GeneralViewStyle.ViewLabel¶ Returns or sets the display of view label.
-------------------------------------Getter Method
Signature
ViewLabelReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ViewLabelParameters: viewLabel (bool) – New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
ViewQuality¶
-
GeneralViewStyle.ViewQuality¶ Returns or sets the view quality, that provides an alternative way to display model geometry in a drawing view.
-------------------------------------Getter Method
Signature
ViewQualityReturns: Return type: NXOpen.Preferences.GeneralViewQualityOptionNew in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ViewQualityParameters: qualityOption ( NXOpen.Preferences.GeneralViewQualityOption) –New in version NX8.0.0.
License requirements: drafting (“DRAFTING”)
ViewRepresentation¶
-
GeneralViewStyle.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 of the view 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 viewNew in version NX8.5.0.
License requirements: drafting (“DRAFTING”)
WireframeColorSource¶
-
GeneralViewStyle.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: colorOption ( NXOpen.Preferences.GeneralWireframeColorSourceOption) –New in version NX6.0.0.
License requirements: drafting (“DRAFTING”)
Method Detail¶
SetCenterlines¶
-
GeneralViewStyle.SetCenterlines¶ The status of center line, if true 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.
Signature
SetCenterlines(centerlines)Parameters: centerlines (bool) – New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
SetFramebarHorizontal¶
-
GeneralViewStyle.SetFramebarHorizontal¶ The status of framebar horizontal, if true automatically creates horizontal framebar for views where the view axis match with ship axis.
Signature
SetFramebarHorizontal(framebarHorizontal)Parameters: framebarHorizontal (bool) – New in version NX8.0.0.
License requirements: drafting (“DRAFTING”)
SetFramebarVertical¶
-
GeneralViewStyle.SetFramebarVertical¶ The status of framebar vertical, if true automatically creates vertical framebar for views where the view axis match with ship axis.
Signature
SetFramebarVertical(framebarVertical)Parameters: framebarVertical (bool) – New in version NX8.0.0.
License requirements: drafting (“DRAFTING”)