Removes RhinoScript user data items from an object's attributes.
Rhino.DeleteAttributeData (strObject [, strSection [, strEntry]])
strObject |
Required. String. The object's identifier. |
strSection |
Optional. String. The section name. If omitted, all sections and their corresponding entries are removed. |
strEntry |
Optional. String. The entry name. If omitted, all entries for strSection are removed. |
Boolean |
True or False indicating success or failure. |
Null |
On error. |
Dim strObject
strObject = Rhino.GetObject("Select object")
If Not IsNull(strObject) Then
Rhino.DeleteAttributeData strObject, "MySection1", "MyEntry1"
Rhino.DeleteAttributeData strObject, "MySection1", "MyEntry2"
Rhino.DeleteAttributeData strObject, "MySection2", "MyEntry1"
End If