Refreshing All documents in Session.

Refreshing All documents in Session.

Anonymous
Not applicable
325 Views
0 Replies
Message 1 of 1

Refreshing All documents in Session.

Anonymous
Not applicable
In Inventor, there is a way by which all the documents currently opened in session can be freshed.

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.

0 Likes
326 Views
0 Replies
Replies (0)