How to list all Sketchup.send_action?
-
I know there is a way to list all SketchUp's send_action but I seem to have forgotten it.
Can someone enlighten me? -
Unknown to me... the Ruby documentation have a list though.
-
Here's one but it won't work for me.
http://sketchucation.com/forums/viewtopic.php?f=180%26amp;t=23321#p197850
-
!
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 have used a command line utility to scan the executable for strings ending in a colon. Something like this:
> strings sketchup.exe | grep -e ";$"
-
@ Dan: Thanks, but how do you retrieve those string and numeric lists?
Surely not by manually entering all numbers between 1 and 21560? -
@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.
-
Yeah, but I'm not going to make any public release of my script. It's purely for me.
-
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.
Advertisement