AutoCAD Map 3D Developer
Welcome to Autodesk’s AutoCAD Map 3D Developer Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D Developer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Shapefile API

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
498 Views, 2 Replies

Shapefile API

Anonymous
Not applicable

I'm trying to bring a shape file into either Map or C3D with elevations. Is there a reference to accessing the elements and attributes in the shape file. Thank you.

0 Likes

Shapefile API

I'm trying to bring a shape file into either Map or C3D with elevations. Is there a reference to accessing the elements and attributes in the shape file. Thank you.

2 REPLIES 2
Message 2 of 3
norman.yuan
in reply to: Anonymous

norman.yuan
Mentor
Mentor

It is not very clear as what you want to do by saying "Shape file API" and "acccessing... elements and attributes...". Do you mean you want to programmatically with your code (.NET code, or any other language of your choice) to access the shape file (*.shp and *.dbf...) outside AutoCAD to obtain the geometries and attribute data, then based on the data do something in AutoCAD Map/Civil?

 

Or, you simply want to bring the the geometries in the shape files into the drawing with or without data?

 

AutoCAD MAP has its built-in way to deal with Shape file, either brings shape data as native CAD entities or export entities as shape (Map import/export API, which does the same thing as executing MapImport/Export command); or you can let AutoCAD Map to connect Shape file as FDO data source (thus bring in the shpe geometries/data as Map entities. For this you use AutoCAD Map platform API (.NET only). In most cases, using AutoCAD Map ObjectARX .NET API's import/export API would meet most need for dealing with shape files in AutoCAD Map. If you have downloaded AutoCAD Map ObjectARX SKD, it includes sample code of import/export API.

Norman Yuan

Drive CAD With Code

EESignature

0 Likes

It is not very clear as what you want to do by saying "Shape file API" and "acccessing... elements and attributes...". Do you mean you want to programmatically with your code (.NET code, or any other language of your choice) to access the shape file (*.shp and *.dbf...) outside AutoCAD to obtain the geometries and attribute data, then based on the data do something in AutoCAD Map/Civil?

 

Or, you simply want to bring the the geometries in the shape files into the drawing with or without data?

 

AutoCAD MAP has its built-in way to deal with Shape file, either brings shape data as native CAD entities or export entities as shape (Map import/export API, which does the same thing as executing MapImport/Export command); or you can let AutoCAD Map to connect Shape file as FDO data source (thus bring in the shpe geometries/data as Map entities. For this you use AutoCAD Map platform API (.NET only). In most cases, using AutoCAD Map ObjectARX .NET API's import/export API would meet most need for dealing with shape files in AutoCAD Map. If you have downloaded AutoCAD Map ObjectARX SKD, it includes sample code of import/export API.

Norman Yuan

Drive CAD With Code

EESignature

Message 3 of 3
Anonymous
in reply to: norman.yuan

Anonymous
Not applicable

Thank you for your thorough reply! In short, I was surprised how many steps were involved in bringing a shape file of contours with correct contour elevation into Map. Yes, by Shape File API I was just referring to some .NET classes that exposed the shape file schema, I am unfamiliar with it. The attribute data appears to be pretty readily accessible properties that should be able to be accessed during importing and applied to entities as they are being created. In hindsight, I should have thoroughly explored the SDK before asking this question. I'm doing that now, thanks again. 

0 Likes

Thank you for your thorough reply! In short, I was surprised how many steps were involved in bringing a shape file of contours with correct contour elevation into Map. Yes, by Shape File API I was just referring to some .NET classes that exposed the shape file schema, I am unfamiliar with it. The attribute data appears to be pretty readily accessible properties that should be able to be accessed during importing and applied to entities as they are being created. In hindsight, I should have thoroughly explored the SDK before asking this question. I'm doing that now, thanks again. 

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

Post to forums  

Autodesk Design & Make Report