Table of Contents

Getting Started with DxfToCSharp

DxfToCSharp is a .NET library for converting DXF files to C# code.

Installation

Install the package via NuGet:

dotnet add package DxfToCSharp

Basic Usage

using DxfToCSharp.Core;

// Create a code generator with options
var options = new DxfCodeGenerationOptions
{
    GenerateLineEntities = true,
    GenerateArcEntities = true,
    GenerateCircleEntities = true
};

var generator = new DxfCodeGenerator(options);

// Generate C# code from DXF file
string dxfFilePath = "sample.dxf";
string generatedCode = generator.GenerateCode(dxfFilePath);

Console.WriteLine(generatedCode);

Next Steps