Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Importing AutoCAD/Solidworks drawings/objects into winforms?

Has anybody done anything like that?

I need to import 3d objects, done in either AutoCAD or Solidworks, and draw them into a windows form. I only need the object to be viewed in 3D and moved around - no manipulation required.

I am assuming I will need 2 libraries at least, one for a very simple 3D engine, and one to actually get what I need from the CAD/SW files. Autodesk has a SDK available for developing AutoCAD plugins using .NET, but I am not sure if you can use it the other way around - loading files into the .NET app.

Any help, links, and ideas are appreciated.

like image 322
Pudpuduk Avatar asked Dec 28 '22 19:12

Pudpuduk


1 Answers

DXF files were the universal interop file format in the CAD world, last I looked. They are pretty easy to parse, it is a simple text format. And there is lots of info in the file you can simply skip and still get a recognizable model of the original drawing. The R12 format was especially easy.

Although you don't really want to write the code from scratch if you can avoid it. Shop around, there are plenty of programmers that have done this before. Be careful to avoid re-inventing a CAD program.

like image 69
Hans Passant Avatar answered Dec 31 '22 14:12

Hans Passant