Python Forum

Full Version: Python code for gcode reader and representation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am new to Python and I was wondering if someone can give me a few tips how to program in Python a gcode reader and afterwards the respective representation.

I am completly on the start of learning how to program. My goal is to read the gcode, pickup the XYZ coordinates of each line and represent them in a diagram and connect these points with lines, so that it basically generates a tool path.

Any help would be appreciated :)

Best regards,

Rui
Parsing foreign Languages like GCode is not an easy task for beginners.
You can look at already existing code: https://github.com/fragmuffin/pygcode