Modules:
mygcodehelpers.py
Contains helper functions for creating G-code commands in the CAIO Optimized Specimen script.
These functions return strings with properly formatted G code instructions.
pathcreator.py
Contains functions for converting coordinates stored in .txt files into usable coordinates for G code creation.
Additionally, it can modify paths by applying operations such as mirroring and shortening to help generate coherent printpaths.
CAIO_optimized_specimen.py
Main script uses gcodehelpers.py and pathcreator.py to:
- Read exported path coordinates from ANSYS (HS_line files)
- Generate G code layer by layer, repeating paths as required
- Adapt the extrusion value E for each command
- Combine start sequences, optimized paths, contour G code and stop sequenze into a coherent skript
Usage Notes:
Printer Compatibility
The start and stop sequences must be adapted to match your specific printer.
Using incorrect values may damage your machine.
Required Input Files
ANSYS Export: Path coordinates stored in HS_line*.txt files.
Contour G-code: Must be generated separately using a slicer and saved as contour.txt.
Authors and acknowledgment:
This project has been written by Amelie Schiele.
License:
This project is licensed by Creative Commons Attribution 4.0.
Prerequirements:
Python 3.10.0
Install requirements:
pip install numpy pandas