Run Macro on Rebuild

‌ your the best that I know when it comes to macros.  I have this macro which is suppose to run another macro on rebuild.  I have attached the macros below.  When I run the RunMacroRebuild it adds the Show Comments macro to the Design Binder and adds an entry at the end of the Design Tree but when I do a Ctl+Q it does not show the comments like is suppose too.  I would like you to take a look if possible at my macro's.  I am running SW2019 SP5.

SolidworksApi/macros
Answers 2
DG
DG 2021-04-08 Best Answer

, I do not see any issues with either of the macro but when I change swApp.SendMsgToUser2 to MsgBox in the following line, it seems to work. Can you try doing that and check.

If msg <> "" Then
swApp.SendMsgToUser2 msg, swMessageBoxIcon_e.swMbInformation, swMessageBoxBtn_e.swMbOk
End If

WS
WS 2021-04-08

That works. Thank you Deepak.  Your the man