View Revisions: Issue #3066

Summary 0003066: Draft clone fails with "name 'Draft' is not defined" if used first time in Draft workbench
Revision 2017-06-02 15:36 by Kunda1
Description It seems like variable Draft is dynamically created when a tool from Draft workbench is used.
But if the first used tool from Draft workbench is Clone it fails with:

Running the Python command 'Draft_Clone' failed:
Traceback (most recent call last):
  File "$HOME/src/freecad-build/Mod/Draft/DraftTools.py", line 4832, in Activated
    self.proceed()
  File "$HOME/src/freecad-build/Mod/Draft/DraftTools.py", line 4841, in proceed
    FreeCADGui.doCommand("Draft.clone(FreeCAD.ActiveDocument."+obj.Name+")")
  File "<string>", line 1, in <module>

name 'Draft' is not defined
After using some other tool from Draft workbench (for example move) clone operation starts to work.
Revision 2017-06-02 14:54 by sheinz
Description It seems like variable Draft is dynamically created when a tool from Draft workbench is used.
But if the first used tool from Draft workbench is Clone it fails with:

Running the Python command 'Draft_Clone' failed:
Traceback (most recent call last):
  File "$HOME/src/freecad-build/Mod/Draft/DraftTools.py", line 4832, in Activated
    self.proceed()
  File "$HOME/src/freecad-build/Mod/Draft/DraftTools.py", line 4841, in proceed
    FreeCADGui.doCommand("Draft.clone(FreeCAD.ActiveDocument."+obj.Name+")")
  File "<string>", line 1, in <module>

name 'Draft' is not defined
After using some other tool from Draft workbench (for example move) clone operation starts to work.