Search found 39 matches

by clel
Thu Dec 05, 2019 12:55 pm
Forum: Help on using FreeCAD
Topic: Keyboard shortcut, View toolbar - Wireframe
Replies: 63
Views: 16860

Re: Keyboard shortcut, View toolbar - Wireframe

Already a bit outdated, but after a short search I found this Wiki page: https://www.freecadweb.org/wiki/Std_DrawStyle You can change the style with Gui.runCommand('Std_DrawStyle', 1) for example. This is an easy solution and also the other solutions mentioned here which I tested did not work for me.
by clel
Thu Dec 05, 2019 12:52 pm
Forum: Python scripting and macros
Topic: change Draw Style with python
Replies: 6
Views: 1850

Re: change Draw Style with python

Already a bit outdated, but after a short search I found this Wiki page: https://www.freecadweb.org/wiki/Std_DrawStyle

You can change the style with

Code: Select all

Gui.runCommand('Std_DrawStyle', 1)
for example.

This is an easy solution and also the other solutions mentioned here did not work for me.
by clel
Thu Dec 05, 2019 11:26 am
Forum: Python scripting and macros
Topic: Using the API
Replies: 25
Views: 4883

Re: Using the API

... Is efficiency really such a big concern? Well, one could strip the diagrams at first. But also uploading 5 GB like once a week should be ok imho. There might also be the ability to only upload the diff maybe with GitHub pages. That will probably drastically reduce the traffic. By efficiency, I ...
by clel
Wed Dec 04, 2019 2:59 pm
Forum: Python scripting and macros
Topic: Batch image export problem
Replies: 4
Views: 514

Re: Batch image export problem

My way is just more robust against a file that would eg. be named "aFile.stl.exportAs.STEP". ;) But I let you decide. :) That is true. However I think that case won't happen for my files, so I will stick with the current one. Actually Qt apps works with an event system that is processed t...
by clel
Wed Dec 04, 2019 10:46 am
Forum: Python scripting and macros
Topic: Using the API
Replies: 25
Views: 4883

Re: Using the API

Correct. The lead developers don't have a lot of time. So, if you'd like to help the project, why not investigate this yourself, and then come back with more concrete ideas and proposals? Alright. That would first require me to get known to your current build process and tools. A first easy proposa...
by clel
Tue Dec 03, 2019 2:36 pm
Forum: Python scripting and macros
Topic: Batch image export problem
Replies: 4
Views: 514

Re: Batch image export problem

Yes, it works now! I just used Gui.updateGui() at the end of the loop. I left the string manipulation as it is, this should not be a bottle neck, since there are not that many files to loop over. If you think that they are not nice coding style, let me know then I will change them. The updateGui() f...
by clel
Tue Dec 03, 2019 1:48 pm
Forum: Python scripting and macros
Topic: Batch image export problem
Replies: 4
Views: 514

Batch image export problem

I am trying to write a script which loops over a directory (recursively) and exports images from the (STL) parts. Unfortunately FreeCAD crashes after creating around 40 images or gives an error message: <unknown exception traceback><class 'RuntimeError'>: Access violation The script looks roughly li...
by clel
Tue Dec 03, 2019 12:48 pm
Forum: Python scripting and macros
Topic: Using the API
Replies: 25
Views: 4883

Re: Using the API

In the Help menu of FreeCAD you will find the command Automatic python modules documentation where FreeCAD internally starts a little webserver that communicates with your system browser over a local socket. Now you can browse through the available modules, classes and functions while FreeCAD gener...
by clel
Tue Dec 03, 2019 12:39 pm
Forum: Python scripting and macros
Topic: Using the API
Replies: 25
Views: 4883

Re: Using the API

Sad to hear that. 5GB sounds rather big, much bigger than the FreeCAD program itself which contains documentation through the console. Do you have a source for that? The incompleteness should probably better be mentioned on the API page. I expected a complete API. Regarding hosting I am rather sure...
by clel
Mon Dec 02, 2019 1:06 pm
Forum: Python scripting and macros
Topic: Using the API
Replies: 25
Views: 4883

Re: Using the API

All of the mentioned functions are still available but you may have to first import the corresponding Python modules import Part import Mesh import MeshPart Yep, I know that they work. Just wanted some documentation for them and other functions I might like to use, but don't know of, yet. Browsing ...