Location API
-
File > Geo-location > Add location...
New to SketchUp and Ruby. Is there any API to modify this^? I want to auto-select an adjacent area to mine and grab it.
-
See the
ShadowInfo
hash object:
http://www.sketchup.com/intl/en/developer/docs/ourdoc/shadowinfo -
I'm not sure what are you asking, but to import large google earth image there are several methods:
http://sketchucation.com/forums/viewtopic.php?f=323%26amp;t=40627%26amp;hilit=terrain+mesh
http://sketchucation.com/forums/viewtopic.php?f=323%26amp;t=40413
http://sketchucation.com/forums/viewtopic.php?f=271%26amp;t=6867
http://a4chitect.webng.com/If you download Skelion plugin, there is a feature to make a mesh of an area, (no image satellite), using NASA’s SRTM Elevation data.
SketchUp ruby API does not have methods to add locations. -
@juantxo said:
SketchUp ruby API does not have methods to add locations.
True, instead you set the "TZOffset", "Latitude" and "Longitude" attributes of the model's ShadowInfo hash.
The SketchUp API also has Geom::LatLong and Geom::UTM class objects.
-
@juantxo said:
I'm not sure what are you asking, but to import large google earth image there are several methods:
http://sketchucation.com/forums/viewtopic.php?f=323%26amp;t=40627%26amp;hilit=terrain+mesh
http://sketchucation.com/forums/viewtopic.php?f=323%26amp;t=40413
http://sketchucation.com/forums/viewtopic.php?f=271%26amp;t=6867
http://a4chitect.webng.com/If you download Skelion plugin, there is a feature to make a mesh of an area, (no image satellite), using NASA’s SRTM Elevation data.
SketchUp ruby API does not have methods to add locations.Couldn't find such a feature in Skelion, but that grid generator looks interesting!
@dan rathbun said:
@juantxo said:
SketchUp ruby API does not have methods to add locations.
True, instead you set the "TZOffset", "Latitude" and "Longitude" attributes of the model's ShadowInfo hash.
The SketchUp API also has Geom::LatLong and Geom::UTM class objects.
Doesn't TZOffset only change the time zone? Also changing Latitude/Longitude only let me get two models of the same locations side-by-side. Here's my test code:
mod = Sketchup.active_model # Open model shadowinfo = mod.shadow_info shadowinfo["Latitude"] = shadowinfo["Latitude"] +0.001 shadowinfo["Longitude"] = shadowinfo["Longitude"]+0.001 shadowinfo["TZOffset"] = shadowinfo["TZOffset"]+0 UI.messagebox("Latitude; " + shadowinfo["Latitude"].to_s + "\nLongitude; " + shadowinfo["Longitude"].to_s + "\nTZOffset; " + shadowinfo["TZOffset"].to_s)
Thoughts?
-
@flyingpikachu said:
Couldn't find such a feature in Skelion,
It's a pro feature. Just click mountains icon.
-
@juantxo said:
It's a pro feature. Just click mountains icon.
Thanks! Unfortunately this didn't give me the level of detail I'm after (can't zoom in far enough).
Advertisement