Skip to content

A simple C# class/library for reading Autodesk DXF file format.

Notifications You must be signed in to change notification settings

Fergo/simple-dxf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fergo SimpleDXF

Fergo SimpleDXF is a simple .NET (C#) DXF library for reading Autodesk DXF format. It's is not coded to be a complete and full-featured library for reading the entire DXF format, but to be a fast solution for those who just need the basic 2D geometry information (no Z axis). For example, it doesn't read tables (with the exception of the "layer" element), classes or header and also doesn't support linetypes, lineweight, dimension styles, text styles etc. It's mainly focused at the DXF entities. 

Below is table containing the entities supported at the moment :

Entity Properties
LAYER Name, Color
LINE Layer, Start Position, End Position
CIRCLE Layer, Center Position, Radius
ARC Layer, Center Position, Radius, Start Angle, End Angle
POINT Layer, Position
TEXT Layer, Position, Text
POLYLINE Layer, Vertex List, Closed Flag
LWPOLYLINE Layer, Vertex List, Closed Flag
VERTEX Layer, Position, Bulge

This library also has methods to generate polygonal vertexes, at a given precision, for curved shapes such as Circles, Arcs and Polylines. It currently doesn't support blocks, but I plan to add support for it in the future. At the moment, is best to work with DXF not containing any blocks (explode the entire drawing).

About

A simple C# class/library for reading Autodesk DXF file format.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages