netDXF.Standard 2.1.1

imbACE.Core .NET Standard

Daniel Carvajal's netDxf .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. It provides high-level approach to the DXF Document.
---
This is a multi-platform fork of netDxf library from Daniel Carvajal. It allows use of the library on .NET 4.5 and .NET Standard 2.0 with purpose to target Xamarin.Forms and mobile devices.

Install-Package netDXF.Standard -Version 2.1.1
dotnet add package netDXF.Standard --version 2.1.1
paket add netDXF.Standard --version 2.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Goals of the fork

  • To provide multiplatform support for NuGet package (.NET 4.5, .NET Standard 2.0)
  • To improve XML comments
  • To provide DXF rendering library using SkiaSharp and imbSCI.Graph's SVG capability.
  • To create demo Xamarin.Forms 3.0 Windows WPF, Android and iOS demo DXF viewer application.

Current documentation:
http://doc.veles.rs/

netDxf

netDxf 2.1.0 Copyright(C) 2009-2018 Daniel Carvajal, Licensed under LGPL

Description

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";

	// by default it will create an AutoCad2000 DXF version
	DxfDocument dxf = new DxfDocument();
	// an entity
	Line entity = new Line(new Vector2(5, 5), new Vector2(10, 5));
	// add your entities here
	dxf.AddEntity(entity);
	// save to file
	dxf.Save(file);

	bool isBinary;
	// this check is optional but recommended before loading a DXF file
	DxfVersion dxfVersion = DxfDocument.CheckDxfFileVersion(file, out isBinary);
	// netDxf is only compatible with AutoCad2000 and higher DXF version
	if (dxfVersion < DxfVersion.AutoCad2000) return;
	// load file
	DxfDocument loaded = DxfDocument.Load(file);
}

Samples and Demos

Are contained in the source code.
Well, at the moment they are just tests for the work in progress.

Dependencies and distribution

  • .NET Framework 4.5. netDxf only references the NET libraries System.dll and System.Drawing.dll

Compiling

To compile the source code you will need Visual Studio 2015.

Development Status

Stable. See changelog.txt or the wiki page for information on the latest changes.

Supported entities

  • 3dFace
  • Arc
  • Circle
  • Dimensions (aligned, linear, radial, diametric, 3 point angular, 2 line angular, and ordinate)
  • Ellipse
  • Hatch (including Gradient patterns)
  • Image
  • Insert (block references and attributes)
  • Leader
  • Line
  • LwPolyline (light weight polyline)
  • Mesh
  • MLine
  • MText
  • Point
  • PolyfaceMesh
  • Polyline
  • Ray
  • Shape
  • Solid
  • Spline
  • Text
  • Tolerance
  • Trace
  • Underlay (DGN, DWF, and PDF underlays)
  • Wipeout
  • XLine (aka construction line)

All entities can be grouped and may contain extended data information.
AutoCad Table entities will be imported as Inserts (block references).
Both simple and complex line types are supported.
The libray will never be able to read some entities like Regions and 3dSolids, since they depend on undocumented proprietary data.

Goals of the fork

  • To provide multiplatform support for NuGet package (.NET 4.5, .NET Standard 2.0)
  • To improve XML comments
  • To provide DXF rendering library using SkiaSharp and imbSCI.Graph's SVG capability.
  • To create demo Xamarin.Forms 3.0 Windows WPF, Android and iOS demo DXF viewer application.

Current documentation:
http://doc.veles.rs/

netDxf

netDxf 2.1.0 Copyright(C) 2009-2018 Daniel Carvajal, Licensed under LGPL

Description

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";

	// by default it will create an AutoCad2000 DXF version
	DxfDocument dxf = new DxfDocument();
	// an entity
	Line entity = new Line(new Vector2(5, 5), new Vector2(10, 5));
	// add your entities here
	dxf.AddEntity(entity);
	// save to file
	dxf.Save(file);

	bool isBinary;
	// this check is optional but recommended before loading a DXF file
	DxfVersion dxfVersion = DxfDocument.CheckDxfFileVersion(file, out isBinary);
	// netDxf is only compatible with AutoCad2000 and higher DXF version
	if (dxfVersion < DxfVersion.AutoCad2000) return;
	// load file
	DxfDocument loaded = DxfDocument.Load(file);
}

Samples and Demos

Are contained in the source code.
Well, at the moment they are just tests for the work in progress.

Dependencies and distribution

  • .NET Framework 4.5. netDxf only references the NET libraries System.dll and System.Drawing.dll

Compiling

To compile the source code you will need Visual Studio 2015.

Development Status

Stable. See changelog.txt or the wiki page for information on the latest changes.

Supported entities

  • 3dFace
  • Arc
  • Circle
  • Dimensions (aligned, linear, radial, diametric, 3 point angular, 2 line angular, and ordinate)
  • Ellipse
  • Hatch (including Gradient patterns)
  • Image
  • Insert (block references and attributes)
  • Leader
  • Line
  • LwPolyline (light weight polyline)
  • Mesh
  • MLine
  • MText
  • Point
  • PolyfaceMesh
  • Polyline
  • Ray
  • Shape
  • Solid
  • Spline
  • Text
  • Tolerance
  • Trace
  • Underlay (DGN, DWF, and PDF underlays)
  • Wipeout
  • XLine (aka construction line)

All entities can be grouped and may contain extended data information.
AutoCad Table entities will be imported as Inserts (block references).
Both simple and complex line types are supported.
The libray will never be able to read some entities like Regions and 3dSolids, since they depend on undocumented proprietary data.

Release Notes

This is multi-target Nuget package fork (.NET 4.5 and .NET Standard 2.0), created by Goran Grubić (http://blog.veles.rs/)

Current documentation:
http://doc.veles.rs/

Original project site:
https://github.com/haplokuon/netDxf/wiki
https://github.com/haplokuon/netDxf

Version History

Version Downloads Last updated
2.1.1 235 6/8/2018