CS-Lab Support Forum for CNC Community
Help to run this brand-new forum and stay with us.
Ask your questions, we are here to help!
simCNC customized file-open prompt
Quote from andre on 5 June 2023, 12:26Hi everyone,
just wanted to share some of my latest ideas/prototypes with the community.
The standard file-open prompt was hard to navigate on touch screens and I wanted to see some additional information even before opening the file.
So I created a small tool using tk with tree:
- On expanding a tree node (=file), the Gcode file is parsed for used WCS(s), tool(s) and the Post Processor comment line
- Upon selection, d.openGCodeFile( string filePath ) gets called to load the GCode
So far I did not try with really large 3d files, but here I could also adjust the PP to output the information as comments in the header rows.
If you are interested I would be happy to share my code, once the tool is complete.
Best regards,
André
Hi everyone,
just wanted to share some of my latest ideas/prototypes with the community.
The standard file-open prompt was hard to navigate on touch screens and I wanted to see some additional information even before opening the file.
So I created a small tool using tk with tree:
- On expanding a tree node (=file), the Gcode file is parsed for used WCS(s), tool(s) and the Post Processor comment line
- Upon selection, d.openGCodeFile( string filePath ) gets called to load the GCode
So far I did not try with really large 3d files, but here I could also adjust the PP to output the information as comments in the header rows.
If you are interested I would be happy to share my code, once the tool is complete.
Best regards,
André
Quote from CS-Lab Support on 7 June 2023, 07:34Hi,
A very interesting idea.
If you want, we can put your project (when you finish it) in this thread.
I'm sure many users will like it.Best regards,
Wojtek
Hi,
A very interesting idea.
If you want, we can put your project (when you finish it) in this thread.
I'm sure many users will like it.
Best regards,
Wojtek
Quote from andre on 2 July 2023, 18:48Did not really find time to work on the file open prompt until today...
But here is the first beta of the code and an updated screenshot.https://github.com/AndreUeberbach/simcnc/tree/main/File%20Manager
Restrictions
- Currently you can only define one fixed folder in the code
- Information like comments, tools, wcs requires a modification in the post processor. Will be posting some information on my knowledge base shortly on which changes I did to the standard Fanuc PP in Fusion360. I found this to be more efficient, especially for larger files. Nevertheless, a function to fetch tools from the file itself is still existing in the code in case you need it.
Installation
- Copy script and folder "icon" to profile/<yourprofile>/
- Create a new tool button in your GUI and trigger the fileManager.py script
- Done
Cheers,
André
Did not really find time to work on the file open prompt until today...
But here is the first beta of the code and an updated screenshot.
https://github.com/AndreUeberbach/simcnc/tree/main/File%20Manager
Restrictions
- Currently you can only define one fixed folder in the code
- Information like comments, tools, wcs requires a modification in the post processor. Will be posting some information on my knowledge base shortly on which changes I did to the standard Fanuc PP in Fusion360. I found this to be more efficient, especially for larger files. Nevertheless, a function to fetch tools from the file itself is still existing in the code in case you need it.
Installation
- Copy script and folder "icon" to profile/<yourprofile>/
- Create a new tool button in your GUI and trigger the fileManager.py script
- Done
Cheers,
André
Quote from CS-Lab Support on 3 July 2023, 14:14Super!
One question, do you ever sleep? 😉Regards,
Wojtek
Super!
One question, do you ever sleep? 😉
Regards,
Wojtek
Quote from andre on 3 July 2023, 14:22I was about to ask the same... A lot of the topics I placed in the forum are already implemented in the simCNC Beta. 😉
Glad you like it! It will take some more fine tuning, but overall I am happy with the functionality already.
Regards,
André
I was about to ask the same... A lot of the topics I placed in the forum are already implemented in the simCNC Beta. 😉
Glad you like it! It will take some more fine tuning, but overall I am happy with the functionality already.
Regards,
André