Toolchange output fixed

This commit is contained in:
sliptonic
2016-11-05 19:24:56 -05:00
parent 9a3e8fb698
commit 4d0e4edefc

View File

@@ -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)