triplus wrote: ↑
Mon Jan 01, 2018 2:29 pm
abdullah wrote: ↑
Sun Dec 31, 2017 3:04 pm
I am not sure if by re-use you mean implement.
I was thinking more in the direction of re-use:
Code: Select all
Gui.ActiveDocument.Document.RecomputesFrozen = True
That is when entering Sketcher edit mode to set this if Auto update option is set to Off. And when leaving the sketcher edit mode to set it to False (or leave it enabled if it was already enabled before entering the Sketcher edit mode).
Ah cool! I did not know that existed.
I am not sure how this and the sketcher should evolve together (let's say in 0.18). I think we should define that first.
If we have now a tool to inhibit recomputes that are executed, maybe what we should do is putting this inhibition in a toggle button in the permanent FC bar and then remove the auto-update checkbox from the solver dialog of the solver. So the "checkbox" functionality is taken over by the toggle button. The "update" button in the solver dialog would then be adapted to: remove the inhibition, recompute and restore the inhibition (if it there was an inhibition in the first place).
I mean, I see no point in having both mechanisms working in parallel in 0.18.
Codewise, it might be feasible to just add the toggle button for 0.17.
I would rather not code something like "a patch" that will nevertheless need to be fully reworked in 0.18. In any case, it looks like more work to make the work-around than to code the actual deal...
Please come back to me with feedback on how this should work in the long run.