返回或者设置一个视图的显示模式。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:
|
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