.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Import ESRI SHP to AutoCAD with C#

3 REPLIES 3
Reply
Message 1 of 4
vzavec
1965 Views, 3 Replies

Import ESRI SHP to AutoCAD with C#

Hi!

 

Need help on this problem, can one direct me to similar examples or peace of code.

Cheers, VZ

Tags (1)
3 REPLIES 3
Message 2 of 4
norman.yuan
in reply to: vzavec

Are you using vanilla AutoCAD or AutoCAD Map/Civil 3D?

 

For the latter, there is Map ObjectARX .NET API for Importing/Exporting SHAPE to/from Acad MAP, which does basically what the command MapImport/MapExport do.

 

If you use plain AutoCAD, unfortunately, there is not AutoCAD .NET API that deals with SHAPE file. However, you can down load FDO libabry from http://www.osgeo.org/home to read/write geometries and its attribute data defined in SHAPE file.

 

Actually, if you use Acad Map/Civil, the FDO library is installed with Acad Map, so you can deal with SHAPE file either with Acad Map's importing/exporting API, or with FDO.

 

Message 3 of 4
vzavec
in reply to: norman.yuan

Hi,

 

thanks for quick response, I am using AutoCAD Map/Civil 3D and will try with Map ObjectARX .NET API.

 

Is there any example written in C#?

 

Cheers, Vojko

Message 4 of 4
norman.yuan
in reply to: vzavec

If you have not downloaded AutoCAD Map ObjectARX SDK (which is not same as AutoCAD ObjectARX SDK), downloaded. It comes with Map ObjectARX NET API code samples. The one you want to look into is DOTNET sample project "ImportExport". The documentaion coming with the Map ObjectARX SDK also have some code snippets.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost