返回最后执行指令的执行结果代码。
rhinoscriptsyntax.LastCommandResult()
rhinoscript.application.LastCommandResult()
空值。
数字 |
执行结果代码。执行结果代码如下:
|
import rhinoscriptsyntax as rs
rs.Command( "Line" )
result = rs.LastCommandResult()
if result==0:
print "The command completed."
else:
print "The command did not complete."