![]() |
VOOZH | about |
dotnet add package netDxf --version 2023.11.10
NuGet\Install-Package netDxf -Version 2023.11.10
<PackageReference Include="netDxf" Version="2023.11.10" />
<PackageVersion Include="netDxf" Version="2023.11.10" />Directory.Packages.props
<PackageReference Include="netDxf" />Project file
paket add netDxf --version 2023.11.10
#r "nuget: netDxf, 2023.11.10"
#:package netDxf@2023.11.10
#addin nuget:?package=netDxf&version=2023.11.10Install as a Cake Addin
#tool nuget:?package=netDxf&version=2023.11.10Install as a Cake Tool
netDxf Copyright(C) 2009-2022 Daniel Carvajal, licensed under MIT License
netDxf is a .net library programmed in C# to read and write AutoCAD DXF files. It supports AutoCad2000, AutoCad2004, AutoCad2007, AutoCad2010, AutoCad2013, and AutoCad2018 DXF database versions, in both text and binary format.
The library is easy to use and I tried to keep the procedures as straightforward as possible, for example you will not need to fill up the table section with layers, styles or line type definitions. The DxfDocument will take care of that every time a new item is added.
If you need more information, you can find the official DXF documentation here.
Code example:
public static void Main()
{
// your DXF file name
string file = "sample.dxf";
// create a new document, by default it will create an AutoCad2000 DXF version
DxfDocument doc = new DxfDocument();
// an entity
Line entity = new Line(new Vector2(5, 5), new Vector2(10, 5));
// add your entities here
doc.Entities.Add(entity);
// save to file
doc.Save(file);
// this check is optional but recommended before loading a DXF file
DxfVersion dxfVersion = DxfDocument.CheckDxfFileVersion(file);
// netDxf is only compatible with AutoCad2000 and higher DXF versions
if (dxfVersion < DxfVersion.AutoCad2000) return;
// load file
DxfDocument loaded = DxfDocument.Load(file);
}
Are contained in the source code. Well, at the moment they are just tests for the work in progress.
Multitarget project, predefined frameworks for Net Framework 4.5, Net Standard 2.1, Net Core 3.1, NET 5.0, and NET 6.0. Additionally the Net Standard 2.1 build requires a reference to the external library "System.Text.Encoding.CodePages".
Visual Studio 2022. The solution file is still usable by Visual Studio 2019 but it does not support NET 6.0.
See changelog.txt or the wiki page for information on the latest changes.
All entities can be grouped. All DXF objects may contain extended data information. AutoCad Table entities will be imported as Inserts (block references). Both simple and complex line types are supported. The library will never be able to read some entities like REGIONs, SURFACEs, and 3DSOLIDs, since they depend on undocumented proprietary data.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Framework | net48 net48 is compatible. net481 net481 was computed. |
Showing the top 4 NuGet packages that depend on netDxf:
| Package | Downloads |
|---|---|
|
MicroPrint.Cam.Engine
MicroPrint图形解析引擎; |
|
|
TLCS.Graphic
Package Description |
|
|
AutoStudio.CNC
AutoStudio框架的CNC组件,提供路径规划编辑功能,适用于激光打标切割焊接、多轴平台加工等场景,支持G代码。 |
|
|
E3.Dxf
DXF 文件解析 |
Showing the top 4 popular GitHub repositories that depend on netDxf:
| Repository | Stars |
|---|---|
|
ThisIsNotRocketScience/GerberTools
Tools to load/edit/create/panelizer sets of gerber files
|
|
|
FriendsOfCADability/CADability
CADability is a pure .net class library for modeling and analyzing 3d data, both with your code and interactively. It comes with an optional Windows.Forms user interface, which can be adopted to other environments. It does not refer to other 3d modeling libraries. For data exchange you can use STEP, STL or DXF files.
|
|
|
dsuarezv/GearSolver
A cycloid gear graphical calculator to design cycloidal drives.
|
|
|
fel88/DeepNestPort
DeepNest C# Port
|
netDxf is a .net library programmed in C# to read and write AutoCAD DXF files. It supports AutoCad2000, AutoCad2004, AutoCad2007, AutoCad2010, AutoCad2013, and AutoCad2018 DXF database versions, in both text and binary format.