Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Specifically, I would like to get the selected object, similar to the way you do in ArcCatalog through IGxDialog.SelectedObject.

Is there a way to do this?

So far I can get the Catalog DockableWindow but am stumped from there.

share|improve this question
up vote 6 down vote accepted

After some experimenting, I found that the answer is surprisingly simple - from version 10 on, the ArcMap application object (esriArcMap.Application) also implements IGxApplication, besides the expected IMxApplication.

This means you can easily access IGxApplication.SelectedObject and work with the catalog in other ways, just like you would in ArcCatalog as usual.

share|improve this answer
Brilliant Petr. Worked great, thank you. – Rusty Jul 9 '12 at 20:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.