Exemplo n.º 1
0
    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()
Exemplo n.º 3
0
    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()