Skip to content

Parallel-7/SlicerMeta

Repository files navigation

SlicerMeta

C# API for extracting metadata from G-Code/3MF Files, designed for use with FlashForge (3D printer) software development

.NET C#


Maintenance Mode Notice

This library is no longer under active development. Only critical bug fixes and essential functionality backports will be provided.

For new projects, please use the modern cross-platform rewrite:
slicer-meta - TypeScript + Node.js implementation
Easy to work with and use on any operating system


Features

Feature Description
Slicer Metadata Extraction Retrieve slicer metadata including name, version, date & time, printer name, and more from all gcode files
Filament Information Extract filament info (material type) from all gcode & 3mf files. Additional data available (color, used grams, used meters) depending on slicing software
Embedded Thumbnails Retrieve embedded thumbnails from supported file types (3mf) and supported slicers (gcode)

Supported Slicers

Slicer Support Status
Orca-FlashForge Fully Supported
OrcaSlicer Supported (not fully tested)
FlashPrint Fully Supported (FlashForge's legacy slicer)

Example Usage

var parser = new GCodeParser(); // create a new instance
parser.Parse(filePath); // path to gcode file

Console.WriteLine($"Sliced by: {parser.SlicerInfo.SlicerName}");  // get slicer name
Console.WriteLine($"Filament Type: {parser.FileInfo.FilamentType}"); // get filament type

Made for the FlashForge community

About

C# API for extracting metadata from g-code/3mf files

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages