Created
October 14, 2025 10:35
-
-
Save stephensmitchell/adbbd8a170e1f116ef35999eca6b632d to your computer and use it in GitHub Desktop.
Lofting with a Guide Curve
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #https://help.alibre.com/articles/#!alibre-help-v28/lofting-with-a-guide-curve | |
| # 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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment