Advertisement
danfalck

bb_parse.py

Sep 5th, 2014
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. import FreeCADGui as Gui
  2.  
  3. a = Gui.Selection.getSelection()
  4.  
  5. for i in a:
  6.     xl = i.Shape.BoundBox.XLength/25.4
  7.     yl = i.Shape.BoundBox.YLength/25.4
  8.     zl = i.Shape.BoundBox.ZLength/25.4
  9.     print i.Label +", x="+ str(xl)+" , y="+str(yl)+" , z="+str(zl)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement