ACadSharp 3.3.13
dotnet add package ACadSharp --version 3.3.13
NuGet\Install-Package ACadSharp -Version 3.3.13
<PackageReference Include="ACadSharp" Version="3.3.13" />
<PackageVersion Include="ACadSharp" Version="3.3.13" />
<PackageReference Include="ACadSharp" />
paket add ACadSharp --version 3.3.13
#r "nuget: ACadSharp, 3.3.13"
#:package ACadSharp@3.3.13
#addin nuget:?package=ACadSharp&version=3.3.13
#tool nuget:?package=ACadSharp&version=3.3.13
ACadSharp

C# library to read/write cad files like dxf/dwg.
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:
| DxfReader | DxfWriter | DwgReader | DwgWriter | |
|---|---|---|---|---|
| AC1009 | ✔️ | ❌ | ❌ | ❌ |
| AC1012 | ✔️ | ✔️ | ❌ | ❌ |
| AC1014 | ✔️ | ✔️ | ✔️ | ✔️ |
| AC1015 | ✔️ | ✔️ | ✔️ | ✔️ |
| AC1018 | ✔️ | ✔️ | ✔️ | ✔️ |
| AC1021 | ✔️ | ✔️ | ✔️ | ❌ |
| AC1024 | ✔️ | ✔️ | ✔️ | ✔️ |
| AC1027 | ✔️ | ✔️ | ✔️ | ✔️ |
| AC1032 | ✔️ | ✔️ | ✔️ | ✔️ |
Code Example
public static void Main()
{
string path = "sample.dwg";
CadDocument doc = DwgReader.Read(path, onNotification);
}
// Process a notification form the reader
private static void onNotification(object sender, NotificationEventArgs e)
{
Console.WriteLine(e.Message);
}
For more code examples check.
Visit the 🚧 wiki 🚧 for the API specification of the library.
Check the documentation for specific information about some use cases.
Building
Before building run:
git submodule update --init --recursive
This command will clone the submodules necessary to build the project.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. 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 is compatible. 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 is compatible. 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.8
- System.Memory (>= 4.6.3)
-
.NETStandard 2.0
- System.Memory (>= 4.6.3)
- System.Text.Encoding.CodePages (>= 9.0.6)
-
.NETStandard 2.1
- System.Memory (>= 4.6.3)
- System.Text.Encoding.CodePages (>= 9.0.6)
-
net5.0
- No dependencies.
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on ACadSharp:
| Package | Downloads |
|---|---|
|
Nature123abc.CommonLib
Package Description |
|
|
ACadSharp.Pdf
Library to generate Pdf files from dwg and dxf files read by ACadSharp. |
|
|
Evergine.Runtimes.CAD
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.3.13 | 742 | 12/15/2025 |
| 3.3.7 | 1,786 | 12/1/2025 |
| 3.3.0 | 959 | 11/21/2025 |
| 3.2.45 | 677 | 11/17/2025 |
| 3.2.22 | 1,260 | 10/17/2025 |
| 3.1.32 | 2,969 | 9/9/2025 |
| 3.1.12 | 4,394 | 8/13/2025 |
| 3.0.8 | 5,629 | 7/1/2025 |
| 3.0.0 | 4,893 | 6/9/2025 |
| 1.1.19 | 1,845 | 5/5/2025 |
| 1.1.6 | 1,954 | 4/6/2025 |
| 1.0.11 | 2,129 | 3/17/2025 |
| 1.0.10 | 523 | 3/14/2025 |
| 1.0.9 | 2,238 | 2/15/2025 |
| 1.0.8 | 895 | 1/27/2025 |
| 1.0.7 | 250 | 1/24/2025 |
| 1.0.6 | 302 | 1/22/2025 |
| 1.0.5 | 944 | 12/30/2024 |
| 1.0.4 | 580 | 12/16/2024 |
| 1.0.3 | 508 | 12/4/2024 |
| 1.0.2 | 5,803 | 10/24/2024 |
| 1.0.1 | 4,810 | 10/2/2024 |
| 1.0.0 | 1,980 | 9/3/2024 |