Version 5 class listing - ANSWERED
-
Where can i find the old listing of class for Sketchup 5?
(like http://download.sketchup.com/sketchuphelp/gsu6_ruby/Docs/Ruby-classes.html but for the version 5)
i'm working on a script that run on both version 5 and 6 and some fonctions i can find for the version 6 don't work on the 5, so where can i verify this?
thanks -
puts Sketchup.constants.sort
azuby
-
thanks, i didn't know sketchup.puts but i don't get all the answer i want and for example is there a way to get "Sketchup.os_language" in sketchup 5?
The only way to make this to work in both 5 and 6 is to use an error catching (with "try") -
"sketchup.puts" - what's that?
What's not OK with the code snippet? It lists you all constants registered for the current session (and because a class (name) is a constant, the list could be useful). If you only want to see the "build-in" constants, clear the Plugins/Tools directory and run the code.
For the OS language check ENV or explore the Langhandler class.
azuby
-
sorry, i made a mistake, i meant "puts Sketchup.constants.sort"
for the language part i succeed with "Sketchup.get_locale"
and i found what i want in the directory "Ruby\docs" in sketchup 5.
Anyway, i'll look deeper in the constants
Thanks a lot
Advertisement