Fredo6 wrote:In Sketchup, the normal way to check whether the current installed version if newer or older than a given version is to use Sketchup.version_number, which returns a FixNum. Sketchup.version is unfortunately returning a string which is not good for comparison.
A small problem is that the Sketchup.version_number method does not seem to match Sketchup.version. For instance, with the latest release, SU 8.0M2:
- Sketchup.version = "8.0.11752"
- Sketchup.version_number = 8000999
1) Sketchup.version_number is bugged, obviously. I asked them to make it work as it needs to, because it NEVER worked correctly, when the build number was higher than
1000. They are reluctant, because they are afraid of breaking old plugins (I suppose.)
2) I am maintaining a spreadsheet with as many build numbers, as I can determine.
Fredo6 wrote:Does anybody remember what was the current version_number for SU8 M1?Thanks
Exactly the question, bound to be raised repeatedly, that led to me creating the
Sketchup::Version submodule.
It now
needs updating since the release of
8.0M2. (And needs to be released as part of a library package,
not on it's own bundled with plugins.)
For now use:
BUILD = Sketchup.version.split('.').last.to_iwhere the build numbers are :
- Code: Select all
v 8.0 M0 beta 2314 - 3079
v 8.0 M0 Releases ALL >=3117 && < 4006
Mac: 3161
Win: 3117
v 8.0 M1 beta 4006 - 4625
v 8.0 M1 Releases ALL >=4810 && < 9784
Mac: 4810
Win: 4811
v 8.0 M2 beta 9784 - 11680
v 8.0 M2 Releases ALL >= 11751
Mac: 11751
Win: 11752
Note: Each language has it's own build number, on each platform, in each MR release set. (.. I have not yet determined what all the build numbers are for the various language builds, in the MR2 set.)