Google earth import view ruby action
-
Hi,
does anyone know what the action in ruby is for Tools>Google Earth>Get Current View?
Simon
-
I don't think that there is one...

-
oh crap, so no way of moving it out of the menu and onto my toolbar?
-
Not readily - you can try a openURL with a cmd file containing arguments ? to open googleearth...
http://earth.google.com/comapi/
http://bbs.keyhole.com/ubb/ubbthreads.php?ubb=showflat&Number=267687&site_id=1#import
etc -
Thanks Tig,
I was just playing around with the ruby files for the help menu at the top and was wondering if the other menus such as tools are in a ruby file aswell?
Simon
-
@simonstaton said:
does anyone know what the action in ruby is for Tools>Google Earth>Get Current View?
MS Windows ONLY
Sketchup.send_action( 139 )You must have Google Earth already started or else an error dialog pops up (and says just that.)
-
@simonstaton said:
oh crap, so no way of moving it out of the menu and onto my toolbar?
(1) You CANNOT move anything out of any menu.
(2) The Google Toolbar already has all the buttons.- Toggle it with:
Sketchup.send_action( 10617 )* Show it:UI.set_toolbar_visible('Google', true)* Hide it:UI.set_toolbar_visible('Google', false)
- Toggle it with:
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