Compare RevisionNumber vs VersionHistory

Hello,

I want to check in my AddIn that a file can be opened by the SolidWorks version that the user currently use.

I can get the SW version using method SldWorks::RevisionNumber and get the file save version using SldWorks::VersionHistory.

The problem is that RevisionNumber (example: SW 2005 returns 13.0.0) returns different format of version then the VersionHistory returns (example: SW 2005 return 2800).

Do you know an easy way (or right way) to do that?

Thanks,

Bnaya Livne

SolidworksApi macros