All Projects → haplokuon → Netdxf

haplokuon / Netdxf

Licence: lgpl-2.1
.net dxf Reader-Writer

Labels

Projects that are alternatives of or similar to Netdxf

Macad3D
Free and OpenSource 3D Construction Tool
Stars: ✭ 113 (-77.13%)
Mutual labels:  cad
Grbl Plotter
A GCode sender (not only for plotters) for up to two GRBL controller. SVG, DXF, HPGL import. 6 axis DRO.
Stars: ✭ 286 (-42.11%)
Mutual labels:  cad
Dotscad
Reduce the burden of mathematics when playing OpenSCAD
Stars: ✭ 344 (-30.36%)
Mutual labels:  cad
scad-js
A Javascript frontend for solid modeling that compiles OpenSCAD.
Stars: ✭ 44 (-91.09%)
Mutual labels:  cad
tatum
Tatum: A Fast, Flexible Static Timing Analysis (STA) Engine for Digital Circuits
Stars: ✭ 35 (-92.91%)
Mutual labels:  cad
Drawkit
Vector and illustration framework for macOS
Stars: ✭ 299 (-39.47%)
Mutual labels:  cad
Devices.jl
Julia package for CAD of superconducting devices operating at microwave frequencies.
Stars: ✭ 16 (-96.76%)
Mutual labels:  cad
Openastrotracker
3D printed DSLR tracking mount
Stars: ✭ 434 (-12.15%)
Mutual labels:  cad
Pythonocc-nodes-for-Ryven
Pythonocc nodes for Ryven
Stars: ✭ 14 (-97.17%)
Mutual labels:  cad
Xeokit Sdk
Open source JavaScript SDK for viewing high-detail, full-precision 3D BIM and AEC models in the Web browser.
Stars: ✭ 316 (-36.03%)
Mutual labels:  cad
truck
Truck is a Rust CAD Kernel.
Stars: ✭ 155 (-68.62%)
Mutual labels:  cad
pymadcad
Simple yet powerful CAD (Computer Aided Design) library, written with Python.
Stars: ✭ 63 (-87.25%)
Mutual labels:  cad
Kicost
Build cost spreadsheet for a KiCad project.
Stars: ✭ 305 (-38.26%)
Mutual labels:  cad
OCCT
Open CASCADE Technology (OCCT) is an open-source software development platform for 3D CAD, CAM, CAE. This is a clone of the official repository located on https://dev.opencascade.org/. Please use official development portal for registering issues and providing patches.
Stars: ✭ 241 (-51.21%)
Mutual labels:  cad
Cascadestudio
A Full Live-Scripted CAD Kernel in the Browser
Stars: ✭ 344 (-30.36%)
Mutual labels:  cad
act
ACT hardware description language and core tools.
Stars: ✭ 53 (-89.27%)
Mutual labels:  cad
Nurbs Python
Object-oriented pure Python B-Spline and NURBS library
Stars: ✭ 295 (-40.28%)
Mutual labels:  cad
Vtr Verilog To Routing
Verilog to Routing -- Open Source CAD Flow for FPGA Research
Stars: ✭ 466 (-5.67%)
Mutual labels:  cad
Mesh mesh align plus
Precisely align, move, and measure+match objects and mesh parts in your 3D scenes.
Stars: ✭ 350 (-29.15%)
Mutual labels:  cad
Libredwg
Official mirror of libredwg. With CI hooks and nightly releases. PR's ok
Stars: ✭ 315 (-36.23%)
Mutual labels:  cad

netDxf

netDxf 2.4.1 Copyright(C) 2009-2020 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";

	// 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.AddEntity(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);
}

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

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].