Verifies the existence of a linetype in the document.
rhinoscriptsyntax.IsLinetype (name_or_id)
rhinoscript.linetype.IsLinetype (name_or_id)
name_or_id |
Required. String or Guid. The name or identifier of an existing linetype. |
Boolean |
True or False indicating success or failure. |
import rhinoscriptsyntax as rs
name = rs.GetString("Linetype name")
if rs.IsLinetype(name): print "The linetype exists."
else: print "The linetype does not exist"