Returns a detailed description of an object.
rhinoscriptsyntax.ObjectDump (object_id, dump_type=0)
rhinoscript.object.ObjectDump (object_id, dump_type=0)
object_id |
Required.字符串或 Guid。The identifier of the object. |
||||||||||
dump_type |
可选参数。The type of dump.The acceptable values are as follows:
|
String |
A detailed description of the object is successful. |
None |
如果执行不成功或出错,返回空值。 |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select object")
if obj:
dump = rs.ObjectDump(obj)
rs.MessageBox(dump)