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:
Advertisement