The PartDisplayOptions object stores settings that specify how parts are to be displayed in a particular viewport. The PartDisplayOptions object has no constructor. When you create a new viewport, the settings are copied from the current viewport.
session.viewports[name].layers[name].partDisplay import part session.viewports[name].partDisplay
This method modifies the PartDisplayOptions object.
Required arguments
Optional arguments
A SymbolicConstant specifying how the image in the viewport is rendered. Possible values are WIREFRAME, HIDDEN, and SHADED. The default value is WIREFRAME.
A sequence of DisplayGroup objects specifying the DisplayGroups visible in the viewport. Currently the sequence can contain a maximum of one DisplayGroup object. The default value is an empty sequence.
A Boolean specifying whether engineering features are shown. The default value is OFF.
A Boolean specifying whether to render the beam profiles. The default value is OFF.
A Float specifying the beam profile scale factor. The beamScaleFactor must be greater than zero. The default value is 1.0.
Return value
Exceptions
RangeError.
The PartDisplayOptions object can have the following members:
A Boolean specifying whether engineering features are shown. The default value is OFF.
A Boolean specifying whether to render the beam profiles. The default value is OFF.
A Float specifying the beam profile scale factor. The beamScaleFactor must be greater than zero. The default value is 1.0.
A Boolean specifying whether the mesh should be displayed.
A SymbolicConstant specifying how the image in the viewport is rendered. Possible values are WIREFRAME, HIDDEN, and SHADED. The default value is WIREFRAME.
A DisplayGroup object specifying the current display group and referring to an object in the displayGroups member of Session.
A repository of DisplayGroupInstance objects.
An EngineeringFeatureDisplayOptions object.
A GeometryDisplayOptions object.
A MeshDisplayOptions object.