GeneralViewStyle Class¶
-
class
NXOpen.Drawings.
GeneralViewStyle
¶ Bases:
object
Represents 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. |
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 |
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
Angle()
Returns: Return type: float New in version NX5.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Angle(angle)
Parameters: 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
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¶
-
GeneralViewStyle.
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(angleFormat)
Parameters: 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
AnglePrecision()
Returns: Return type: int New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
AnglePrecision(anglePrecision)
Parameters: anglePrecision (int) – New in version NX8.5.0.
License requirements: drafting (“DRAFTING”)
AutomaticAnchorPoint¶
-
GeneralViewStyle.
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¶
-
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
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¶
-
GeneralViewStyle.
BoundaryStatus
¶ Returns or sets the boundary status.
-------------------------------------
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”)
DisplayId¶
-
GeneralViewStyle.
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”)
ExpressionForScale¶
-
GeneralViewStyle.
ExpressionForScale
¶ Returns or sets the expression for scale
-------------------------------------
Getter Method
Signature
ExpressionForScale()
Returns: Return type: NXOpen.Expression
New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
-------------------------------------
Setter Method
Signature
ExpressionForScale(expressionForScale)
Parameters: 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
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”)
LegacyView¶
-
GeneralViewStyle.
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¶
-
GeneralViewStyle.
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¶
-
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
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”)
RenderCount¶
-
GeneralViewStyle.
RenderCount
¶ Returns or sets the render count.
-------------------------------------
Getter Method
Signature
RenderCount()
Returns: Return type: int New in version NX5.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
RenderCount(renderCount)
Parameters: 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
Scale()
Returns: Return type: float New in version NX5.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Scale(scale)
Parameters: 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
ScaleLabel()
Returns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
ScaleLabel(scaleLabel)
Parameters: 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
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¶
-
GeneralViewStyle.
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¶
-
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
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¶
-
GeneralViewStyle.
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¶
-
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
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¶
-
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
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”)
ViewLabel¶
-
GeneralViewStyle.
ViewLabel
¶ Returns or sets the display of view label.
-------------------------------------
Getter Method
Signature
ViewLabel()
Returns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
ViewLabel(viewLabel)
Parameters: 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
ViewQuality()
Returns: Return type: NXOpen.Preferences.GeneralViewQualityOption
New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
ViewQuality(qualityOption)
Parameters: 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
ViewRepresentation()
Returns: Returns the view representation of the view 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 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
WireframeColorSource()
Returns: Return type: NXOpen.Preferences.GeneralWireframeColorSourceOption
New in version NX6.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
WireframeColorSource(colorOption)
Parameters: 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”)