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.
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.
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
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
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.
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.