SetDocumentData

Obsolete - use SetDocumentUserText

Adds or sets a RhinoScript user data item to the current document.

Syntax

Rhino.SetDocumentData (strSection, strEntry, strValue)

Parameters

strSection

Required.  String.  The section name.

strEntry

Required.  String.  The entry name.

strValue

Required.  String.  The string value.

Returns

String

The previous value if successful.

Null

If no previous value exits, if not successful, or on error.

Example

Rhino.SetDocumentData "MySection1", "MyEntry1", "MyValue1"

Rhino.SetDocumentData "MySection1", "MyEntry2", "MyValue2"

Rhino.SetDocumentData "MySection2", "MyEntry1", "MyValue1"

Also See

DeleteDocumentData

DocumentDataCount

GetDocumentData

IsDocumentData