IsText

Verifies an object is a text object.

Syntax

rhinoscriptsyntax.IsText (object_id)

rhinoscript.geometry.IsText (object_id)

Parameters

object_id

Required. String or Guid. The object's identifier.

Returns

Boolean

True if successful, otherwise False.

Example

import rhinoscriptsyntax as rs

id = rs.GetObject("Select a text object")

if rs.IsText(id):

    print "The object is a text object."

else:

    print "The object is not a text object."

Also See

AddText