Profil i ścieżka przeciągnięcia
Profile and Sweep Path

Ten skrypt tworzy gładką ścieżkę rury za pomocą szkicu 3D, a następnie okrąg na jednym z jej końców, definiujący profil przeciągnięcia. Operację przeciągnięcia można następnie dokończyć ręcznie.
# create the part and get the yz planeMyPart = Part('Test')YZPlane = MyPart.GetPlane('YZ-Plane')
# create the route for the pipePipeRoute = MyPart.Add3DSketch('Pipe Route')PipeRoute.AddBspline([0, 0, 0, 5, 0, 0, 10, 5, 5, 15, 10, 5, 15, 15, 15])
# create the pipe profile as a circle on the yz planeStartProfile = MyPart.AddSketch('Start Profile', YZPlane)StartProfile.AddCircle(0, 0, 5, False)Oryginał: Profile and Sweep Path