TextObjectHeight

Returns or modifies the height of a text object.

Syntax

rhinoscriptsyntax.TextObjectHeight ( object_id, height=None )

rhinoscript.geometry.TextObjectHeight ( object_id, height=None )

Parameters

object_id

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

height

Optional.  Number.  The new text height.  If omitted, the current text height is returned.

Returns

Number

If a height is not specified, the current text height if successful.

Number

If a height is specified, the previous text height if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select text")

if rs.IsText(obj):

    rs.TextObjectHeight( obj, 1.0 )

Also See

AddText

IsText

TextObjectFont

TextObjectPlane

TextObjectPoint

TextObjectStyle

TextObjectText