Skip to content

Instantly share code, notes, and snippets.

@stephensmitchell
Created October 14, 2025 10:35
Show Gist options
  • Select an option

  • Save stephensmitchell/6d9726e9931c131a7dd0b86bb40dbf9f to your computer and use it in GitHub Desktop.

Select an option

Save stephensmitchell/6d9726e9931c131a7dd0b86bb40dbf9f to your computer and use it in GitHub Desktop.
Midplane Extrusion
#https://help.alibre.com/articles/#!alibre-help-v28/midplane-extrusion
# create the part and then a sketch containing a circle
P = Part('Test')
S = P.AddSketch('Shape', P.GetPlane('XY-Plane'))
S.AddCircle(0, 0, 9, False)
# how far we will extrude from mid-plane
ExtrudeLength = 10
# extrude it
P.AddExtrudeBoss('Cyl', S, ExtrudeLength, False, Part.EndCondition.MidPlane, None, 0, Part.DirectionType.Normal, None, 0, False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment