• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

How to list all Sketchup.send_action?

Scheduled Pinned Locked Moved Developers' Forum
9 Posts 4 Posters 894 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.
  • P Offline
    Pixero
    last edited by 18 Nov 2016, 11:31

    I know there is a way to list all SketchUp's send_action but I seem to have forgotten it.
    Can someone enlighten me? ☀

    1 Reply Last reply Reply Quote 0
    • T Offline
      thomthom
      last edited by 18 Nov 2016, 13:32

      Unknown to me... the Ruby documentation have a list though.

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

      1 Reply Last reply Reply Quote 0
      • P Offline
        Pixero
        last edited by 18 Nov 2016, 16:09

        Here's one but it won't work for me.

        http://sketchucation.com/forums/viewtopic.php?f=180%26amp;t=23321#p197850

        1 Reply Last reply Reply Quote 0
        • D Offline
          Dan Rathbun
          last edited by 18 Nov 2016, 20:50

          !

          We have long had a snippet list of the actions strings in this forum:

          [Code] Sketchup.send_action() : Arguments to

          Be sure to read down the thread for updates, omissions, new actions found, old ones retired etc.


          @thomthom, I'll file an issue to update the official docs using this thread as a reference.

          I'm not here much anymore.

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jim
            last edited by 19 Nov 2016, 09:22

            I have used a command line utility to scan the executable for strings ending in a colon. Something like this:

            
            > strings sketchup.exe | grep -e ";$"
            
            

            Hi

            1 Reply Last reply Reply Quote 0
            • P Offline
              Pixero
              last edited by 19 Nov 2016, 09:23

              @ Dan: Thanks, but how do you retrieve those string and numeric lists?
              Surely not by manually entering all numbers between 1 and 21560?

              1 Reply Last reply Reply Quote 0
              • J Offline
                Jim
                last edited by 19 Nov 2016, 09:29

                @pixero said:

                @ Dan: Thanks, but how do you retrieve those string and numeric lists?
                Surely not by manually entering all numbers between 1 and 21560?

                I don't know where the numbers come from, but the docs say they aren't guaranteed to work anyway.

                Hi

                1 Reply Last reply Reply Quote 0
                • P Offline
                  Pixero
                  last edited by 19 Nov 2016, 09:36

                  Yeah, but I'm not going to make any public release of my script. It's purely for me. 🤓

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    Dan Rathbun
                    last edited by 19 Nov 2016, 21:55

                    I can get some command ID numbers from menu items and buttons etc. by using a resource inspector utility. Currently I am using one named "Inspect Object" that comes with Microsoft Windows SDK, that can inspect GUI objects in realtime of all running applications.

                    P.S. - command ID integers only work on the Windows platform.

                    I'm not here much anymore.

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

                    Advertisement