How should I do it?
I think it's probably something like
Code: Select all
Gui::cmdAppObjectArgs(Obj, "setDriving(%i,%s)", ConStr.size() - 1, "False");
Gui::Command::commitCommand();
Is there a setValue(%i) ? I'd rather not poke blindly for the correct function name. And I can't find the answer by browsing the source code because those functions are sent as string.
Thanks
Beside if there's a way without Gui::Command it would be better because I don't want to create an action in the history of the user for this modification.
Edit: Does that do the job?
Code: Select all
ConStr[ConStr.size() - 1]->setValue(sketchgui->toolSettings->widget->toolParameters[0]);
How to recompute ?
Edit3 :
Code: Select all
ConStr[ConStr.size() - 1]->setValue(sketchgui->toolSettings->widget->toolParameters[0]);
Obj->solve(true);