https://github.com/chiefenne/gcode_viewer_2d
https://github.com/chiefenne/gcode_viewer_2d
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/chiefenne/gcode_viewer_2d
- Owner: chiefenne
- Created: 2024-08-04T18:57:02.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-05T20:56:47.000Z (almost 2 years ago)
- Last Synced: 2025-02-14T05:41:20.532Z (over 1 year ago)
- Language: Python
- Size: 396 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# G-code Viewer 2D
A Python based G-code viewer for 2D contours. It only plots data from the x,y-plane.
## Features
- Plot 2D contours of G-code
- Qt (Pyside6) based GUI
- Plot a raster
- Plot outline and dimensions
## Requirements
- Python 3 (any version which works with Pyside6)
- Pyside6 (Qt for Python)
## GUI

## Usage
Start the program GUI. Later use the menu ```File/Open``` to load and plot a G-code.
```sh
python GCODE_Viewer_2d.py
```
The command below directly opens and plots the given file immediately.
```sh
python GCODE_Viewer_2d.py any_gcode_file.nc
```
When clicking the right mouse button a context menu opens, and raster as well as outline can be toggled on/off. The default raster size is 10mm and it can be redefined through the context menu.
### Command Line Arguments
None or a G-code file (see above).