How to use draft feature in scripting?

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
TomX
Posts: 2
Joined: Fri Aug 28, 2015 6:39 pm

How to use draft feature in scripting?

Post by TomX »

Hi,
I have just started with FreeCAD python scripting and I'm really impressed. But now I have problem adding a draft for a plastic part.
I managed to add a draft object via the GUI. But I did not find an API to add the draft directly to the shape.

In my point of view it is a similar task like adding a thickness. For this I found

myShape = myShape.makeThickness([facesToRemove], Thickness, 1.e-3)

But I cannot find a direct function for draft. I have expected something like

myShape = myShape.makeDraft([facesToDraft], angle, neutralFace, direction)

Maybe this feature is just missing in Python API. Any ideas?
Thank you in advance

Tom
Post Reply