Author Topic: Rename All Tools  (Read 4414 times)

Offline alex_holden

  • Ewok
  • *
  • Posts: 35
    • View Profile
Rename All Tools
« on: October 18, 2019, 07:26:42 am »
I'm not actually sure what this feature is supposed to do, but when I right click on a tool library and select "Rename all tools" it either appears to do nothing or it generates an unhandled exception "An entry with the same key already exists". It does this with the bundled Lathe-mm library which I've never altered, so I don't think it's something screwy about my library. This happens for me on both 0.9.8 and 1.0-rc2.

Offline 10bulls

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 2163
  • Coding Jedi
    • View Profile
Re: Rename All Tools
« Reply #1 on: October 18, 2019, 08:39:38 am »
Thanks Alex,

The 'Rename all tools' function is described in the 'Tool numbering and naming' of this page...

I will look into making the error message less ugly, perhaps just a log message warning and internally make sure the generated name is unique (such as by appending the tool index).

Rename all tools should also be changed to not do anything if there is no 'Tool Name Format' value set.

And while we are at it, I think a confirmation 'This will rename all your tools' would be friendly.

The lathe tool library is a bit odd in that none of the tool properties really identify what the tool is, so it is best to manually set the tool names for lathe tools in the current design.

Thank you for pointing this out, I have added this to the TODO list.