sliptonic wrote: ↑Fri Jul 09, 2021 2:12 pm
making the FS calculator as much of a stand-alone tool as reasonable. Don't couple it too tightly to the other objects in the system.
Sounds reasonable.
Below is some thinking out loud on details of how this might look to user, and leading to how to implement.
For each TC user wants to set/calc Feeds & speeds
- Double click on desired TC to open ToolController Edit Task Pane.
- click on FS calc button (passes Tool dia, flutes, Tool Type (Endmill/Drill/Lathe), maybe in future material to FS calc)
- In FS calc set material etc, each change auto updating displayed outputs (ie User does not need to press Calc button)
- Once user accepts outputs, click button to close FS calc & return outputs back to task pane
- Then what? Just auto update TC, with ability to undo, or just manually edit, or give chance to review changes? Not clear how to manage this step to me yet.
Queries.
What happens if user forgets to close the FS calc?
What if they open more than one?
What if they open one, then select a different TC, or Job, or something completely different?
I am not saying can't use your suggested workflow, just trying to understand how we can make it very robust and 'smooth & easy.
One way forward might still be to "embed" the FS calc in say lower section of ToolController Edit Task Pane. This would eliminate many of my queries above. But would need to be coded so still standalone code and not tightly coupled, ie not passing/returning each TC. I have no idea if tis is possible, but hope to trigger more ideas.
On top of all that as mentioned in discussion last December, or even earlier, it would also be great for the FS calc to be completely independent of FC, so other communities could use it. This might be possible, but with my limited experience, I can't image an easy single code base solution .