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

    [Plugin] Toggle Units

    Scheduled Pinned Locked Moved Plugins
    159 Posts 47 Posters 116.4k Views 47 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
      driven
      last edited by

      Hi Mat,

      on my mac if I instal this correctly and open SU

      Unless, I use the manager, make a change and then quit

      SU actually crashes when I close a window and I get a report dialog.

      When I remove this ruby, everything works as it should, if put it back again problem returns.

      it make no difference if I use or don't use the plugin, only if it's installed.

      %(#BF0040)[28 com.google.sketchupfree8 0x004a9316 std::vector<CSketchUpToolbar::CToolBarItem, std::allocatorCSketchUpToolbar::CToolBarItem >::_M_insert_aux(__gnu_cxx::__normal_iterator<CSketchUpToolbar::CToolBarItem*, std::vector<CSketchUpToolbar::CToolBarItem, std::allocatorCSketchUpToolbar::CToolBarItem > >, CSketchUpToolbar::CToolBarItem const&) + 1968
      29 com.google.sketchupfree8 0x004aa4ab std::vector<CSketchUpToolbar::CToolBarItem, std::allocatorCSketchUpToolbar::CToolBarItem >::_M_insert_aux(__gnu_cxx::__normal_iterator<CSketchUpToolbar::CToolBarItem*, std::vector<CSketchUpToolbar::CToolBarItem, std::allocatorCSketchUpToolbar::CToolBarItem > >, CSketchUpToolbar::CToolBarItem const&) + 6469
      30 libCommonUtils.dylib 0x00a8538a CNotificationCenter::SendNotification(char const*, void*) + 202
      31 com.google.sketchupfree8 0x004c1d48 non-virtual thunk to CTool::~CTool() + 3048
      32 com.google.sketchupfree8 0x004c27c3 non-virtual thunk to CTool::~CTool() + 5731
      33 com.google.sketchupfree8 0x00008335 0x1000 + 29493]

      john

      learn from the mistakes of others, you may not live long enough to make them all yourself...

      1 Reply Last reply Reply Quote 0
      • M Offline
        Matt666
        last edited by

        Hum Thomthom told me I had to use 'show' with windows and 'show_modal' with mac... I think this is the problem (because i completely forgot this!). I'll take a look soon thank you!

        Frenglish at its best !
        My scripts

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

          Hi Mat,
          It actually seems to be something to do with the preference settings, which SU sends to the .plist on Mac.

          .show and .show_modal never cause crashes, it's just the dialog disappears under the main window.
          john

          learn from the mistakes of others, you may not live long enough to make them all yourself...

          1 Reply Last reply Reply Quote 0
          • M Offline
            Matt666
            last edited by

            Hi!
            See first post to download new version [v2.11].

            • Mac bug fixed
            • Add tool in extensions window.
              Big thanks to driven for his help! πŸ‘

            LINK: http://forums.sketchucation.com/viewtopic.php?p=81391#p81391

            Frenglish at its best !
            My scripts

            1 Reply Last reply Reply Quote 0
            • A Offline
              ankitdarda
              last edited by

              thanks a lot..

              http://forums.sketchucation.com/posting.php?mode=reply&f=323&t=11745#

              thank you !!!

              feel free to click on my site http://www.ankitfolio.co.cc includes my blog page link within it

              :sunglasses:

              ankitdarda

              1 Reply Last reply Reply Quote 0
              • M Offline
                Matt666
                last edited by

                πŸ˜‰

                Frenglish at its best !
                My scripts

                1 Reply Last reply Reply Quote 0
                • U Offline
                  ultimato andy
                  last edited by

                  where is the pluggin to download for sketchup 8? i cant find it!:(

                  1 Reply Last reply Reply Quote 0
                  • GaieusG Offline
                    Gaieus
                    last edited by

                    @ultimato andy said:

                    where is the pluggin to download for sketchup 8? i cant find it!:(

                    Attached to the first post of the topic (usually at the bottom)

                    Gai...

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      Matt666
                      last edited by

                      Thank you Gaieus!

                      Frenglish at its best !
                      My scripts

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        mirale999
                        last edited by

                        Great plugin~ I find it easy to switch from mm to M when just to measure the area of a plan now!

                        paranoia is a higher form of awareness...

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

                          Hi.
                          I don't think it's a Lion issue... per say

                          on the mac the MF_UNCHECKED MF_CHECKED just doesn't work to your advantage, and after a few wrong combinations, it stops switching the screen text, although console says it's working.

                          if you run it with RC open you can see that your better off re-clicking the currently selected first, to turn the shadow off, then changing. it's a drag, but SU enabled the native buttons behavior to latch and when it also coded to latch....

                          the mac native SU button code needs to be modified, then we can have buttons the toggles, like 'some' native SU ones that were set up correctly.

                          as a stop gap I changed the MF_CHECKED to MF_UNCHECKED, which sightly reduces confusion.
                          john

                          learn from the mistakes of others, you may not live long enough to make them all yourself...

                          1 Reply Last reply Reply Quote 0
                          • mariochaM Offline
                            mariocha
                            last edited by

                            Well, no luck here on OS X Lion, with v 2.11
                            Only the first 4 icons and the 2 setting the precision work; And the greyed out icons stays on when it should go out.


                            toggle-units Mac.png

                            %(#008000)[Mario C.
                            Every rule has exceptions, but some.]

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

                              no the native setting will still shadow the buttons as if selected, the light greying seems to work, until it/you gets confused,

                              it only works on unavailable options, so maybe the fractions/decimal triggering could be modified to make it more intuitive...

                              I just turned off Fractions and Arch and Use ENG in either metric or imperial, but with decimals only.

                              I understand fractions, but not the use of them.... although they should run faster with binary conversions....

                              john

                              learn from the mistakes of others, you may not live long enough to make them all yourself...

                              1 Reply Last reply Reply Quote 0
                              • mariochaM Offline
                                mariocha
                                last edited by

                                Oh ! you mean the shadowing of the buttons is within SU. πŸ˜•
                                Oh well, then I can just re-click it to make the shadow go.
                                Here in Quebec, we are caught between 2 worlds so I have to use both Arch. and Met.

                                %(#008000)[Mario C.
                                Every rule has exceptions, but some.]

                                1 Reply Last reply Reply Quote 0
                                • mariochaM Offline
                                  mariocha
                                  last edited by

                                  Hum... in this case, we do not really need the current icon being greyed cause we can see witch is the current unit setting just by looking at the dimensions in the model.
                                  The main drag is that some do not work. Maybe taking the "greying" part of the code out ? ❓
                                  update; I deleted the "MF checked-MF unchecked" and "validation" parts and they now all work fine.
                                  Now If I could find how to disable the greying out of the icons. πŸ˜„

                                  %(#008000)[Mario C.
                                  Every rule has exceptions, but some.]

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

                                    hay,

                                    I'm in England, 50% of the population think mm is the Mickey Mouse Club and the rest think a foot is on the end of their leg...

                                    I work with both

                                    learn from the mistakes of others, you may not live long enough to make them all yourself...

                                    1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      Matt666
                                      last edited by

                                      Hi. I apologize for mac bugs, I have no mac to test plugins... 😠
                                      Did you see there is an option that lets you choose icons you want to display? You can hide fractional icon if you want.

                                      Frenglish at its best !
                                      My scripts

                                      1 Reply Last reply Reply Quote 0
                                      • E Offline
                                        element
                                        last edited by

                                        Useful plugin.

                                        1 Reply Last reply Reply Quote 0
                                        • P Offline
                                          pololo
                                          last edited by

                                          Useful plugin!!! Thanks!!

                                          1 Reply Last reply Reply Quote 0
                                          • P Offline
                                            Pete
                                            last edited by

                                            Matt666, thank you for the very handy plugin. I use this all the time and was wondering if I could make one request...

                                            Could you add a favorites toggle? What I mean by this is allow the user to set favorite units / precision combinations they could toggle between with one click. In my case I need to toggle CM with 0.0 precision and Inches with 1/16 precision constantly. If I could set these two as favorites and have one button that would switch between only those two I would owe you!!

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 6 / 8
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement