コード例 #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()
コード例 #2
0
    def Activated(self):
        import PathScripts.PathToolBitLibraryGui as PathToolBitLibraryGui
        dock = PathToolBitLibraryGui.ToolBitSelector()

        lastlib = PathPreferences.lastPathToolLibrary()

        if PathPreferences.toolsOpenLastLibrary():
            dock.open(lastlib)
        else:
            dock.open()
コード例 #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
コード例 #4
0
    def Activated(self):
        import PathScripts.PathToolBitLibraryGui as PathToolBitLibraryGui

        library = PathToolBitLibraryGui.ToolBitLibrary()

        library.open()
コード例 #5
0
    def Activated(self):
        import PathScripts.PathToolBitLibraryGui as PathToolBitLibraryGui

        dock = PathToolBitLibraryGui.ToolBitSelector()
        dock.open()