Adds or sets a user data string to the current document.
rhinoscriptsyntax.SetDocumentData (section, entry, value)
rhinoscript.userdata.SetDocumentData (section, entry, value)
section |
Required. String. The section name. |
entry |
Required. String. The entry name. |
value |
Required. String. The string value. |
String |
The previous value if successful. |
None |
If no previous value exists, if not successful, or on error. |
import rhinoscriptsyntax as rs
rs.SetDocumentData( "MySection1", "MyEntry1", "MyValue1" )
rs.SetDocumentData( "MySection1", "MyEntry2", "MyValue2" )
rs.SetDocumentData( "MySection2", "MyEntry1", "MyValue1" )