I'm writing a
BaseGeoprocessingTool with the ArcObjects API and I need to open an Mxd then change the current document by this opened document.
I managed to open the Mxd document:
IMapDocument mapDocument = new MapDocument(); mapDocument.open(filename, "");
And inside a geoprocessing tool, it's possible to get the current map or page layout by using
But is it possible to get the current
IApplication in order to set the current document?
Or is there another way to change the current document?
Else, I need to handle the current document, in order to change data frame settings, Maplex settings, print and export settings... not only layers.
I use ArcMap 10.2.