ViewDependentDisplayManager Class¶
-
class
NXOpen.ViewDependentDisplayManager¶ Bases:
objectRepresents all view dependent display operations
To obtain an instance of this class, refer to
NXOpen.ViewNew in version NX5.0.0.
Methods¶
| Method | Description |
|---|---|
| ApplySegmentEdit | Applies a wireframe edit to specified objects in a view. |
| ApplyShadeEdit | Applies a shading edit to specified faces and/or bodies in a view. |
| ApplyWireframeEdit | Applies a wireframe edit to specified objects in a view. |
| Erase | Erases specified objects in a view. |
| MoveToModel | Moves view objects to model. |
| MoveToView | Moves model objects to view. |
| RemoveAllEdits | Removes all edits and erasures from all objects in a view. |
| RemoveEdit | Removes edits from specified objects in a view. |
| RemoveErasure | Removes erasures from specified objects in a view. |
| RemoveErasureOnObjectAndSubobjects | Removes erasures from specified objects and optional subobjects in a view. |
| SetBackground | Sets visibility of background objects. |
Enumerations¶
| ViewDependentDisplayManagerFont Enumeration | specifies the font for wireframe edits |
| ViewDependentDisplayManagerPartialShading Enumeration | specifies the partial shading options for shading edits |
| ViewDependentDisplayManagerTranslucency Enumeration | specifies the translucency options for shading edits |
| ViewDependentDisplayManagerWidth Enumeration | specifies the width for wireframe edits |
Method Detail¶
ApplySegmentEdit¶
-
ViewDependentDisplayManager.ApplySegmentEdit¶ Overloaded method ApplySegmentEdit
ApplySegmentEdit(object, color, font, width, segmentStart, segmentEnd)ApplySegmentEdit(object, font, width, segmentStart, segmentEnd)
-------------------------------------Applies a wireframe edit to specified objects in a view.
Signature
ApplySegmentEdit(object, color, font, width, segmentStart, segmentEnd)Parameters: - object (
NXOpen.DisplayableObject) – - color (Id) –
- font (
NXOpen.ViewDependentDisplayManagerFont) – - width (
NXOpen.ViewDependentDisplayManagerWidth) – - segmentStart (list of float) – The length of the segment_start and segment_end arrays must match.
- segmentEnd (list of float) – The length of the segment_start and segment_end arrays must match.
New in version NX5.0.0.
License requirements: None.
-------------------------------------Applies a wireframe edit to specified objects in a view when the color is the original color
Signature
ApplySegmentEdit(object, font, width, segmentStart, segmentEnd)Parameters: - object (
NXOpen.DisplayableObject) – - font (
NXOpen.ViewDependentDisplayManagerFont) – - width (
NXOpen.ViewDependentDisplayManagerWidth) – - segmentStart (list of float) – The length of the segment_start and segment_end arrays must match.
- segmentEnd (list of float) – The length of the segment_start and segment_end arrays must match.
New in version NX6.0.3.
License requirements: None.
-------------------------------------
ApplyShadeEdit¶
-
ViewDependentDisplayManager.ApplyShadeEdit¶ Overloaded method ApplyShadeEdit
ApplyShadeEdit(shadeColor, partialShading, translucencyOption, translucencyScale, objects)ApplyShadeEdit(partialShading, translucencyOption, translucencyScale, objects)
-------------------------------------Applies a shading edit to specified faces and/or bodies in a view.
Signature
ApplyShadeEdit(shadeColor, partialShading, translucencyOption, translucencyScale, objects)Parameters: - shadeColor (Id) –
- partialShading (
NXOpen.ViewDependentDisplayManagerPartialShading) – - translucencyOption (
NXOpen.ViewDependentDisplayManagerTranslucency) – - translucencyScale (int) – new translucency value in the range 0 to 100
- objects (list of
NXOpen.DisplayableObject) –
New in version NX5.0.0.
License requirements: None.
-------------------------------------Applies a shading edit to specified faces and/or bodies in a view when shade color is original color
Signature
ApplyShadeEdit(partialShading, translucencyOption, translucencyScale, objects)Parameters: - partialShading (
NXOpen.ViewDependentDisplayManagerPartialShading) – - translucencyOption (
NXOpen.ViewDependentDisplayManagerTranslucency) – - translucencyScale (int) – new translucency value in the range 0 to 100
- objects (list of
NXOpen.DisplayableObject) –
New in version NX6.0.3.
License requirements: None.
-------------------------------------
ApplyWireframeEdit¶
-
ViewDependentDisplayManager.ApplyWireframeEdit¶ Overloaded method ApplyWireframeEdit
ApplyWireframeEdit(color, font, width, objects)ApplyWireframeEdit(font, width, objects)
-------------------------------------Applies a wireframe edit to specified objects in a view.
Signature
ApplyWireframeEdit(color, font, width, objects)Parameters: - color (Id) –
- font (
NXOpen.ViewDependentDisplayManagerFont) – - width (
NXOpen.ViewDependentDisplayManagerWidth) – - objects (list of
NXOpen.DisplayableObject) –
New in version NX5.0.0.
License requirements: None.
-------------------------------------Applies a wireframe edit to specified objects in a view when the color is the original color
Signature
ApplyWireframeEdit(font, width, objects)Parameters: - font (
NXOpen.ViewDependentDisplayManagerFont) – - width (
NXOpen.ViewDependentDisplayManagerWidth) – - objects (list of
NXOpen.DisplayableObject) –
New in version NX6.0.3.
License requirements: None.
-------------------------------------
Erase¶
-
ViewDependentDisplayManager.Erase¶ Erases specified objects in a view.
Signature
Erase(objects)Parameters: objects (list of NXOpen.DisplayableObject) –New in version NX5.0.0.
License requirements: None.
MoveToModel¶
-
ViewDependentDisplayManager.MoveToModel¶ Moves view objects to model.
Signature
MoveToModel(objects)Parameters: objects (list of NXOpen.DisplayableObject) –New in version NX5.0.0.
License requirements: None.
MoveToView¶
-
ViewDependentDisplayManager.MoveToView¶ Moves model objects to view.
Signature
MoveToView(objects)Parameters: objects (list of NXOpen.DisplayableObject) –New in version NX5.0.0.
License requirements: None.
RemoveAllEdits¶
-
ViewDependentDisplayManager.RemoveAllEdits¶ Removes all edits and erasures from all objects in a view.
Signature
RemoveAllEdits()New in version NX5.0.0.
License requirements: None.
RemoveEdit¶
-
ViewDependentDisplayManager.RemoveEdit¶ Removes edits from specified objects in a view.
Signature
RemoveEdit(objects)Parameters: objects (list of NXOpen.DisplayableObject) –New in version NX5.0.0.
License requirements: None.
RemoveErasure¶
-
ViewDependentDisplayManager.RemoveErasure¶ Removes erasures from specified objects in a view.
Signature
RemoveErasure(objects)Parameters: objects (list of NXOpen.DisplayableObject) –New in version NX5.0.0.
Deprecated since version NX11.0.0: Use
NXOpen.ViewDependentDisplayManager.RemoveErasureOnObjectAndSubobjects()instead.License requirements: None.
RemoveErasureOnObjectAndSubobjects¶
-
ViewDependentDisplayManager.RemoveErasureOnObjectAndSubobjects¶ Removes erasures from specified objects and optional subobjects in a view.
Signature
RemoveErasureOnObjectAndSubobjects(objects, removeFromSubObjects)Parameters: - objects (list of
NXOpen.DisplayableObject) – - removeFromSubObjects (bool) –
New in version NX11.0.0.
License requirements: None.
- objects (list of
SetBackground¶
-
ViewDependentDisplayManager.SetBackground¶ Sets visibility of background objects.
Signature
SetBackground(objects)Parameters: objects (list of NXOpen.DisplayableObject) –New in version NX5.0.0.
License requirements: None.