How to analyze map programatically?

767
3
10-22-2013 10:00 AM
SowmyaTiramdasu
New Contributor
Hi,

There is a command in ArcMap->File->'Analyze Map...'. This analyzes the current map and shows if there are any errors or warnings. Like for example : 'Layer's data source has a different projection [Unknown] than the data frame's projection' and many more. Can I do this same operation through my C# code (ArcObjects) and identify the errors or warnings it shows ?

Any reply would be greatly appreciated.

Thanks ,
Sowmya.
0 Kudos
3 Replies
JohnStephens
Occasional Contributor
What version of ArcMap are you using?  I don't have that option under File.
0 Kudos
SowmyaTiramdasu
New Contributor
I am using ArcMap 10.2. We also get a similar functionality when we click on File->Share As->Tile Package-> on the tile package window-> 'Analyze' with a green check mark beside it. There is a slight difference in the results given when clicked on File->Analyze and the other path I mentioned above. I am mainly interested in the Analyze before creating a Tile Package.

What version of ArcMap are you using?  I don't have that option under File.
0 Kudos
DuncanHornby
MVP Notable Contributor
You could try getting a handle on the button and then executing it. A code snippet is here.

Duncan
0 Kudos