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.sortazuby
-
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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better š
Register LoginAdvertisement