Advertisement
danfalck

imperialConversion.py

Jun 2nd, 2013
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. import Draft
  2. from FreeCAD import Vector
  3. '''
  4. Use this macro to scale objects up by 25.4 in all axes.
  5. This is needed for metric to imperial units conversion.
  6. '''
  7.  
  8. sel=Gui.Selection.getSelection()
  9.  
  10. Draft.scale(sel,Vector(25.4,25.4,25.4),Vector(0,0,0))
  11. FreeCAD.ActiveDocument.recompute()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement