Assigns separate display modes to individual objects. Object display modes are view based. Thus, it is possible to have an object display different in different views.
Rhino.AddObjectDisplayMode (strObject, strMode [, strView]])
strObject |
Required. String. The identifier of the object to modify. |
intQuality |
Required. String. The name or identifier of the display mode obtained from the ViewDisplayModes method. |
strView |
Optional. String. The title or identifier of the view. If omitted, the current active view is used. |
Boolean |
True if successful, false otherwise. |
Null |
On error. |
Dim strObject, strMode
strObject = Rhino.GetObject("Select object to set display mode")
If Not IsNull(strObject) Then
strMode = Rhino.ListBox(Rhino.ViewDisplayModes)
If Not IsNull(strMode) Then
Rhino.AddObjectDisplayMode strObject, strMode
End If
End If