Sets or removes user text stored on an object. For more details on User Text, see the discussion found in the User Data Methods summary.
Rhino.SetUserText (strObject, strKey [, strValue [, blnAttachToGeometry]])
strObject |
Required. String. The object's identifier. |
||||||
strKey |
Required. String. The key name to set. |
||||||
strValue |
Optional. String. The string value to set. If omitted the key/value pair specified by strKey will be deleted. |
||||||
blnAttachToGeometry |
Optional. Boolean. The location on the object to store the User Text.
|
Boolean |
True or False indicating success or failure. |
Null |
If not successful, or on error. |
Dim strObject
strObject = Rhino.GetObject("Select object")
If VarType(strObject) = vbString Then
Rhino.SetUserText strObject, "PartNo", "KM40-4960"
Rhino.SetUserText strObject, "Price", "1.25"
End If