C# with dxf file format

2,034 views
Skip to first unread message

toanmh\

unread,
Jul 10, 2009, 12:34:19 PM7/10/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
I want to read and view dxf file using C#. I searched on the internet
and found some result in codeproject.com but that working not well. So
I found some dll file to support this but it is of commercial .
Someone please help me or give some examples about this?
Thank you very much.

Peter Smith

unread,
Jul 15, 2009, 12:09:21 PM7/15/09
to DotNetDe...@googlegroups.com
You're going to have a hard time finding anything to deal with AutoCAD
that is, at the same time

1) Good
2) Not commerical

There's just too high a percentage of AutoCAD users that HAVE money, to
make it reasonable to expect good, free/low-cost stuff. There are more
specific problems too, which you can read about in excellent responses
to this concept at:

http://stackoverflow.com/questions/169390/open-source-cad-drawing-dwg-library-in-c#206456

and

http://stackoverflow.com/questions/298622/net-cad-component-that-can-read-write-dxf-dwg-files

DWG is a lot tougher to deal with than DXF, given that it's encrypted
and changes spec every 3 years. On the other hand, reading and writing
DXF files really isn't a problem. Just use a streamwriter! I mean,
they're just text files.

Now, if you want to parse, or display, or manipulate them, that might
be more difficult. :)

http://www.opendesign.com/the_oda_platform/dwgdirect.net and
http://through-the-interface.typepad.com/ are two places that those
answers in StackOverflow pointed me at. They look intriguing.

A quick search on "DXF C#" pointed me at
http://www.sharewareconnection.com/2d-3d-dxf-import-net.htm as well.

Good luck! If you make any progress and actually have details on what
you're doing, feel free to come back and share.

Reply all
Reply to author
Forward
0 new messages