This content has been marked as final. Show 3 replies
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.
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 :-)"
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
Set swApp = Application.SldWorks
Set model = swApp.ActiveDoc
fname = model.GetPathName() 'Use full directory and filename
versionx = swApp.VersionHistory(fname)