In Microstation-v8, when the user press Ctrl+Z. the undo event take place. Here I want to check and restrict the event based on a particular scenario. How to achive this by using MVBA (or by using mdlwrapper class in VBA).
Hi Dharma Rajan,
to monitor Undo / Redo events, you can use ICHangeTrackEvents interface (see more details in MicroStation VBA help). But in my opinion (just my guess, because I have not used in VBA) there are some restrictions:
Based on that I think you cannot restrick Undo using VBA and mdl wrappers will not help there.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Unknown said:Is it possible to replace the shortcut key for Undo action from Ctrl+Z to another key by using VBA?
In my opinion it's hardcoded inside MicroStation and cannot be change in any way.
I guess the only proper way how to monitor and control design file changes is to use native API and to use a proper API callback.
It seems you want / need to use VBA for task that this environment was not designed. For any tight integration with MicroStation, C and C++ native code is required.
Unknown said: In my opinion it's hardcoded inside MicroStation and cannot be change in any way.
I have noticed an option to modify menu item using inbuilt-wizard (Tools -> Tool Boxes -> Customize -> Menu Bar -> Modify). Is this same can be accomplish by using VBA. Screenshot is attached for your reference.