GithubHelp home page GithubHelp logo

ehtick / acadsharp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from domcr/acadsharp

0.0 0.0 0.0 7.68 MB

C# library to read/write cad files like dxf/dwg.

License: MIT License

C# 99.99% Batchfile 0.01%

acadsharp's Introduction

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 ✔️ ✔️ ✔️ ✔️

Current development

Dwg Writer

  • AC1014
    • Produces a valid file but some entities are missing in the model.
  • AC1015
    • This version depens on the implementation of VP_ENT_HDR to work properly with the different Viewports
  • AC1018 - MOST STABLE - RECOMENDED
  • AC1021 - NOT IMPLEMENTED
    • This is a particular and isolated DWG version, it uses a different compression system and file distribution, due this difficulties, this version will not be implemented any time soon.
  • AC1024 - STABLE
  • AC1027 - NOT IMPLEMENTED
  • AC1032 - STABLE

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.

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

acadsharp's People

Contributors

djgosnell avatar domcr avatar hexer611 avatar michal-kindl avatar mme1950 avatar nka1994 avatar nuanyangl avatar rurban avatar silverwolf2k20 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.