Hello,
Please I'd like to know the event name which is associaed to the "save as".
For example when we open a new file, the SYSTEM_NEW_DESIGN_FILE event is loaded and when we close the dgn file the SYSTEM_UNLOAD_PROGRAM event is loaded so what about "save as".
Unknown said:I'd like to know the event name which is associated to the "save as"
I did some investigative work on this. It looks like the system callback for SYSTEM_FILE_SAVEAS is not implemented correctly. However, the system callback for SYSTEM_FILE_SAVE is implemented and works as expected. Moreover, it works for both file save and file save as operations.
I suspect that someone took the decision to make SYSTEM_FILE_SAVE do all the work for both system events, but nobody remembered to deprecate SYSTEM_FILE_SAVEAS.
I added some code to an existing MDL application initapp. The source code is attached in initapp.zip. It's pure MDL, so you can build it using the bmake file that's included.
Load the app. as a user with mdl load initapp. Make sure that you have DEBUG enabled in the MicroStation Message Center. Then do something with the File menu (Compress|DGN, Save Settings, Save As, Save). The trace messages tell you what the callback is doing.
Regards, Jon Summers LA Solutions