sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download

    API to Open Model Info Dialog?

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 3 Posters 171 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.
    • D Offline
      draftomatic
      last edited by

      Hello everyone, it's been a while. I like the site redesign!

      I am wondering if there is a hook in the API to open the native Model Info dialog box, ideally with the geolocation page selected. My goal is to have a button on a toolbar that opens the geolocation page.

      Is this possible? Thanks.

      1 Reply Last reply Reply Quote 0
      • jeff hammondJ Offline
        jeff hammond
        last edited by

        there already is a geo-location icon..

        it's at the bottom-left corner of the drawing window.

        dotdotdot

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

          @draftomatic said:

          I am wondering if there is a hook in the API to open the native Model Info dialog box, ...

          Yes ... UI::show_model_info("Geo-location")

          @draftomatic said:

          ... ideally with the geolocation page selected.

          I believe the API panel arguments are still bugged on the Mac, but work on PC.

          @draftomatic said:

          My goal is to have a button on a toolbar that opens the geolocation page.

          As Jeff said there is a built-in button (brown circle with a light bulb inside it. At least it looks like a light bulb to me.)

          If you wish to open the "Add Location ..." map dialog (the same as clicking the first button on the Google toolbar.):
          Sketchup::send_action('getCurrentView:')

          πŸ’­

          I'm not here much anymore.

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

            You might be interested in this code:

            [Code] GE "GeoLocation" AttributeDictionary v1.1.0

            πŸ’­

            I'm not here much anymore.

            1 Reply Last reply Reply Quote 0
            • D Offline
              draftomatic
              last edited by

              Thanks Dan, exactly what I needed.

              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