Lofting with a Guide Curve

An example of creating a loft with a guide curve.  This can easily be extended to use multiple curves.

# create part
P = Part('foo')
# create sketch for bottom of loft
Bottom = P.AddSketch('Bottom', P.GetPlane('XY-Plane'))
Bottom.AddRectangle(0, 0, 10, 10, False)
# create sketch for top of loft
TopPlane = P.AddPlane('Top Plane', P.GetPlane('XY-Plane'), 30)
Top = P.AddSketch('Top', TopPlane)
Top.AddRectangle(0, 0, 50, 50, False)
# create guide curve
Guide = P.Add3DSketch('Guide')
Guide.AddBspline([10,10,0, 20,20,5, 45,45,15, 50,50,30])
# create loft using guide curve
P.AddLoftBoss('Loft Test', [Bottom, Top], [Guide], GuideCurveTypes.Global, True, False, False, False)

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.