Is it possible using VBA to detect if a dgn file is closed by the user, or if the application is shut down, for example, with the MS_IDLETIMEOUT variable.
The file close does not seem to have any way of distinguishing the cause of the close.
Any help with this would be greatly appreciated.
Regards,
John Davidson
Hi John,
I am pretty sure it's not possible using VBA.
Even if MDL will be used, I am not sure how difficult (or possible at all) could be to implement such functionality. It's possible to monitor input queue, but you will have to analyze every input queue element for its source. I guess command source is stored in element queue header, but I have not tried to use it for such purpose yet.
Also any input queue monitoring slows done MicroStation, so it has to be used carefully and only if really necessary.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point