def Activated(self): import PathScripts.PathToolBitLibraryGui as PathToolBitLibraryGui library = PathToolBitLibraryGui.ToolBitLibrary() lastlib = PathPreferences.lastPathToolLibrary() if PathPreferences.toolsOpenLastLibrary(): library.open(lastlib) else: library.open()
def Activated(self): import PathScripts.PathToolBitLibraryGui as PathToolBitLibraryGui dock = PathToolBitLibraryGui.ToolBitSelector() lastlib = PathPreferences.lastPathToolLibrary() if PathPreferences.toolsOpenLastLibrary(): dock.open(lastlib) else: dock.open()
def Execute(cls, job): import PathScripts.PathToolBitLibraryGui as PathToolBitLibraryGui import PathScripts.PathToolControllerGui as PathToolControllerGui library = PathToolBitLibraryGui.ToolBitLibrary() if 1 == library.open() and job: for nr, tool in library.selectedOrAllTools(): tc = PathToolControllerGui.Create("TC: {}".format(tool.Label), tool, nr) job.Proxy.addToolController(tc) FreeCAD.ActiveDocument.recompute() return True return False
def Activated(self): import PathScripts.PathToolBitLibraryGui as PathToolBitLibraryGui library = PathToolBitLibraryGui.ToolBitLibrary() library.open()
def Activated(self): import PathScripts.PathToolBitLibraryGui as PathToolBitLibraryGui dock = PathToolBitLibraryGui.ToolBitSelector() dock.open()