Scaling a Sketch

Creates a copy of a sketch and scales it to 50% in size.


*Must have the attached 'TEST ROOM scaled' part file open for this example.



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)


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.