SliceyDicey 0.2.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package SliceyDicey --version 0.2.0
NuGet\Install-Package SliceyDicey -Version 0.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SliceyDicey" Version="0.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SliceyDicey --version 0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SliceyDicey, 0.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SliceyDicey as a Cake Addin #addin nuget:?package=SliceyDicey&version=0.2.0 // Install SliceyDicey as a Cake Tool #tool nuget:?package=SliceyDicey&version=0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SliceyDicey
A simple tool for parsing both ASCII-based and binary GCode files
Only reading for now, I have no need for writing my own files.
Reading ASCII-based GCode
// Arrange
string name = "some-random.gcode";
Stream input = new MemoryStream();
// Act
var file = await SliceyDicey.Lib.Gcode.GcodeParser.Parse(name, input, cancellationToken);
// Play around
var thumbnails = file.Thumbnails.ToList();
var filamentUsed = file.Comments
.FirstOrDefault(x => x.Comment.StartsWith("filament used [mm] ="));
var linearMoves = file.Commands
.Where(x => x.Command.StartsWith("G0 ") || x.Command.StartsWith("G1 "));
Reading binary GCode
// Arrange
Microsoft.Extensions.Logging.ILogger logger = null;
string name = "some-random.gcode";
Stream input = new MemoryStream();
// Act
var parser = new SliceyDicey.Lib.BinaryGcode.Parser(logger);
var file = await parser.Parse(name, input, cancellationToken);
// Play around
var thumbnails = file.Thumbnails.ToList();
var allInstructions = file.Instructions.ToList();
var comments = file.Comments.ToList();
var commands = file.Commands.ToList();
if (file.PrinterMetadata.TryGetValue("filament used [mm]", out var filamentUsed))
{
logger.LogInformation("Using {0:.2f} mm of filament", decimal.Parse(filamentUsed));
}
else
{
logger.LogWarning("File contains no filament usage information");
}
var linearMoves = file.Commands
.Where(x => x.Command.StartsWith("G0 ") || x.Command.StartsWith("G1 "));
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
- QOI.Core (>= 2.0.0)
- SixLabors.ImageSharp (>= 3.0.2)
- SliceyDicey.Vendor.Heatshrink (>= 0.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.