Work Coordinate Systems or WCS
Posted: Fri Jun 17, 2022 2:53 am
Hello everyone.
FreeCAD's built in list of job based select-able WCS's [G53,G54,G55] etc seems to be hard coded somewhere other than the python files. My Anilam control uses G53Ox for the WCS. That is G53 the letter O not Zero and x being 1 to 99. With FreeCAD and Python there is always a way around a problem if you are able and willing to dig deep enough.
My current solution is to select the job then edit the WCS in the Property view data tab The big picture. I then deal with it in the post.
Also I would have liked to insert the big pic here if any one knows if this can be done please comment.
This solution was fine until I discovered the Path Sanity tool. Path Sanity does not load the final picture showing where X0Y0Z0 is set if the WCS is not in the job based select-able WCS list.
I have other options for now.
1. I could use G53 from the list and put the other WCS info in a comment or some other property that is currently blank and extract it in the post.
2. I can use the experimental fixture Object the small icon picture attached. I found the python file for the fixture object and edited this to suit my needs for a test. I can change the list to ['O1,'O2',etc] but can only select one WCS per fixture object. It may be possible to change some properties or listbox definitions to select multiple items or I may learn how to display the list another way in a different type of dialog. As per the big picture I can set more than one WCS with the system I am using now.
Getting to the point . Does anyone know where the Job based WCS list , ie['G53','G54'etc] is loaded from. My preferred option would be to load this list from a user defined file for each machine. As I think there would be other machines that don't use any of the job based WCS .
I just can't find where this list is loaded from currently. Maybe I am just too BLONDE! . I still learning python so sorry if I got some terms wrong.
OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 2022.430.26244 +4758 (Git)
Build type: Release
Branch: LinkDaily
Hash: b024b876480a533018fdc702145e9e38f8c54ba6
Python version: 3.9.12
Qt version: 5.12.9
Coin version: 4.0.1
OCC version: 7.5.3
Locale: English/Australia (en_AU)
FreeCAD's built in list of job based select-able WCS's [G53,G54,G55] etc seems to be hard coded somewhere other than the python files. My Anilam control uses G53Ox for the WCS. That is G53 the letter O not Zero and x being 1 to 99. With FreeCAD and Python there is always a way around a problem if you are able and willing to dig deep enough.
My current solution is to select the job then edit the WCS in the Property view data tab The big picture. I then deal with it in the post.
Also I would have liked to insert the big pic here if any one knows if this can be done please comment.
This solution was fine until I discovered the Path Sanity tool. Path Sanity does not load the final picture showing where X0Y0Z0 is set if the WCS is not in the job based select-able WCS list.
I have other options for now.
1. I could use G53 from the list and put the other WCS info in a comment or some other property that is currently blank and extract it in the post.
2. I can use the experimental fixture Object the small icon picture attached. I found the python file for the fixture object and edited this to suit my needs for a test. I can change the list to ['O1,'O2',etc] but can only select one WCS per fixture object. It may be possible to change some properties or listbox definitions to select multiple items or I may learn how to display the list another way in a different type of dialog. As per the big picture I can set more than one WCS with the system I am using now.
Getting to the point . Does anyone know where the Job based WCS list , ie['G53','G54'etc] is loaded from. My preferred option would be to load this list from a user defined file for each machine. As I think there would be other machines that don't use any of the job based WCS .
I just can't find where this list is loaded from currently. Maybe I am just too BLONDE! . I still learning python so sorry if I got some terms wrong.
OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 2022.430.26244 +4758 (Git)
Build type: Release
Branch: LinkDaily
Hash: b024b876480a533018fdc702145e9e38f8c54ba6
Python version: 3.9.12
Qt version: 5.12.9
Coin version: 4.0.1
OCC version: 7.5.3
Locale: English/Australia (en_AU)