PathScripts.PathToolLibraryManager.ToolLibraryManager Class Reference

Public Member Functions

def addnew (self, listname, tool, position=None)
 
def addNewToolTable (self)
 
def delete (self, number, listname)
 
def deleteToolTable (self)
 
def duplicate (self, number, listname)
 
def getCurrentTable (self)
 
def getCurrentTableName (self)
 
def getJobList (self)
 
def getNextToolTableName (self, tableName="Tool Table")
 
def getTableFromName (self, name)
 
def getTool (self, listname, toolnum)
 
def getTools (self, tablename)
 
def getToolTables (self)
 
def loadToolTables (self)
 
def movedown (self, number, listname)
 
def moveToTable (self, number, listname)
 
def moveup (self, number, listname)
 
def read (self, filename, listname)
 
def renameToolTable (self, newName, index)
 
def saveMainLibrary (self)
 
def templateAttrs (self)
 
def tooltableFromAttrs (self, stringattrs)
 
def updateTool (self, listname, toolnum, tool)
 
def write (self, filename, listname)
 

Public Attributes

 currentTableName
 
 prefs
 
 toolTables
 

Static Public Attributes

string PreferenceMainLibraryJSON = "ToolLibrary-Main"
 
string PreferenceMainLibraryXML = "ToolLibrary"
 
 TooltableTypeHeekscad
 
 TooltableTypeJSON = translate("PathToolLibraryManager", "Tooltable JSON (*.json)")
 
 TooltableTypeLinuxCNC
 
 TooltableTypeXML = translate("PathToolLibraryManager", "Tooltable XML (*.xml)")
 

Detailed Description

The Tool Library is a list of individual tool tables.  Each
Tool Table can contain n tools.  The tool library will be persisted to user
preferences and all or part of the library can be exported to other formats

Member Function Documentation

◆ addnew()

◆ addNewToolTable()

◆ delete()

◆ deleteToolTable()

def PathScripts.PathToolLibraryManager.ToolLibraryManager.deleteToolTable (   self)

◆ duplicate()

def PathScripts.PathToolLibraryManager.ToolLibraryManager.duplicate (   self,
  number,
  listname 
)

◆ getCurrentTable()

def PathScripts.PathToolLibraryManager.ToolLibraryManager.getCurrentTable (   self)

◆ getCurrentTableName()

◆ getJobList()

def PathScripts.PathToolLibraryManager.ToolLibraryManager.getJobList (   self)
Builds the list of all Tool Table lists

◆ getNextToolTableName()

def PathScripts.PathToolLibraryManager.ToolLibraryManager.getNextToolTableName (   self,
  tableName = "Tool Table" 
)

◆ getTableFromName()

◆ getTool()

def PathScripts.PathToolLibraryManager.ToolLibraryManager.getTool (   self,
  listname,
  toolnum 
)

◆ getTools()

def PathScripts.PathToolLibraryManager.ToolLibraryManager.getTools (   self,
  tablename 
)

◆ getToolTables()

def PathScripts.PathToolLibraryManager.ToolLibraryManager.getToolTables (   self)

◆ loadToolTables()

◆ movedown()

◆ moveToTable()

def PathScripts.PathToolLibraryManager.ToolLibraryManager.moveToTable (   self,
  number,
  listname 
)

◆ moveup()

◆ read()

◆ renameToolTable()

def PathScripts.PathToolLibraryManager.ToolLibraryManager.renameToolTable (   self,
  newName,
  index 
)

◆ saveMainLibrary()

◆ templateAttrs()

◆ tooltableFromAttrs()

◆ updateTool()

◆ write()

Member Data Documentation

◆ currentTableName

◆ PreferenceMainLibraryJSON

string PathScripts.PathToolLibraryManager.ToolLibraryManager.PreferenceMainLibraryJSON = "ToolLibrary-Main"
static

◆ PreferenceMainLibraryXML

string PathScripts.PathToolLibraryManager.ToolLibraryManager.PreferenceMainLibraryXML = "ToolLibrary"
static

◆ prefs

◆ toolTables

◆ TooltableTypeHeekscad

PathScripts.PathToolLibraryManager.ToolLibraryManager.TooltableTypeHeekscad
static
Initial value:
"PathToolLibraryManager", "HeeksCAD tooltable (*.tooltable)"
)

◆ TooltableTypeJSON

PathScripts.PathToolLibraryManager.ToolLibraryManager.TooltableTypeJSON = translate("PathToolLibraryManager", "Tooltable JSON (*.json)")
static

◆ TooltableTypeLinuxCNC

PathScripts.PathToolLibraryManager.ToolLibraryManager.TooltableTypeLinuxCNC
static
Initial value:
"PathToolLibraryManager", "LinuxCNC tooltable (*.tbl)"
)

Referenced by PathScripts.PathToolLibraryManager.ToolLibraryManager.write().

◆ TooltableTypeXML

PathScripts.PathToolLibraryManager.ToolLibraryManager.TooltableTypeXML = translate("PathToolLibraryManager", "Tooltable XML (*.xml)")
static

The documentation for this class was generated from the following file: