AnsweredAssumed Answered

VB.NET Addin: How to stop addin command?

Question asked by Ross John on Apr 12, 2017
Latest reply on Apr 14, 2017 by Ross John

Hello Forum,


I am using standard VB.NET Addin and want to add some lines into SwAddin.vb file, so the Addin command could be stopped, if some criterien are not satisfied.


For example I have such lines in a function of SwAddin.vb...


        If 3 <> 4 Then

            MsgBox("Error! Run this addin again!")

            ' What should I write here to stop Addin and quit?

        End If




Update: I only want to quit the Addin command, not the SolidWorks.