9 Replies Latest reply on Oct 24, 2017 4:50 PM by Tim Webb

    PDMWorks Macro times out at connection.documents

    Tounine Mayer

      I am trying to use a macro to retreive and save a file from PDMWorks.  We're using SolidWorks 2016, I am stepping through the VB code and the vault connection works fine, but once I get to connection.Documents it freezes and eventually times out.  Here's what I've got right now:

      Sub main()

      Dim connection As PDMWConnection

      Set connection = CreateObject("PDMWorks.PDMWConnection")

      connection.Login "username", "admin", "localhost"

       

      Dim alldocs As PDMWDocuments

      Dim doc As PDMWDocument

      Set alldocs = connection.Documents

       

      Set doc = connection.GetSpecificDocument ("102-056-01.SLDPRT")

      doc.Save "E:\VaultFile\"

       

      connection.Logout

       

      I have tried to simplify the code as much as possible for now to try to identify the issue.  The underlined line is as far as I get when stepping through the code.  I would appreciate any thoughts or suggestions.  I've tried from multiple machines, always with the same results.