Yes, that was my mistake, thanks for finding my error, I was pretty sure it was my mistake and not @sliptonic.dubstar-04 wrote: ↑Wed Nov 04, 2020 7:50 pm you have to restart FreeCAD once you have changed setting for legacy tools.
Without a restart the noted error occurs.
Toolbits. SERIOUS EFFORT NEEDED
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
-
- Posts: 328
- Joined: Tue May 28, 2019 10:51 am
Re: Toolbits. SERIOUS EFFORT NEEDED
- sliptonic
- Veteran
- Posts: 3460
- Joined: Tue Oct 25, 2011 10:46 pm
- Location: Columbia, Missouri
- Contact:
Re: Toolbits. SERIOUS EFFORT NEEDED
NOW, you have made a mistake!
-
- Posts: 328
- Joined: Tue May 28, 2019 10:51 am
Re: Toolbits. SERIOUS EFFORT NEEDED
Made a start with testing, had a lot of interruptions and more coming, so just drop these minor issues here before they get lost.
Create new Path Job, accept defaults (press OK)
Expand Default Tool
Double click on EndMill- a New Task opens with Tool Shape and Attribute tabs.
Issue A: Title of task = "Form". Suggest title should be something like "Tool Bit Parameters"
Issue B: While in above Task form, clicked on property - immdiate FreeCAD crash
Can't reproduce this, so just mention in case someone else also gets.
Issue C: Change shape file to ballend, click ok to close task & following appears in report pane:
09:15:07 in _removebitbody
09:15:07 Traceback (most recent call last):
File "/home/spanner888/Documents/_source/freecad-build/Mod/Path/PathScripts/PathToolBitGui.py", line 147, in accept
self.editor.accept()
File "/home/spanner888/Documents/_source/freecad-build/Mod/Path/PathScripts/PathToolBitEdit.py", line 175, in accept
enabled = self.model.item(i, 0).checkState() == QtCore.Qt.Checked
<class 'AttributeError'>: 'NoneType' object has no attribute 'checkState'
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.
Create new Path Job, accept defaults (press OK)
Expand Default Tool
Double click on EndMill- a New Task opens with Tool Shape and Attribute tabs.
Issue A: Title of task = "Form". Suggest title should be something like "Tool Bit Parameters"
Issue B: While in above Task form, clicked on property - immdiate FreeCAD crash
Can't reproduce this, so just mention in case someone else also gets.
Issue C: Change shape file to ballend, click ok to close task & following appears in report pane:
09:15:07 in _removebitbody
09:15:07 Traceback (most recent call last):
File "/home/spanner888/Documents/_source/freecad-build/Mod/Path/PathScripts/PathToolBitGui.py", line 147, in accept
self.editor.accept()
File "/home/spanner888/Documents/_source/freecad-build/Mod/Path/PathScripts/PathToolBitEdit.py", line 175, in accept
enabled = self.model.item(i, 0).checkState() == QtCore.Qt.Checked
<class 'AttributeError'>: 'NoneType' object has no attribute 'checkState'
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.
- sliptonic
- Veteran
- Posts: 3460
- Joined: Tue Oct 25, 2011 10:46 pm
- Location: Columbia, Missouri
- Contact:
Re: Toolbits. SERIOUS EFFORT NEEDED
Got it.spanner888 wrote: ↑Fri Nov 06, 2020 9:44 am Issue A: Title of task = "Form". Suggest title should be something like "Tool Bit Parameters"
Issue B: While in above Task form, clicked on property - immdiate FreeCAD crash
Are you running a style sheet? I think this is the crash I referred to earlier. I can reproduce it reliably but only if FreeCAD has no stylesheet set. Others have not been able to reproduce it at all.
I believe this is already fixed in my branch.Issue C: Change shape file to ballend, click ok to close task & following appears in report pane:
09:15:07 in _removebitbody
09:15:07 Traceback (most recent call last):
File "/home/spanner888/Documents/_source/freecad-build/Mod/Path/PathScripts/PathToolBitGui.py", line 147, in accept
self.editor.accept()
File "/home/spanner888/Documents/_source/freecad-build/Mod/Path/PathScripts/PathToolBitEdit.py", line 175, in accept
enabled = self.model.item(i, 0).checkState() == QtCore.Qt.Checked
<class 'AttributeError'>: 'NoneType' object has no attribute 'checkState'
Huh. Well THAT's interesting. I'll look at it.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.
Great stuff! Thanks spanner888
- sliptonic
- Veteran
- Posts: 3460
- Joined: Tue Oct 25, 2011 10:46 pm
- Location: Columbia, Missouri
- Contact:
Re: Toolbits. SERIOUS EFFORT NEEDED
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.Huh. Well THAT's interesting. I'll look at it.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.
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?
Re: Toolbits. SERIOUS EFFORT NEEDED
I think the root of the problem is that we chose to use the ToolBit name as the name for ToolController (blame me for that poor choice) - now that both are in the tree they clash. We should give the ToolController a different label, maybe "TC-<ToolBitName>".
What adds to the confusion is the auto naming of FC adding 3 digits on conflict (or perceived conflict) - when most ppl (including the default library shipped with FC) already have a numeric postfix ...
What adds to the confusion is the auto naming of FC adding 3 digits on conflict (or perceived conflict) - when most ppl (including the default library shipped with FC) already have a numeric postfix ...
-
- Posts: 328
- Joined: Tue May 28, 2019 10:51 am
Re: Toolbits. SERIOUS EFFORT NEEDED
sliptonic wrote: ↑Fri Nov 06, 2020 4:34 pmspanner888 wrote: ↑Fri Nov 06, 2020 9:44 am Issue B: While in above Task form, clicked on property - immdiate FreeCAD crash
Are you running a style sheet? I think this is the crash I referred to earlier. I can reproduce it reliably but only if FreeCAD has no stylesheet set. Others have not been able to reproduce it at all.
stylesheet.png
No, not running a style sheet ATM, but I last week I did try the Glass theme which uses a style sheet along with many other preference changes, but I turned off the theme as my old male eyes can't cope with those colors. So some of those other settings remain in place. I will do some more investigation, including clean ~/.Freecad dir and see if I can find anything.
-
- Posts: 328
- Joined: Tue May 28, 2019 10:51 am
Re: Toolbits. SERIOUS EFFORT NEEDED
I strongly support the use of "TC...". As it stands having a default Tool Controller of "Default Tool" is confusing for many users both because nothing in the tree is called Tool Controller and also the (draft) wiki doco talks about :mlampert wrote: ↑Fri Nov 06, 2020 8:47 pm I think the root of the problem is that we chose to use the ToolBit name as the name for ToolController (blame me for that poor choice) - now that both are in the tree they clash. We should give the ToolController a different label, maybe "TC-<ToolBitName>".
What adds to the confusion is the auto naming of FC adding 3 digits on conflict (or perceived conflict) - when most ppl (including the default library shipped with FC) already have a numeric postfix ...
Code: Select all
Tool Controller
Tool
ToolShapes
Toolbit
Library
In addition there are a "fair few" users who get lost with the predecessor system, especially with ToolControllers and rapids/feeds, so that now there are more elements/layers in the entire Tool/Toolbit hierarchy, it needs to be very clear at all stages what the user is interacting with.
- dubstar-04
- Posts: 698
- Joined: Mon Mar 04, 2013 8:41 pm
- Location: Chester, UK
- Contact:
Re: Toolbits. SERIOUS EFFORT NEEDED
Hi Brad,
I really like the new toolbits and the toolbit dock is very slick. A few things I noticed while testing:
If you close and reopen the tooldock, multiple instances are created.
changing the parameters and pressing OK doesn't seem to save the new value.
Changing the toolbit shape resets the toolbit name:
Thanks,
Dan
I really like the new toolbits and the toolbit dock is very slick. A few things I noticed while testing:
If you close and reopen the tooldock, multiple instances are created.
changing the parameters and pressing OK doesn't seem to save the new value.
Changing the toolbit shape resets the toolbit name:
Thanks,
Dan
- dubstar-04
- Posts: 698
- Joined: Mon Mar 04, 2013 8:41 pm
- Location: Chester, UK
- Contact:
Re: Toolbits. SERIOUS EFFORT NEEDED
Editing newly created tools causes the tool to disappear from the library:
Thanks,
Dan
Thanks,
Dan