Search found 7103 matches

Go to advanced search

by DeepSOIC
Mon Dec 02, 2019 3:28 pm
Forum: Help on using FreeCAD
Topic: Sketcher: Possible to Disable Solving of Carbon Copies?
Replies: 7
Views: 146

Re: Sketcher: Possible to Disable Solving of Carbon Copies?

[note to self: to try support it when porting sketcher to new solver api, if I ever get that far]
by DeepSOIC
Mon Dec 02, 2019 2:47 pm
Forum: Python scripting and macros
Topic: stopping a while loop
Replies: 7
Views: 143

Re: stopping a while loop

openBrain wrote:
Mon Dec 02, 2019 2:42 pm
QtGui.QApplication.instance()
thanks, will try it next time I need it.
by DeepSOIC
Mon Dec 02, 2019 2:38 pm
Forum: Python scripting and macros
Topic: stopping a while loop
Replies: 7
Views: 143

Re: stopping a while loop

I added a variable self.Run which is initialized to True, and I connect the Stop button to a function that sets it to False, and I check that variable in the while loop … And that does it. Good to know, so Gui.updateGui is likely just a call to QApplication.processEvents, I persume. Otherwise, the ...
by DeepSOIC
Mon Dec 02, 2019 1:56 pm
Forum: Python scripting and macros
Topic: stopping a while loop
Replies: 7
Views: 143

Re: stopping a while loop

Another approach (better, but more difficult/less readable code) is to use a timer and a state machine to drive your animation.
by DeepSOIC
Mon Dec 02, 2019 1:49 pm
Forum: Python scripting and macros
Topic: stopping a while loop
Replies: 7
Views: 143

Re: stopping a while loop

You can call QtGui.QApplication.processEvents() from within the loop. That requires instance of qApp, and I have not been able to reliably obtain one from PySide2. Apparently it's buggy. Another option is to use progress window. An example can be found in Macro Recompute Profiler . I don't know, but...
by DeepSOIC
Sun Dec 01, 2019 11:17 pm
Forum: Help on using FreeCAD
Topic: Error when editing Sketch
Replies: 22
Views: 639

Re: Error when editing Sketch

Clean build should solve the problem. (well, you will get an error message when loading the file, but not the permanent behavior change) If too lazy, locate and delete "TempoVis.py" in Mod/Show. See also https://forum.freecadweb.org/viewtopic.php?t=39582 I'm clueless as to why no actual error messag...
by DeepSOIC
Sun Dec 01, 2019 10:29 pm
Forum: Help on using FreeCAD
Topic: Error when editing Sketch
Replies: 22
Views: 639

Re: Error when editing Sketch

Will paste full info later. ;) Please say if it is self-compiled, or daily build/appimage. Also. Make sure that you have enabled script output to py console. Then, retry, and paste what is printed when you get an error. If you want, you can also debug it by executing the script line-by-line to see ...
by DeepSOIC
Sun Dec 01, 2019 9:21 pm
Forum: Help on using FreeCAD
Topic: Error when editing Sketch
Replies: 22
Views: 639

Re: Error when editing Sketch

openBrain wrote:
Sun Dec 01, 2019 5:50 pm
Traceback (most recent call last):
File "<string>", line 2, in <module>
<class 'TypeError'>: 'module' object is not callable
ViewProviderSketch::setEdit: visibility automation failed with an error:
And no actual error??

What version?
by DeepSOIC
Sat Nov 30, 2019 10:27 pm
Forum: Assembly
Topic: Reimplementing constraint solver [all solvers implemented]
Replies: 49
Views: 2816

Re: Reimplementing constraint solver [BFGS solver is up!]

I have this one. Might help. https://drive.google.com/file/d/1Z_rX5Eci1E3PHQXJWbswlOtjp_RH63MU Thank you, now I got it. Unfortunately, it isn't the exact book I was after. The book I found was "Numerical Optimization" by Jorge Nocedal and Stephen J. Wright. The one you sent me is "Numerical-Methods...
by DeepSOIC
Sat Nov 30, 2019 11:18 am
Forum: Форум на русском языке
Topic: Техника моделирования, группирование для Булевых операций
Replies: 6
Views: 191

Re: Техника моделирования, группирование для Булевых операций

Вопрос в другом. Можно ли объединить, к примеру, все метизы в проекте, и вычесть их из каждой детали, в которую они вставляются? Одним действием, а не 50-ю. Part MakeCompound . В новом 0.19 есть новый функционал на эту тему: Link (ссылка-копия) и LinkGroup (набор ссылок-копий). Вдобавок, объекты Pa...

Go to advanced search