Refreshing All documents in Session.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
For this theres a api (FileManager::RefreshAllDocuments) available. This api is able to handle all most all of the Refresh cases pretty well.
However there is some ambiguity related to the callback event sequence from Inventor. The only reliable callbacks which I have been able to use are the
1. OnCloseDocument-before,
2. OnOpenDocument-before
3. OnOpenDocument-After,
4. OnCloseDocument-After
The above shown is the actual sequence in which these Events are recieved by the Inventor Addin.
Kind of strange that the OnOpenDocument-Before and After events, PRECEED the OnDocumentClose-After event, something fishy in here.
However I digress.
The main problem which I have been facing is that in some situation these calls come synchronously while in other the calls are happening a-synchronously. In these scenarios there is no context of why the open or close of the documents happened.
Has anyone come across this issue, also is there some other event I can use.
All help is good.