diff --git a/src/Mod/Path/PathScripts/PathLoadTool.py b/src/Mod/Path/PathScripts/PathLoadTool.py index e4a5407d1..a115a099c 100644 --- a/src/Mod/Path/PathScripts/PathLoadTool.py +++ b/src/Mod/Path/PathScripts/PathLoadTool.py @@ -26,6 +26,7 @@ import FreeCAD import FreeCADGui import PathUtils +import Path import Part import PathScripts from PySide import QtCore, QtGui @@ -74,6 +75,15 @@ class LoadTool(): else: commands += 'M4S' + str(obj.SpindleSpeed) + '\n' + # print output + if commands == "": + commands += "(No commands processed)" + + + path = Path.Path(commands) + obj.Path = path + obj.ViewObject.Visibility = True + def onChanged(self, obj, prop): mode = 2 obj.setEditorMode('Placement', mode)