Adds or sets a RhinoScript user data item to an object's attributes.
Rhino.SetAttributeData (strObject, strSection, strEntry, strValue)
strObject |
Required. String. The object's identifier. |
strSection |
Required. String. The application name. |
strEntry |
Required. String. The key name. |
strValue |
Required. String. The string value. |
String |
The previous value if successful. |
Null |
If no previous value exits, if not successful, or on error. |
Dim strObject
strObject = Rhino.GetObject("Select object")
If Not IsNull(strObject) Then
Rhino.SetAttributeData strObject, "MySection1", "MyEntry1", "MyValue1"
Rhino.SetAttributeData strObject, "MySection1", "MyEntry2", "MyValue2"
Rhino.SetAttributeData strObject, "MySection2", "MyEntry1", "MyValue1"
End If