Most people only use Visual Basic’s Message Box as an “alert” tool – a way to pass information to the user. Did you know you could use it to pass information back to your macro? The SOLIDWORKS API class teaches you to declare a variable and set that variable equal to the value returned by MsgBox. Works great, now the button the user chooses (in this case either a “Yes” or “No” button (most likely in this case “Yes”)) will be stored in the “result” variable. […]

Read More