is there a way using ruby?
i found the code to retrieve the version of sketchup
sketchup_v = Sketchup.version_number.to_s
but i don't see anything to do the same for the model itself
how to retrieve the version of the model
2 posts
• Page 1 of 1
Re: how to retrieve the version of the model
You need to read in the first part of the binary file SKP and see what version it says...
SketchUp Model{17.0.18899}䖯挢べ仪躯蘚䆤寸ÿ... In Ruby try something like this:
skp_path is the full path to the SKP you are trying to find the version of. vv is the long version number, as a string [e.g. "17018899"] v is the short version number, as a string [e.g. "17"] If you want more details parse vv differently... TIG
2 posts
• Page 1 of 1
|
Who is online
Users browsing this forum: Garbi and 7 guests