Hi all,
I currently use Modal Dialog Events Handlers in Microstation VBA to populate and dismiss dialogs that open during export processes. Now that I have Projectwise integration activated, this dialog process is taken over by a Projectwise dialog that requires me to manually cancel it to enable the Macro to continue.
Can anyone help me with some MVBA code to dismiss these PW dialogs to allow for full automation of export macros (if possible)?
Regards,
Mark
Hi Mark,
I am not quite sure whether I understand the situation correctly, but I assume VBA cannot interact with ProjectWise dialogs because they are not part of MicroStation but independent application.
What VBA recorder creates when ProjectWise dialog is opened?
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Hi Jan,
Unfortunatley nothing from PW Integration gets recorded at all in the VBA recorder. I have however found a "Projectwise Base Intgration 1.0 Type Libraries" in my VBA references list that may be a link perhaps?
OpenRoads Designer 2023 | Microstation 2023.2 | ProjectWise 2023
I know this post is a few years old but was you able to figure out how to suppress the PW dialog on export when in a PW integrated? I just want to know how to suppress or control any PW dialog prompt as some MicroStation keyins force a dialog prompt and I cant figure out how to do it programmatically. I can do it with all other dialogs for the most part. I have loaded the PW reference but cannot figure it out.
Hi Mark Winegar,
I provide a few common MicroStation ProjectWise MCM-Key-ins to help attach design and raster attachments that should not prompt any modal dialog boxes.
If there are other commands/workflows outside the scope of what is listed feel free to create a new post stating what specific workflow the modal dialog box is being presented.
HTH,Bob
Hi Robert,the reason I was asking for a follow up was not necessarily to attach references but to understand and have the ability to suppress a ProjectWise dialog prompt via VBA in a simplistic way just like IModalDialogEvents_OnDialogOpened in base MicroStation, specifically canceling the dialog. I am aware of batch processing and other methods to achieve similar tasks but only when outside of ProjectWise. I need this to work in an active ProjectWise integrated session of MicroStation. Some tools in MicroStation do not work with only keyins alone or keyins via VBA programming 100% such as importing levels from a level library (the root of my question). Yes, I can control the prompted MicroStation dialogs outside of a ProjectWise integrated environment to import levels but I cannot suppress the ProjectWise dialog in this manner with that specific tool. If I wanted to batch process files to import levels using an in session Batch Process script in a ProjectWise integrated environment, the user would be prompted on every file. I would like to suppress that if possible.
Since then we came up with an idea to temporarily turn off the checkin dialog by using an EXPAND SET keyin with the variable "PW_CHECKINOPT" and then remove it at the end of the macro so the dialogue is reinstated.
I'll post an example shortly.