Hello,
In my c++ plug-in project, I wrote a CRhinoCommand
and it correctly works calling it from Rhino command line.
I also call it from a gui button event, using the following syntax and again, it correctly works:
RhinoApp().RunScript(0, L"ChangeStatus Status=Lock", 0);
the function returns true.
I call it from a not member function, which is a callback from an other plug-in (written in c#), using the same syntax shown above, but it doesn’t work;
the RunScript
function returns false
and the command is not executed (I placed a break-point at its first RunCommand
line).
I tried to use CRhinoScriptCommand
instead of CRhinoCommand
but nothing changed.
I checked the thread id from everywhere but it is always the same one, the UI thread I suppose.
Do you have any advice to solve the problem?
I have no more idea…
Thank you,
Alberto