AnsweredAssumed Answered

How to access swApp object from userform

Question asked by Lois Claracq on Nov 17, 2014
Latest reply on Nov 17, 2014 by Francois Racine

I'm a bit confused on how to use the swApp object from inside my userform.


Here is my setup

  • MainClass.VB

    Public Sub main(swApp As SldWorks)  'swApp is passed initially by the swAddin class


        Dim swModel As ModelDoc2

        swModel = swApp.ActiveDoc


'do things@



    End sub


The problem is once Dialog2 is shown none of the control inside have access to swApp.


What would be the proper way to access the swApp object without closing the form ?