ACadSharp 3.3.23
dotnet add package ACadSharp --version 3.3.23
NuGet\Install-Package ACadSharp -Version 3.3.23
<PackageReference Include="ACadSharp" Version="3.3.23" />
<PackageVersion Include="ACadSharp" Version="3.3.23" />
<PackageReference Include="ACadSharp" />
paket add ACadSharp --version 3.3.23
#r "nuget: ACadSharp, 3.3.23"
#:package ACadSharp@3.3.23
#addin nuget:?package=ACadSharp&version=3.3.23
#tool nuget:?package=ACadSharp&version=3.3.23
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.23 | 135 | 1/7/2026 |
| 3.3.13 | 1,399 | 12/15/2025 |
| 3.3.7 | 2,008 | 12/1/2025 |
| 3.3.0 | 971 | 11/21/2025 |
| 3.2.45 | 704 | 11/17/2025 |
| 3.2.22 | 1,279 | 10/17/2025 |
| 3.1.32 | 3,084 | 9/9/2025 |
| 3.1.12 | 4,419 | 8/13/2025 |
| 3.0.8 | 5,791 | 7/1/2025 |
| 3.0.0 | 4,987 | 6/9/2025 |
| 1.1.19 | 1,886 | 5/5/2025 |
| 1.1.6 | 1,973 | 4/6/2025 |
| 1.0.11 | 2,133 | 3/17/2025 |
| 1.0.10 | 528 | 3/14/2025 |
| 1.0.9 | 2,244 | 2/15/2025 |
| 1.0.8 | 902 | 1/27/2025 |
| 1.0.7 | 252 | 1/24/2025 |
| 1.0.6 | 307 | 1/22/2025 |
| 1.0.5 | 949 | 12/30/2024 |
| 1.0.4 | 586 | 12/16/2024 |
| 1.0.3 | 512 | 12/4/2024 |
| 1.0.2 | 5,882 | 10/24/2024 |
| 1.0.1 | 4,857 | 10/2/2024 |
| 1.0.0 | 2,016 | 9/3/2024 |