Author Topic: Tool Table Mapper  (Read 191 times)

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1419
    • View Profile
Tool Table Mapper
« on: May 04, 2021, 12:48:18 pm »
Here is a small plugin that helped with a few frustrations I had working with the tool libraries.
I have 10 tool libraries, some having many tools (30 Drills) and some with
only one tool  (Imperial Bull Nose EndMills) .

If I open the Drills lib, then it opens up and scrolls of the screen if I have other tool
libs open, then I'm incessantly scrolling up and down the panel.

And so many libraries, it's easy to have duplicate tool numbers in some of the libraries.
So I made this visual mapper, which has a drop down box that shows all of the
tools from all of the libraries at once, without having to open up the libs in the tree.

Just install the plugin in the plugin's folder and from the plugin's dropdown list
(the name in the list will be Tool Renumber) select Tool Table Mapper, this is
because the tool table mapper is a small piece of code from a larger project.
When opened up it will look like the first pic.
Simply press Find Free Tool Slots and it'll change to pic2.
The tools in the libs are colour coded per tool library.

<tested on win7 32 bit CB ver1>

Dave

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4645
    • View Profile
Re: Tool Table Mapper
« Reply #1 on: May 05, 2021, 15:49:49 pm »
Dave,

It does not like my setup because I use the same numbers in multiple tool libraries.
Made in England

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1419
    • View Profile
Re: Tool Table Mapper
« Reply #2 on: May 05, 2021, 23:01:53 pm »
Yes Eddy
that's what the original tool-renumber does (it finds all of the duplicate tool numbers in the libraries
and (the part that is not included in this version) takes all of the libraries removes the duplicates
and then rebuilds the libraries allocating space for each of (10 - 30 tool numbers) libs tools so that you have a monolithic
sequential block of tool numbers (think of it as a re-allocation of disk space on a hard drive).
something akin to garbage collection.

Most people will use one lib for their tools, say Default-mm and put all of their tools in there.
CB does have a sequential tool renumber method that will do this (for that library) (remove the duplicates)
Tool- renumber does this for ALL of the tool libs.

CB is fine with having duplicate tool numbers in each library, but the AI turrets will point out my stupidity.
I posted this code so that, if for example you have acquired a half dozen new endmills  and want to know
the where the next available (free tool numbers\slots) are, so as not to get duplicates.


Dave



Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1419
    • View Profile
Re: Tool Table Mapper
« Reply #3 on: May 08, 2021, 10:46:39 am »
I've been using the plugin to add some more drills.
And made a few adjustments.

1..made the text box's bigger
2..switched the text from bold to normal in the text box's
3..You can now click on a button and the tool library and
tool info and tool lib colour are displayed in the drop down box's
and all the tool libraries are closed and just the library associated with
clicked on tool  is expanded.
edit: to remove wrongly named version
Dave
« Last Edit: May 08, 2021, 12:32:37 pm by dave benson »

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4645
    • View Profile
Re: Tool Table Mapper
« Reply #4 on: May 08, 2021, 11:51:19 am »
Dave,

You renamed the dll meaning that the previous version is not overwritten and replaced.

Previous one was named, Tool-Table-Mapper.dll

This new one is named, Tool-Table Mapper.dll
« Last Edit: May 08, 2021, 11:53:46 am by EddyCurrent »
Made in England

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1419
    • View Profile
Re: Tool Table Mapper
« Reply #5 on: May 08, 2021, 12:31:25 pm »
Thanks Eddy
I'll remove the other dodgy file.
Here's the new one.
Dave