I didn't find any trace of the function you pointed out. Here is a link https://freecad.github.io/SourceDoc/d8/d3e/classApp_1_1Document.html#ac4b4943f002a0c5b6a07c86bdfca2af0 Another solution would be to recompute a second time the document. If output isn't 0, there is an error in the document. Thi...
if not(App.ActiveDocument.recompute()): This actually does not work because Recompute returns number of objects recomputed. What I need to check is if the document is still touched after the recompute, which should be the state if recompute does not complete (fail). But I cant find how to do that. ...
. . . . Sorry for the bump but can you suggest a way to exit the macro on failed Recompute? I tried generating an Exception but that just prints the message in report view and minimize happily continues until 100 iterations pass. Which takes time without doing any meaningful job. This version (when...
Isn't that what the combination of SourceFile and SourcePart is supposed to accomplish? And when you update the source toponaming kicks in and you probably need to readjust/reapply constraints..
If you can install python.scipy, Looks like it comes with the latest Windows LibPack (12.4.2) so the macro runs here and is Awesome :)\ Here is a little revised script and I need it to brake when the recompute fails. But clearly this is not the way :) import FreeCAD from scipy.optimize import minim...