TextObjectText

Returns or modifies the text string of a text object.  Text objects can be created using Rhino's Text command.

Syntax

rhinoscriptsyntax.TextObjectText (object_id, text=None)

rhinoscript.geometry.TextObjectText (object_id, text=None)

Parameters

object_id

Required.  String or Guid.  The identifier of the object.

text

Optional.  String.  A new character or text string.

Returns

String

If a new text string is not specified,  the current string value if successful.

String

If a new text string is specified,  the previous string value if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select text")

if rs.IsText(obj): rs.TextObjectText(obj, "Rhino")

Also See

AddText

IsText

TextObjectFont

TextObjectHeight

TextObjectPlane

TextObjectPoint

TextObjectStyle