I'm still stuck. (sigh)
So far I've got: (follow along with https://github.com/iplayfast/CycloidGearBox )
import cycloidbox
g = cycloidbox.hypoCycloidalGear()
a = Part.BSplineCurve(g.generateCycloidalDiskArray()).toShape()
Part.show(a)
and I get a cycloidal gear. BUT it's just a line. I need to make it a plane and then pad it.
But once it's made I can't seem to do anything with it.
Any suggestions?
How to convert a bspline to a part [Solved]
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: How to convert a bspline to a part
In the GUI you can either extrude in Part workbench, or you can move it into a PartDesign body and pad in PartDesign. I guess you have to follow similar steps from python.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: How to convert a bspline to a part
This should build the solid :
Code: Select all
w = Part.Wire([a])
f = Part.Face(w)
e = f.extrude(FreeCAD.Vector(0,0,2))
Part.show(e)
Re: How to convert a bspline to a part
Lot's of Chris's on this forum. (I'm one too).
This looks like exactly what I was looking for! Thank you.Chris_G wrote: ↑Mon Sep 30, 2019 12:24 pm This should build the solid :Code: Select all
w = Part.Wire([a]) f = Part.Face(w) e = f.extrude(FreeCAD.Vector(0,0,2)) Part.show(e)
Working on...
https://github.com/iplayfast/CycloidGearBox
https://github.com/iplayfast/CycloidGearBox