AddObjectDisplayMode

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.

Syntax

Rhino.AddObjectDisplayMode (strObject, strMode [, strView]])

Parameters

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.

Returns

Boolean

True if successful, false otherwise.

Null

On error.

Example

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

Also See

ObjectDisplayMode

RemoveObjectDisplayMode

ViewDisplayModeName

ViewDisplayModes