I know the return value of RunScript() is true or false, but how to know a result is success / cancel / nothing … .
My code is below.
bool Result = RhinoApp().RunScript( L"! _-MyDrawLine", 0 );
//how to know this result ?
enum result
{
success = 0, // command worked
cancel = 1, // user canceled command
nothing = 2, // command did nothing but cancel was not pressed
failure, // command failed (bad input, computational problem, etc.)
unknown_command, // command not found (user probably had a typo in command name)
cancel_modeless_dialog,
exit_rhino = 0x0FFFFFFF // exit Rhino.
};