IsLinetype

Verifies the existence of a linetype in the document.

Syntax

rhinoscriptsyntax.IsLinetype (name_or_id)

rhinoscript.linetype.IsLinetype (name_or_id)

Parameters

name_or_id

Required.  String or Guid.  The name or identifier of an existing linetype.

Returns

Boolean

True or False indicating success or failure.

Example

import rhinoscriptsyntax as rs

name = rs.GetString("Linetype name")

if rs.IsLinetype(name): print "The linetype exists."

else: print "The linetype does not exist"

Also See

IsLinetypeReference