SetUserText

Toolbar Menu

Not on toolbars.

Not on menus.

The SetUserText command attaches text information to an object.

The information is stored in a key/value format.

Retrieve the information with the GetUserText command. This information can also be attached by .NET plug-ins and VisualBasic scripts.

This information is easily accessed in .NET and Visual Basic scripts.

Steps

  1. Select objects.
  2. Type a text key.
  3. Type the text.

To remove a key

  1. Select objects.
  2. Type a text key.
  3. Type "" (double quotes).

Command-line options

AttachTo
Object

Attaches text information to the object geometry.

If the information is closely associated with the geometry, attach it to the geometry. For example, a circle's radius should be attached to the geometry because the information will be invalid if the circle is control-point edited and changed into a NURBS curve.

Attributes

Attaches text information to the attributes of an object.

If the information is higher-level attribute information, like color, then it should be attached to the object's attributes. Attribute information will persist when an object is control-point edited, trimmed, copied, and so on.

GetUserText

Toolbar Menu

Not on toolbars.

Not on menus.

The GetUserText command retrieves text information attached to an object using the SetUserText command. This information can also be retrieved by .NET plug-ins and VisualBasic scripts.

Steps

  1. Select an object.
  2. Type a text key or press Enter.

See also

Attribute User Text properties

 

 

 

Rhino for Mac © 2010-2017 Robert McNeel & Associates. 24-Oct-2017