sketchucation logo sketchucation
    • Login
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    API Methods by SU Version - 2012 year end edition

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 4 Posters 114 Views 4 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.
    • J Offline
      Jim
      last edited by

      For anyone interested, here's a spreadsheet listing SketchUp API methods and the version they were introduced into the API. It's current as of today - made by scraping the latest API docs here: http://www.sketchup.com/intl/en/developer/docs/classes

      Hi

      1 Reply Last reply Reply Quote 0
      • D Offline
        driven
        last edited by

        hi Jim,
        cheers for this
        is it possible to get all Sketchup.send_action's from SU to use in code, or do i need to download the 'latest list' and hardcode them?

        I'm still trying to make a better toolbar for mac's...
        john

        learn from the mistakes of others, you may not live long enough to make them all yourself...

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          ๐Ÿ‘

          Thomas Thomassen โ€” SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jim
            last edited by

            @driven said:

            is it possible to get all Sketchup.send_action's from SU to use in code, or do i need to download the 'latest list' and hardcode them?

            For the send_actions, it's easier to just copy and paste off the web page. The send_action page elements aren't distinguishable enough for easy scraping.

            But...

            
            require 'open-uri'
            require 'nokogiri'
            
            url = 'http://www.sketchup.com/intl/en/developer/docs/ourdoc/sketchup'
            
            page = Nokogiri;;HTML(open(url))
            
            page.css('.apireference li').each do |ent|
              puts ent.text
            end
            
            

            Ruby not SketchUp Ruby

            Hi

            1 Reply Last reply Reply Quote 0
            • Dan RathbunD Offline
              Dan Rathbun
              last edited by

              FYI: two other threads on send_action()

              • Sketchup.send_action() : Arguments to
              • Sketchup.send_action arguments: Mac vs PC

              I have begun a reference spreadsheet (in ods format) on the many actions (many not documented elsewhere,) but it is not fully complete.

              I'm not here much anymore.

              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