Skip to content

Instantly share code, notes, and snippets.

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

  • Save stephensmitchell/9abc10f946ee90b2a2b816e0cd03d611 to your computer and use it in GitHub Desktop.

Select an option

Save stephensmitchell/9abc10f946ee90b2a2b816e0cd03d611 to your computer and use it in GitHub Desktop.
Modify an Existing Part
#https://help.alibre.com/articles/#!alibre-help-v28/modify-an-existing-part
# demonstrates opening an existing part and adding a 3d sketch to it
# load P:\work\TestPart.AD_PRT
MyPart = Part(r'C:\Users\<username>\Desktop\ScriptDir', 'New')
# create a 3D sketch
Route = MyPart.Add3DSketch('Route')
Route.AddBspline([0, 0, 0, 5, 0, 0, 10, 5, 5, 15, 10, 5, 15, 15, 15])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment