by Dan Mauch » Tue Mar 23, 2021 7:35 pm
Thanks! That was exactly what I needed. It converts cartesian G code to polar g code. I test ran it yesterday and it works great. Since there wasn't a narrative with the link you provided I thought I would go ahead and post the application in formation.
"You must have python 3 installed. You also need the ?pathlib? library. Type ?pip install pathlib? in your python scripts folder to get that. The easiest way to run it, is to put the file you want to convert in the folder with the python script. To convert a file called test.gcode you type ?python PolarPreProcessor.py test.gcode. It will print done when complete and you will now have a new gcode file called test_polar.gcode. If python is not in your path, you will need to put the location info in front, like c:python3python PolarPreProcessor.py test.gcode."
Dan Mauch
Thanks! That was exactly what I needed. It converts cartesian G code to polar g code. I test ran it yesterday and it works great. Since there wasn't a narrative with the link you provided I thought I would go ahead and post the application in formation.
"You must have python 3 installed. You also need the ?pathlib? library. Type ?pip install pathlib? in your python scripts folder to get that. The easiest way to run it, is to put the file you want to convert in the folder with the python script. To convert a file called test.gcode you type ?python PolarPreProcessor.py test.gcode. It will print done when complete and you will now have a new gcode file called test_polar.gcode. If python is not in your path, you will need to put the location info in front, like c:python3python PolarPreProcessor.py test.gcode."
Dan Mauch