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

    Workaround for "selectSelectionTool" Mac bug?

    Scheduled Pinned Locked Moved Developers' Forum
    6 Posts 3 Posters 109 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.
    • J Offline
      jasef
      last edited by

      Hi all,

      I'm using SU 8 on Mac and I've noticed that when I do

      Sketchup.send_action "selectSelectionTool;"
      

      The selected tool in the floating SketchUp toolbar changes, but the one at the top of the model window does not.

      http://i.imgur.com/1rtGE.png

      In the above screenshot, you can see that the floating toolbar (left) has the selection tool, but the selected tool in the window toolbar (right) is still Rectangle. I can even click back and forth on the tools in the floating toolbar and the selected tool in the window bar doesn't change! (Until I "fix it" by selected a tool from that toolbar...)

      Any ideas for a workaround?

      Thanks,

      J

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

        Well this should also work for ONLY the selectionTool

        Sketchup.active_model.select_tool(nil)

        @unknownuser said:

        ](https://developers.google.com/sketchup/docs/ourdoc/model#select_tool)":74a4ir3l]

        The select tool is returned if you pass nil to the select_tool method.

        Try that and report back. (I know it's not a fix for any tool 😞 )

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • J Offline
          jasef
          last edited by

          @dan rathbun said:

          Well this should also work for ONLY the selectionTool

          Sketchup.active_model.select_tool(nil)

          Nope, same results. In the model window toolbar, the original tool stays visually selected even though the actual tool is now the selection tool (and the floating toolbar shows the selection tool is selected).

          It's some sort of refresh bug, annoying but doesn't hamper functionality...just afraid it'll confuse users that the cursor is now the selection tool even though that toolbar says otherwise.

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

            @jasef said:

            It's some sort of refresh bug, ...

            try calling UI.refresh_inspectors() just after changing the tool ?

            The API docs say that if a model undo operation has disabled UI updates, then you can force a single UI update with this method.

            I'm not here much anymore.

            1 Reply Last reply Reply Quote 0
            • J Offline
              jasef
              last edited by

              Still no luck. And I just confirmed it's Mac-only, the toolbar refreshes correctly on Win...

              1 Reply Last reply Reply Quote 0
              • bradB Offline
                brad
                last edited by

                Howdy from Boulder,

                I do not see a bug in our database for this issue. I'll log a bug for you guys.

                Take care.

                Brad
                SketchUp QA

                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