Advertisement
s2c-code-share

Automation Script Example: Add Scaling to DXFs

Feb 15th, 2022 (edited)
525
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. length = 18
  2.  
  3. imgs = s2c.list("path/to/input_directory", "dxf")
  4. for i in imgs:
  5.     dxf = i.open()
  6.     dxf.scale(1000, length, s2c.Unit.Inches)
  7.     dxf.save(dxf.path + ".scaled.dxf")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement