Skip to content

Repository files navigation

ACadSharp

Build&TestLicensenugetdownloadsCoverage Status

C# library to read/write cad files like dxf/dwg.

Check the documentation for specific information about the library.

Features

ACadSharp allows to read or create CAD files using .Net and also extract or modify existing content in the files, the main features may be listed as:

  • Read/Write Dxf binary files
  • Read/Write Dxf ASCII files
  • Read Dwg files
  • Write Dwg files
  • Extract/Modify the geometric information from the different entities in the model
  • Control over the table elements like Blocks, Layers and Styles, allows you to read, create or modify the different tables

For pdf export check 🚧 ACadSharp.Pdf 🚧.

Compatible Dwg/Dxf versions:

DxfReaderDxfWriterDwgReaderDwgWriter
AC1009✔️
AC1012✔️✔️
AC1014✔️✔️✔️✔️
AC1015✔️✔️✔️✔️
AC1018✔️✔️✔️✔️
AC1021✔️✔️✔️
AC1024✔️✔️✔️✔️
AC1027✔️✔️✔️✔️
AC1032✔️✔️✔️✔️

Code Example

publicstaticvoidMain(){stringpath="sample.dwg";CadDocumentdoc=DwgReader.Read(path,onNotification);}// Process a notification from the readerprivatestaticvoidonNotification(objectsender,NotificationEventArgse){Console.WriteLine(e.Message);}

For more code examples check.

Building

Before building run:

git submodule update --init --recursive

This command will clone the submodules necessary to build the project.

About

C# library to read/write cad files like dxf/dwg.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages