ViewDisplayModeId

Returns the identifier of a display mode given a display mode's name.

Syntax

rhinoscriptsyntax.ViewDisplayModeId (name)

rhinoscript.view.ViewDisplayModeId (name)

Parameters

name

Required.  String.  The name of the display mode obtained from the ViewDisplayModes method.

Returns

Guid

The id of the display mode if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

modes = rs.ViewDisplayModes(True)

for mode in modes: print mode,"=",rs.ViewDisplayModeId(mode)

Also See

ViewDisplayMode

ViewDisplayModeEx

ViewDisplayModes