返回或者设置一个视图的显示模式。Unlike the ViewDisplayMode method, which only allows you to set a view to wireframe, shaded, or render preview, this method allows you to set a view to any display mode including those listed in the Advanced Display Modes section of Rhino's Options dialog box.
Rhino.ViewDisplayModeEx ([strView [, strMode [, blnReturnNames]]])
strView |
可选参数。字符串。The title or identifier of the view.If omitted, the current active view is used. |
strMode |
可选参数。字符串。The name or identifier of the display mode obtained from the ViewDisplayModes method. |
blnReturnNames |
可选参数。Boolean.If True (default), then the name the display mode is returned.If False, then the identifier of the display mode is returned. |
Number |
If strMode is not specified, the current display mode for the specified view if successful. |
Number |
If strMode 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.ViewDisplayModeEx strView, "Ghosted"
Next
End If