Toolchange output fixed
This commit is contained in:
parent
50bfaffcd1
commit
fe11942afb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user