SetDocumentData

Adds or sets a user data string to the current document.

Syntax

rhinoscriptsyntax.SetDocumentData (section, entry, value)

rhinoscript.userdata.SetDocumentData (section, entry, value)

Parameters

section

Required.  String.  The section name.

entry

Required.  String.  The entry name.

value

Required.  String.  The string value.

Returns

String

The previous value if successful.

None

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

Example

import rhinoscriptsyntax as rs

rs.SetDocumentData( "MySection1", "MyEntry1", "MyValue1" )

rs.SetDocumentData( "MySection1", "MyEntry2", "MyValue2" )

rs.SetDocumentData( "MySection2", "MyEntry1", "MyValue1" )

Also See

DeleteDocumentData

DocumentDataCount

GetDocumentData

IsDocumentData