- Posts: 648
- Thank you received: 267
Display setup sheet
- anfänger
- Topic Author
- Offline
- Platinum Member
-
I use fusion for cad and cam and thought it would be useful to be able to show the setup sheets in probe basic. So I added a setup tab with a Webview widget.
I always rename the setup sheets like the nc-files (and hope fusion will do this automatically one day). now I only need to find a way to load the sheet together with the nc file.
For this I would need to read path and name, change the ending and parse this to the webview widget.
Or simply add a filechooser to the setup tab
Can anyone help me to make the changes?
I have never worked with python or qt.
Thanks Patrick
Please Log in or Create an account to join the conversation.
- persei8
- Offline
- Platinum Member
-
- Posts: 399
- Thank you received: 133
Please Log in or Create an account to join the conversation.
- KCJ
- Offline
- Moderator
-
- Posts: 328
- Thank you received: 267
I'll make an example showing how this type of addition can be done without having to modify any of the ProbeBasic code.
Cheers,
Kurt
Please Log in or Create an account to join the conversation.
- KCJ
- Offline
- Moderator
-
- Posts: 328
- Thank you received: 267
- Place the attached custom_probebasic.py file in your config directory.
- Add a custom_config.yml file to the config directory with the following content:
Code:# use custom probe basic main window class windows: mainwindow: provider: custom_probebasic:CustomProbeBasic
- Specify the YAML file in the INI:
Code:[DISPLAY] DISPLAY = probe_basic CONFIG_FILE = custom_config.yml ...
Run LinuxCNC as usual. A new tab will be inserted in the main tab widget containing a QWebView for displaying the setup sheet. Each time a GCODE file is loaded it will look for an HTML file with the same name as the gcode file and display it in the webview.
Cheers,
Kurt
Please Log in or Create an account to join the conversation.
- Lcvette
- Offline
- Moderator
-
- Posts: 1683
- Thank you received: 784
KCJ wrote: Here is a quick and dirty example of how to add the setup sheet tab to ProbeBasic, without having to modify any if the PB source files.
- Place the attached custom_probebasic.py file in your config directory.
- Add a custom_config.yml file to the config directory with the following content:
Code:# use custom probe basic main window class windows: mainwindow: provider: custom_probebasic:CustomProbeBasic- Specify the YAML file in the INI:
Code:[DISPLAY] DISPLAY = probe_basic CONFIG_FILE = custom_config.yml ...
Run LinuxCNC as usual. A new tab will be inserted in the main tab widget containing a QWebView for displaying the setup sheet. Each time a GCODE file is loaded it will look for an HTML file with the same name as the gcode file and display it in the webview.
Cheers,
Kurt
I actually made a set up sheet window in the file chooser tab already just for this but couldn't figure out the webview widget, hazzy can you set it up there? It's already formatted in probe basic for this purpose!
Chris
Please Log in or Create an account to join the conversation.
- KCJ
- Offline
- Moderator
-
- Posts: 328
- Thank you received: 267
Please Log in or Create an account to join the conversation.
- anfänger
- Topic Author
- Offline
- Platinum Member
-
- Posts: 648
- Thank you received: 267
Cheers Patrick
Please Log in or Create an account to join the conversation.
- anfänger
- Topic Author
- Offline
- Platinum Member
-
- Posts: 648
- Thank you received: 267
I thought also adding the setup sheet to my lathe using probe_basic_lathe.
With the mill it is still working on the lathe i get following error:
Please Log in or Create an account to join the conversation.
- Lcvette
- Offline
- Moderator
-
- Posts: 1683
- Thank you received: 784
Please Log in or Create an account to join the conversation.
- anfänger
- Topic Author
- Offline
- Platinum Member
-
- Posts: 648
- Thank you received: 267
Please Log in or Create an account to join the conversation.