Skip to content

Commit

Permalink
Draft: Array tool now prints commands in the python console
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Jul 13, 2014
1 parent 32f5aae commit b336812
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Mod/Draft/DraftTools.py
Expand Up @@ -3984,10 +3984,10 @@ def proceed(self):
self.view.removeEventCallback("SoEvent",self.call)
if FreeCADGui.Selection.getSelection():
obj = FreeCADGui.Selection.getSelection()[0]
FreeCAD.ActiveDocument.openTransaction("Array")
Draft.makeArray(obj,Vector(1,0,0),Vector(0,1,0),2,2)
FreeCAD.ActiveDocument.commitTransaction()
FreeCAD.ActiveDocument.recompute()
self.commit(translate("draft","Array"),
['import Draft',
'Draft.makeArray(FreeCAD.ActiveDocument.'+obj.Name+',FreeCAD.Vector(1,0,0),FreeCAD.Vector(0,1,0),2,2)',
'FreeCAD.ActiveDocument.recompute()'])
self.finish()

class PathArray(Modifier):
Expand Down

0 comments on commit b336812

Please sign in to comment.