ShadingViewPreferences Class¶
-
class
NXOpen.Preferences.
ShadingViewPreferences
¶ Bases:
object
Represents set of Shading View Preferences applicable to drafting views.
To obtain an instance of this class use
Preferences.ViewPreferences.Shading
New in version NX5.0.0.
Properties¶
Property | Description |
---|---|
CustomAngleTolerance | Returns or sets the custom angle tolerance. |
CustomEdgeTolerance | Returns or sets the custom edge tolerance. |
CustomFaceTolerance | Returns or sets the custom face tolerance. |
OverrideHiddenWireframeColor | Returns or sets the hidden wireframe override color. |
OverrideVisibleWireframeColor | Returns or sets the visible wireframe override color. |
RenderingStyle | Returns or sets the rendering style. |
ShadedCutFaceColor | Returns or sets the shaded cut face color. |
ShadingTolerance | Returns or sets the shading tolerance. |
Shininess | Returns or sets the shininess tolerance. |
TwoSidedLight | Returns or sets the two sided light toggle data. |
Methods¶
Property Detail¶
CustomAngleTolerance¶
-
ShadingViewPreferences.
CustomAngleTolerance
¶ Returns or sets the custom angle tolerance.
-------------------------------------
Getter Method
Signature
CustomAngleTolerance()
Returns: Return type: float New in version NX5.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
CustomAngleTolerance(customAngleTolerance)
Parameters: customAngleTolerance (float) – New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
CustomEdgeTolerance¶
-
ShadingViewPreferences.
CustomEdgeTolerance
¶ Returns or sets the custom edge tolerance.
-------------------------------------
Getter Method
Signature
CustomEdgeTolerance()
Returns: Return type: float New in version NX5.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
CustomEdgeTolerance(customEdgeTolerance)
Parameters: customEdgeTolerance (float) – New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
CustomFaceTolerance¶
-
ShadingViewPreferences.
CustomFaceTolerance
¶ Returns or sets the custom face tolerance.
-------------------------------------
Getter Method
Signature
CustomFaceTolerance()
Returns: Return type: float New in version NX5.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
CustomFaceTolerance(customFaceTolerance)
Parameters: customFaceTolerance (float) – New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
OverrideVisibleWireframeColor¶
-
ShadingViewPreferences.
OverrideVisibleWireframeColor
¶ Returns or sets the visible wireframe override color.
The value should be between 1 and 216.
-------------------------------------
Getter Method
Signature
OverrideVisibleWireframeColor()
Returns: Return type: int New in version NX5.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
OverrideVisibleWireframeColor(overrideVisibleWireframeColor)
Parameters: overrideVisibleWireframeColor (int) – New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
RenderingStyle¶
-
ShadingViewPreferences.
RenderingStyle
¶ Returns or sets the rendering style.
-------------------------------------
Getter Method
Signature
RenderingStyle()
Returns: Return type: NXOpen.Preferences.ShadingRenderingStyleOption
New in version NX5.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
RenderingStyle(renderingStyleOption)
Parameters: renderingStyleOption ( NXOpen.Preferences.ShadingRenderingStyleOption
) –New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
ShadedCutFaceColor¶
-
ShadingViewPreferences.
ShadedCutFaceColor
¶ Returns or sets the shaded cut face color.
The value should be between 1 and 216.
-------------------------------------
Getter Method
Signature
ShadedCutFaceColor()
Returns: Return type: int New in version NX5.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
ShadedCutFaceColor(shadedCutFaceColor)
Parameters: shadedCutFaceColor (int) – New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
ShadingTolerance¶
-
ShadingViewPreferences.
ShadingTolerance
¶ Returns or sets the shading tolerance.
-------------------------------------
Getter Method
Signature
ShadingTolerance()
Returns: Return type: NXOpen.Preferences.ShadingToleranceOption
New in version NX5.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
ShadingTolerance(shadingTolerance)
Parameters: shadingTolerance ( NXOpen.Preferences.ShadingToleranceOption
) –New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
Shininess¶
-
ShadingViewPreferences.
Shininess
¶ Returns or sets the shininess tolerance.
-------------------------------------
Getter Method
Signature
Shininess()
Returns: Return type: float New in version NX5.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Shininess(shininessTolerance)
Parameters: shininessTolerance (float) – New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)
TwoSidedLight¶
-
ShadingViewPreferences.
TwoSidedLight
¶ Returns or sets the two sided light toggle data.
-------------------------------------
Getter Method
Signature
TwoSidedLight()
Returns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
TwoSidedLight(twoSidedLight)
Parameters: twoSidedLight (bool) – New in version NX5.0.0.
License requirements: drafting (“DRAFTING”)