Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #select some Draft Points-non Draft Vertexes won't work with this particular method:
- selection = Gui.Selection.getSelection()
- for p in selection:
- print p.X,",",p.Y,",",p.Z
- #for non Draft workbench points (ie Vertexes selected at line end points), that you pick on the screen:
- selection = Gui.Selection.getSelectionEx()[0].SubObjects
- for v in selection:
- print v.X,",",v.Y,",",v.Z
- #for end points of Draft rectangle for an example:
- rect = Gui.Selection.getSelection()[0]
- for e in rect.Shape.Edges:
- print e.Vertexes[0].X,",",e.Vertexes[0].Y,",",e.Vertexes[0].Z
- print e.Vertexes[-1].X,",",e.Vertexes[-1].Y,",",e.Vertexes[-1].Z
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement