sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Version 5 class listing - ANSWERED

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 2 Posters 584 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      archiguy
      last edited by archiguy

      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

      1 Reply Last reply Reply Quote 0
      • A Offline
        azuby
        last edited by

        puts Sketchup.constants.sort
        

        azuby

        *error initus :: Blocks | CurrentDate | d/Code | extensionmanager | FFlipper | HideEdges | MeasuredArea | ModelHistory | PluginsHelp | PronButton | SAWSO | SCP | SU²CATT

        Bad English? PM me, correct me. :smile:**

        1 Reply Last reply Reply Quote 0
        • A Offline
          archiguy
          last edited by

          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")

          1 Reply Last reply Reply Quote 0
          • A Offline
            azuby
            last edited by

            "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

            *error initus :: Blocks | CurrentDate | d/Code | extensionmanager | FFlipper | HideEdges | MeasuredArea | ModelHistory | PluginsHelp | PronButton | SAWSO | SCP | SU²CATT

            Bad English? PM me, correct me. :smile:**

            1 Reply Last reply Reply Quote 0
            • A Offline
              archiguy
              last edited by

              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

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement