How do i run a script synchronized if i’m outside a rhino script command? i know i can declare a script as script runner and every script called inside it will be sync but what if i’m outside a script command?
What do you mean by synchronized? I’m not sure I understand the term in this context.
like using Invoke(). When you call RhinoApp.RunScript() it runs asynchronous (like using beginInvoke()) but i want it to be synchronous.
The only way i know to do that is to run scripts inside a script declared as script runner, and every script that runs inside it will be synchronous but if i’m outside a RunCommand i can’t find a way to run them synchronous.
HI Matteo,
Rhino is not a multi-threaded application. Thus, command scripts, run with RhinoApp.RunScript()
should be run asynchronously.
– Dale
Hi Dale,
I do know it… so let’s ask the same thing in a different way. How do i know if a script is completely executed?
When called from a script running command, RhinoApp.RunScript()
won’t return until the command has finished.
You can also watch for the Command.BeginCommand
and Command.EndCommand
events if need.
This is what i did. I was hoping on something else. Thank you.