1 Reply Latest reply on Dec 15, 2014 3:17 PM by Sanya Shmidt

    How to get file name of active configuration?

    Sanya Shmidt

      Hello Guys!


      Can someone help me, I`m curious how to get a file name for the active configuration?


      So far I have:

      swApp = CType(Runtime.InteropServices.Marshal.GetActiveObject("SldWorks.Application"), SldWorks.SldWorks)


      swPartModel = swApp.OpenDoc6(_file, swDocumentTypes_e.swDocPART, swOpenDocOptions_e.swOpenDocOptions_LoadModel, "", fileerror, filewarning)


      swApp.ActivateDoc2(_file, True, fileerror)

      swPartModel = swApp.ActiveDoc


      swConfig = swPartModel.GetActiveConfiguration



      I need to get the name see below:


      Thank you.