ViewDisplayMode - PYTHON 不支持

返回或者设置一个视图的显示模式。A view's display mode can be either wireframe, shaded, or render preview.

语法

Rhino.ViewDisplayMode ([strView [, intMode]])

参数

strView

可选参数。字符串。The title or identifier of the view.If omitted, the current active view is used.

intMode

可选参数。Number.The display mode.The display modes are as follows:

描述

0

Wireframe.

1

Shaded.

2

Render Preview.

返回值

Number

If intMode is not specified, the current display mode for the specified view if successful.

Number

If intMode is specified, the previous display mode for the specified view if successful.

Null

如果执行不成功或出错,返回空值。

示例

Dim arrViews, strView

arrViews = Rhino.ViewNames

If IsArray(arrViews) Then

For Each strView In arrViews

Rhino.ViewDisplayMode strView, 1

Next

End If

同见

CurrentView

ViewDisplayModeEx

ViewNames