sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Location API

    Scheduled Pinned Locked Moved Developers' Forum
    7 Posts 3 Posters 600 Views 3 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.
    • F Offline
      FlyingPikachu
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        See the ShadowInfo hash object:
        http://www.sketchup.com/intl/en/developer/docs/ourdoc/shadowinfo

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • JuantxoJ Offline
          Juantxo
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • Dan RathbunD Offline
            Dan Rathbun
            last edited by

            @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.

            💭

            I'm not here much anymore.

            1 Reply Last reply Reply Quote 0
            • F Offline
              FlyingPikachu
              last edited by

              @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?

              1 Reply Last reply Reply Quote 0
              • JuantxoJ Offline
                Juantxo
                last edited by

                @flyingpikachu said:

                Couldn't find such a feature in Skelion,

                It's a pro feature. Just click mountains icon.
                Add relief Skelion feature

                1 Reply Last reply Reply Quote 0
                • F Offline
                  FlyingPikachu
                  last edited by

                  @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).

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

                  Advertisement