ACadSharp 2.4.0-beta

This is a prerelease version of ACadSharp.
dotnet add package ACadSharp --version 2.4.0-beta                
NuGet\Install-Package ACadSharp -Version 2.4.0-beta                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ACadSharp" Version="2.4.0-beta" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ACadSharp --version 2.4.0-beta                
#r "nuget: ACadSharp, 2.4.0-beta"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ACadSharp as a Cake Addin
#addin nuget:?package=ACadSharp&version=2.4.0-beta&prerelease

// Install ACadSharp as a Cake Tool
#tool nuget:?package=ACadSharp&version=2.4.0-beta&prerelease                

ACadSharp Build&Test License nuget

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
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 examples check.

For more information visit the 🚧 wiki 🚧 .

Contributing

Please feel free to fork this repo and send a pull request if you want to contribute to this project.

Notice that this project is in an alpha version, not all the features are implemented and there can be bugs due to this so any PR with a bug fix will not have a priority.

If you want to contribute you can check the Dxf documentation here.

License

This project is licensed under the MIT License - see the LICENSE file for details

Product 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 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
.NET Framework net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ACadSharp:

Package Downloads
ACadSharp.Pdf

Library to generate Pdf files from dwg and dxf files read by ACadSharp.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.4.0-beta 1,766 8/4/2024
2.3.2-beta 1,325 6/11/2024
2.3.1-beta 168 6/3/2024
2.2.0-beta 958 4/11/2024
2.1.1-beta 728 3/12/2024
2.1.0-beta 310 1/31/2024
2.0.3-beta 138 1/27/2024
2.0.2-beta 106 1/26/2024
2.0.1-beta 1,516 12/6/2023
2.0.0-beta 295 11/21/2023
1.5.0-alpha 190 10/4/2023 1.5.0-alpha is deprecated because it has critical bugs.
1.4.4-alpha 2,053 5/24/2023 1.4.4-alpha is deprecated because it has critical bugs.
1.4.3-alpha 261 4/15/2023 1.4.3-alpha is deprecated because it has critical bugs.
1.4.2-alpha 201 3/31/2023 1.4.2-alpha is deprecated because it has critical bugs.
1.4.1-alpha 416 2/4/2023 1.4.1-alpha is deprecated because it has critical bugs.
1.4.0-alpha 552 12/23/2022 1.4.0-alpha is deprecated because it has critical bugs.
1.3.7-alpha 159 12/1/2022 1.3.7-alpha is deprecated because it has critical bugs.
1.3.6-alpha 263 9/30/2022 1.3.6-alpha is deprecated because it has critical bugs.
1.3.5-alpha 180 8/28/2022 1.3.5-alpha is deprecated because it has critical bugs.
1.3.4-alpha 239 7/25/2022 1.3.4-alpha is deprecated because it has critical bugs.
1.3.3-alpha 202 6/25/2022 1.3.3-alpha is deprecated because it has critical bugs.
1.3.2-alpha 178 6/12/2022 1.3.2-alpha is deprecated because it has critical bugs.
1.3.1-alpha 191 5/25/2022 1.3.1-alpha is deprecated because it has critical bugs.
1.3.0-alpha 211 5/7/2022 1.3.0-alpha is deprecated because it has critical bugs.
1.2.3-alpha 219 4/25/2022 1.2.3-alpha is deprecated because it has critical bugs.
1.2.2-alpha 187 4/16/2022 1.2.2-alpha is deprecated because it has critical bugs.
1.2.1-alpha 183 4/10/2022 1.2.1-alpha is deprecated because it has critical bugs.
1.2.0-alpha 190 4/9/2022 1.2.0-alpha is deprecated because it has critical bugs.
1.1.1-alpha 203 3/6/2022 1.1.1-alpha is deprecated because it has critical bugs.
1.0.2 265 10/24/2024
1.0.1 383 10/2/2024
1.0.0 577 9/3/2024
1.0.0-beta 102 11/21/2023