Returns the result code for the last executed command.
rhinoscriptsyntax.LastCommandResult()
rhinoscript.application.LastCommandResult()
None.
Number |
The result code successful. The result codes are as follows:
|
import rhinoscriptsyntax as rs
rs.Command( "Line" )
result = rs.LastCommandResult()
if result==0:
print "The command completed."
else:
print "The command did not complete."