Path: remove ToolLengthOffset
Obsolete and broken supplemental command fixes #3382
This commit is contained in:
@@ -85,7 +85,6 @@ SET(PathScripts_SRCS
|
||||
PathScripts/PathSurface.py
|
||||
PathScripts/PathSurfaceGui.py
|
||||
PathScripts/PathToolController.py
|
||||
PathScripts/PathToolLenOffset.py
|
||||
PathScripts/PathToolLibraryManager.py
|
||||
PathScripts/PathUtil.py
|
||||
PathScripts/PathUtils.py
|
||||
|
||||
@@ -74,7 +74,6 @@ class PathWorkbench (Workbench):
|
||||
from PathScripts import PathStop
|
||||
from PathScripts import PathSurfaceGui
|
||||
from PathScripts import PathToolController
|
||||
from PathScripts import PathToolLenOffset
|
||||
from PathScripts import PathToolLibraryManager
|
||||
from PathScripts import PathSimulatorGui
|
||||
import PathCommands
|
||||
@@ -82,7 +81,7 @@ class PathWorkbench (Workbench):
|
||||
# build commands list
|
||||
projcmdlist = ["Path_Job", "Path_Post"]
|
||||
toolcmdlist = ["Path_Inspect", "Path_Simulator", "Path_ToolLibraryEdit", "Path_SelectLoop"]
|
||||
prepcmdlist = ["Path_Plane", "Path_Fixture", "Path_ToolLenOffset", "Path_Comment", "Path_Stop", "Path_Custom", "Path_Shape"]
|
||||
prepcmdlist = ["Path_Plane", "Path_Fixture", "Path_Comment", "Path_Stop", "Path_Custom", "Path_Shape"]
|
||||
twodopcmdlist = ["Path_Contour", "Path_Profile_Faces", "Path_Profile_Edges", "Path_Pocket_Shape", "Path_Drilling", "Path_Engrave", "Path_MillFace", "Path_Helix"]
|
||||
threedopcmdlist = ["Path_Pocket_3D"]
|
||||
modcmdlist = ["Path_OperationCopy", "Path_Array", "Path_SimpleCopy" ]
|
||||
|
||||
@@ -399,22 +399,6 @@ def reverseEdge(e):
|
||||
return newedge
|
||||
|
||||
|
||||
def changeTool(obj, job):
|
||||
tlnum = 0
|
||||
for p in job.Group:
|
||||
if not hasattr(p, "Group"):
|
||||
if isinstance(p.Proxy, PathScripts.PathToolController.ToolController) and p.ToolNumber > 0:
|
||||
tlnum = p.ToolNumber
|
||||
if p == obj:
|
||||
return tlnum
|
||||
elif hasattr(p, "Group"):
|
||||
for g in p.Group:
|
||||
if isinstance(g.Proxy, PathScripts.PathToolController.ToolController):
|
||||
tlnum = g.ToolNumber
|
||||
if g == obj:
|
||||
return tlnum
|
||||
|
||||
|
||||
def getToolControllers(obj):
|
||||
'''returns all the tool controllers'''
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user