antwal / pylen

Python Filament Length Generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PYLEN - Python Filament Length Generator:

A utility for extracting filament usage by layer from your 3D printer gcode. The output can be used for making multi-color 3D prints with a single extruder by welding filament segments together. A simple filament welder is linked below.

Outputs

  • Plot of filament length at the end of each layer
  • Filament Layer Report as CSV
  • Cut Length Work Sheet which allows the user to define segments and calculates the filament cut lengths

Filament Welder:

Pylen GUI:

pylen_gui

Example Cut Length Worksheet

Cut Length Worksheet

Example Plot of Filament Usage by Layer:

Layer_Plot

Multi Color Print Samples:

multi_color_print

Binaries:

Release Notes:

Version 1.2.0 May 29,2021

  • Added support for units. Milli-Meter,Meter,Inch
  • moved all file paths to settings object

Version 1.1.1 May 22, 2021

  • Issue1 Header Layer count not equal to layers found in gcode. Resolved in this version by truncating the data based the End of Gcode tag. The layer count is reset and the length data is truncated to the new layer count.

Version 1.1.0 January 30, 2021

  • Added cut length work sheet with segment support
  • Added support for basic settings

Version 1.0.0 January 23, 2021

  • Tested only in Windows 7,Windows 10
  • Tested only using Cura slicer generated gcode
  • Tested using Ender 3 profile
  • Tested only so far with Marlin Flavor gcode

TODO:

  • Test this utility with various gcode flavors
  • Test out on some other operating systems (any volunteers)
  • Create a plugin for cura

Python Version: 3.8.10

Running from source:

Firstime install requirements

pip install -r requirements.txt

run pylen_main.py

python -m pylen_main.py

build your own window exe

python -m pylen_setup.y build

About

Python Filament Length Generator

License:GNU General Public License v3.0


Languages

Language:G-code 99.9%Language:Python 0.1%