0 Replies Latest reply on Dec 1, 2017 4:59 AM by Norbert Gal

    OpenDoc7 freezes Visual Studio and SWX VB.NET

    Norbert Gal

      Hi,

      I have a standalone application in VB.NET.

      The application is running continuously.

      In the application there is a gridview with filenames, and the user can open the file from this grid.

      I use this code below to open files in a currently running SWX session.

       

      My problem is that, sometimes (not on every open) the code "stuck" the at the bold underlined line after the file opened, and I cant figure out why?
      There is no error message in VS or SWX, but both of them freezes.

      If I stops the code running in VS, I can I can use SWX further.

       

      Dim config As String = "...."

      Dim path As String = "...."

       

      Dim swDocSpec As SldWorks.DocumentSpecification = swApp.GetOpenDocSpec(path)

      swDocSpec.Silent = True

      swDocSpec.ConfigurationName = config

       

      Dim openedDoc As SldWorks.ModelDoc2 = swApp.OpenDoc7(swDocSpec)