spanner888 wrote: ↑Fri Nov 06, 2020 9:44 am
Issue D: Confusing/changing Tool Names
Below is with default list of EndMills T1 to T9
Steps to reproduce:
Menu Path, Tool bit selector.
Select Tool, Click Add to Job.For example T3 is added as Tool Controller T004 (This is not the issue)
Open Toolbit library editor
Double click on ANY Toolbit, except the one just used to create new ToolController above, note Toolbit name matches that in greyed out toolbit list in center pane. Click OK or cancel and Toolbit name does NOT change.
Double click on the Toolbit just used to create new ToolCotroller above. Note Toolbit name has now changed to T005 in the editing pane.
Selecting OK will change Toolbit name in the library.
Huh. Well THAT's interesting.

I'll look at it.
I now understand this but don't know how to solve it. First, ToolBits lead a kind of 'double life' They can exist as document objects inside an active document. When you create a tool controller for a ToolBit, the nested toolbit is one of these. Second, they exist as a file on the file system (.fctb) in your Bit directory. When you're building a Toolbit library, you're building a list of these files.
The Name property in the file is the default name (label) given to a Toolbit object when it's added to a document. But if there's already a document object with that label, it figures out a new one that's different because you can't have two document objects with the same label.
When you're in the toolbit library manager and edit a toolbit by double clicking, it temporarily creates the object in the tree. You can edit the properties and then save it and it will be written to disk and removed from the document.
One question that occurred to me when I was working on the UI is; What does it mean for a user to edit the ToolBit document object underneath a tool controller? Will the user assume that changes made here are persisted to the disk? (It isn't) Should editing in this way even be allowed?