Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save stephensmitchell/dae25bdf3e283f15cd57817b7aa56820 to your computer and use it in GitHub Desktop.
Scaling a Sketch
#https://help.alibre.com/articles/#!alibre-help-v28/scaling-a-sketch
Units.Current = UnitTypes.Inches
TestRoom = Part('TEST ROOM Scaled', False)
OriginalSketch = TestRoom.GetSketch('Sketch<1>')
# currently 8.25' wide, need it to be 4.125'
ScaleFactor = 4.125 / 8.25 * 100.0
ScaledSketch = TestRoom.AddSketch('Scaled', TestRoom.GetFace('Face<6>'))
ScaledSketch.CopyFrom(OriginalSketch, 0, 0, 0, 8.25, 0, 0, 0, ScaleFactor)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment