Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.