"Please wait" message until macro finishes executing

Hello,

I have an add-in for SolidWorks. It runs a macro by calling RunMacro2. I would like to display a "Please Wait" message and/or a progress bar while the macro is executed.

Based on the discussion here, I think I can start an EXE that has a progress bar, and close it when the macro is finished. Is there an easier way to do something like this?

Also, how can I know if the macro has completely executed?

Thank you,

Doga

SolidworksApi macros