Search found 90 matches

by Bayesian
Wed Nov 27, 2019 6:30 am
Forum: Python scripting and macros
Topic: FDM G-code generation
Replies: 8
Views: 1846

Re: FDM G-code generation

There are two workbenches in the addon manager that integrate either CuraEngine or Slicer. There is a "Path" workbench which can be used to generate G-Code for subtractive manufacturing, for example CNC milling. I think you need to fill us in on what exactly you want to achieve. Why do you...
by Bayesian
Wed Nov 27, 2019 6:22 am
Forum: Python scripting and macros
Topic: Using python scripts
Replies: 6
Views: 1360

Re: Using python scripts

You can use them in lots of places, with the one limitation (I think) to do it in the main thread of the application. If you don't know what I mean about the threading stuff, you probably don't need to care anyway. The easiest way for me is to use Jupyter notebook. I have installed a kernel that sta...
by Bayesian
Mon Nov 25, 2019 8:54 am
Forum: Python scripting and macros
Topic: 0.19 usage of Gui.Selection.getSelection()
Replies: 9
Views: 983

Re: 0.19 usage of Gui.Selection.getSelection()

Are you looking for this?

Code: Select all

	Gui.ActiveDocument.getInEdit().Object
by Bayesian
Sat Nov 23, 2019 11:53 pm
Forum: Python scripting and macros
Topic: Regarding App::PropertyLink
Replies: 0
Views: 501

Regarding App::PropertyLink

I was toying around with properties and features, and came upon PropertyLink. When I add a property with that type, the name is important, apparently. If the name is "Placement" it becomes a placement property with corresponding GUI, otherwise it allows you to select another object. Is the...
by Bayesian
Fri Nov 22, 2019 2:14 pm
Forum: Python scripting and macros
Topic: Export STL script
Replies: 17
Views: 6829

Re: Export STL script

I would also recommend setting the deviation much lower by default. For 3D printing (and probably lots of other applications), a deviation of 0.1 or 0.5 would be preferable. A lot of new users seem to work with higher deviations, with horrible results, until they get frustrated and google how to cha...
by Bayesian
Thu Nov 21, 2019 8:59 am
Forum: Python scripting and macros
Topic: Export STL script
Replies: 17
Views: 6829

Re: Export STL script

DeepSOIC wrote: Wed Nov 20, 2019 4:27 pm Part-o-magic Exporter? https://forum.freecadweb.org/viewtopic. ... 50#p164011
I wasn't aware of this and will take a look!
by Bayesian
Wed Nov 20, 2019 11:29 am
Forum: Open discussion
Topic: Call for screenshots
Replies: 157
Views: 495810

Re: Call for screenshots

But now look at this animation that I made in blender with the stl produced in FreeCAD. Greetings Quick Tip: You can increase the resolution of the STL file by changing the "Deviation" property of the model in the View Tab of the property editor (usually that's the panel on the bottom lef...
by Bayesian
Wed Nov 20, 2019 10:14 am
Forum: Python scripting and macros
Topic: Export STL script
Replies: 17
Views: 6829

Re: Export STL script

I tend to put these thing into Jupyter Notebook Cells, and just run the export commands from there. Also works with multiple models or multiple variants of the same model with different parameters. I'm working on a different solution, based on FeaturePython objects in the tree. An STL export would t...
by Bayesian
Thu Nov 14, 2019 9:11 am
Forum: Python scripting and macros
Topic: How to find good documentation on the FreeCAD and Part python packages
Replies: 3
Views: 924

Re: How to find good doccumentation on the FreeCAD and Part python packages

The wiki has several examples on how to use the Part module to get you started.