I'm not sure what you mean by exhibit but it's highly unlikely you need ArcMap. The IMapDocument interface allows you to open a document and access the map, the layout, the map layers, etc. You can make changes and save those changes.
Neil,Thanks for the reply. The processes the program does is merge several layers into one, create a new layer that buffers all the polygons in the merged layer and then does a spatial query between an area of concern layer with the merged layer as well as the buffered layer. Lastly, it gets lot information from Oracle tables, puts everything into an Access database and makes automatic exhibits for each polygon falling in an area of concern. I probably don't need ArcMap for some of the steps, but I'm pretty sure I need it for the spatial queries and exhibits. Carlos
If all you're doing is processing data then you don't need ArcMap at all. Just write a standalone program that accesses the data directly and does what it needs to do. If you need information from the map document, use IMapDocument to open it.
Well there is at least 3-4 more elegant ways of doing this sort of thing depending on the nature of the operations the code is doing. However if you just want to migrate changing the least things to your design, there is a MxDocument_OpenDocument event in C#. You need to create an ArcMap extension and create a listener in the oncreate event of the extension to the IDocumentEvents OpenDocument event and put your code in there. Putting the code in the oncreate of the event is a possibility too but typically ArcMap is not finished loading at that time.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.