3 Replies Latest reply on Dec 6, 2006 5:55 PM by Peter Gillespie

    Old version of Solidworks

      This can certainly be done using the API.
      One of our guys has done this but is out of the office until Thursday.
        • Old version of Solidworks
          I have some old Solidworks files that were submitted to a customer a couple years ago. They want to know what version of Solidworks they were. I also have a copy of the files on our network. Is there any way to determine in what release of Solidworks a file was saved? I'm sure our files were either 2003 or 2004, but I'm not sure how to tell which.
            • Old version of Solidworks
              Mati Link
              Here is a bit from a guy I know.
              "SWvc is simple Excel example that reads the models (part/assy) from the defined folder and shows the version history for them (basicly what SolidWorks version has been used to save the file). No error checking in the code :-)"

              • Old version of Solidworks
                Peter Gillespie
                This doesn't help much, but there is a way. I made a short macro that will return a value for the open document, but the returned info for my document, created in 2004 SP1 is: 2500[2003/297]. I assume it has something to do with the build date of the Solidworks.exe file. Also, if the file was saved in multiple versions, this code will only pull one (I don't know which one).

                Dim swApp As Object
                Dim model As SldWorks.ModelDoc2
                Dim fname As String
                Dim versionx As Variant

                Sub main()
                Set swApp = Application.SldWorks
                Set model = swApp.ActiveDoc
                fname = model.GetPathName() 'Use full directory and filename
                versionx = swApp.VersionHistory(fname)
                MsgBox versionx(0)
                End Sub