dimension#

viewport_bounds.dimension(p0: str) int#

Set the bounds display to 2D or 3D.

The 2D option is only available for 2D viewports and 3D viewports display in orthographic mode.
Args:
p0:

‘dimension’

  • 2D

  • 3D

Examples:
# 
# turn on bounds display and make the bounds for
# viewport 0 2D
#
ensight.view.bounds("ON")
ensight.viewport.select_begin(0)
ensight.viewport_bounds.dimension("2D")
Returns:

zero on success, non-zero on error