Created
October 14, 2025 10:35
-
-
Save stephensmitchell/dae25bdf3e283f15cd57817b7aa56820 to your computer and use it in GitHub Desktop.
Scaling a Sketch
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/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