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.

I'm programmatically creating a table in a geodatabase and am trying to force ArcCatalog to refresh the display to show the new table. I've tried the following which does not work:

Dim gxApp As IGxApplication = TryCast(m_application, IGxApplication)
... 'Create table here

'Then trying to force tree view to show new table...
gxApp.Refresh(0)

'And trying to force view to display...
gxApp.View.Refresh()

Missing something simple here.

share|improve this question
2  
Did you try calling IGxObject.Refresh for the object corresponding to the IGxDatabase which holds the table? –  Kirk Kuykendall Mar 31 '11 at 19:20
    
That was it! Thanks Kirk. –  Jeff Berry Mar 31 '11 at 21:24
    
In that case, let me rephrase this as an answer. –  Kirk Kuykendall Mar 31 '11 at 21:53
add comment

1 Answer 1

up vote 3 down vote accepted

Try calling IGxObject.Refresh for the object corresponding to the IGxDatabase which holds the table.

share|improve this answer
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.