• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

API to Open Model Info Dialog?

Scheduled Pinned Locked Moved Developers' Forum
5 Posts 3 Posters 156 Views
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 30 Jan 2013, 18:10

    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
    • J Offline
      jeff hammond
      last edited by 30 Jan 2013, 18:30

      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
      • D Offline
        Dan Rathbun
        last edited by 30 Jan 2013, 19:01

        @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
        • D Offline
          Dan Rathbun
          last edited by 30 Jan 2013, 19:06

          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 30 Jan 2013, 19:22

            Thanks Dan, exactly what I needed.

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

            Advertisement