Verifies an object is a text object.
rhinoscriptsyntax.IsText (object_id)
rhinoscript.geometry.IsText (object_id)
object_id |
Required. String or Guid. The object's identifier. |
Boolean |
True if successful, otherwise False. |
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."