在当前文档中添加或设置一个用户数据字符串。
rhinoscriptsyntax.SetDocumentData (section, entry, value)
rhinoscript.userdata.SetDocumentData (section, entry, value)
section |
必须参数。字符串。小节名称。 |
entry |
必须参数。字符串。记录名称。 |
value |
必须参数。字符串。字符串值。 |
字符串 |
执行成功,返回先前的字符串值。 |
None |
如果先前没有值,或没有执行成功,返回空值。 |
import rhinoscriptsyntax as rs
rs.SetDocumentData( "MySection1", "MyEntry1", "MyValue1" )
rs.SetDocumentData( "MySection1", "MyEntry2", "MyValue2" )
rs.SetDocumentData( "MySection2", "MyEntry1", "MyValue1" )