Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create Autocad file with C#

Tags:

c#

autocad

I am expoloring currently an AutoCAD .NET API to create a dwg files from winform. Is this possible or should I look for another library? Are there any new tutorials of doing so? thanks

Thanks for all your answers .... I will stick with my old DXF implementation, since this is personal project.

like image 694
Jim Avatar asked Feb 16 '11 11:02

Jim


3 Answers

I think your only choice if you want DWG is to use OpenDesign. If you don't want to pay what that costs, you can write DXF instead. I have used VectorDraw, which does give a reasonable object model, and can export DXF without any extra component (I think), or use OpenDesign to write DWG.

like image 78
erikkallen Avatar answered Oct 09 '22 07:10

erikkallen


Here you have exacly how to do it. AutoCad includes an API for doing that. The problem is that you need to have AutoCad in the computer where your application remains.

like image 37
Jaime Oro Avatar answered Oct 09 '22 05:10

Jaime Oro


Autodesk sell a library called RealDWG which allow you to read and write dwg file with C# without AutoCAD installed. ~ 2500 € / year.

http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=770257

You can also use DXF, which is easier to read and write (text file). The reference can be found here : http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=12272454&linkID=10809853

like image 35
Maxence Avatar answered Oct 09 '22 06:10

Maxence