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.
    • CadFatherC Offline
      CadFather
      last edited by

      sorry.. 😳 i meant plugins folder of course..

      if the path is right the icons should show up

      1 Reply Last reply Reply Quote 0
      • R Offline
        RootlessAgrarian
        last edited by

        @cadfather said:

        sorry.. 😳 i meant plugins folder of course..

        if the path is right the icons should show up

        as I say I do not speak Ruby, but I used to be extremely literate in Tcl/Tk and the syntax is not completely alien. I have tried various things, even using the full pathname. other .rb scripts are correctly finding their icons w/rel pathname starting at 'plugins', but this one for some reason is not. mysterious! I've looked for some initialisation that might set the default path, etc -- no luck so far. must be a very silly coding error that I can't see because I'm so unfamiliar with Ruby apps.

        checked the obvious like protection bits on subdir and images, checked that they really are .pngs, checked that they are not empty files, etc. baffled.

        oh well. something to fool with when I've nothing more urgent to do πŸ˜„

        Nothing is 'mere'. -- Richard Feynman

        1 Reply Last reply Reply Quote 0
        • V Offline
          vidy
          last edited by

          Have the same problem here also, the function was working perfectly, but the icon are invisible.. need some advice, please...

          thanks,

          still so much to learn..

          1 Reply Last reply Reply Quote 0
          • C Offline
            chrisjk
            last edited by

            What versions of Mac OSX are you running? I have Snow Leopard and the icons do show up for me. You might need to check View>Tool Palettes>Toggle Units to see them.

            Chris

            1 Reply Last reply Reply Quote 0
            • V Offline
              vidy
              last edited by

              im using xp sp2, and su 7.1, the tool actually already perfectly functional, just the icon not showed up..
              already try to change the address on the script, but it still not working. πŸ˜’

              still so much to learn..

              1 Reply Last reply Reply Quote 0
              • W Offline
                watkins
                last edited by

                Just tried installing Toggle Units into my SU8 plugin folder, and found that the icons won't show up. Is this a known problem for SU8? If so, does anyone have a fix?

                Kind regards,
                Bob

                1 Reply Last reply Reply Quote 0
                • TIGT Offline
                  TIG Moderator
                  last edited by

                  When you extracted the contents of the zip file you should have got a file called toggle_units.rb and a folder called toggle_units_icons which contains 24 png files to make the various buttons.
                  The file and the folder both go into your Plugins folder.
                  If you have copied the rb file from v7 into v8 you must also copy the whole folder and its files too... πŸ˜•

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • W Offline
                    watkins
                    last edited by

                    Dear All,

                    Okay, Toggle Units is now working in V8, but only after installing the version posted by 'blajnov' (page 6 of this thread, and near the top).

                    Kind regards,
                    Bob

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

                      Not wanting to discourage the development of great tools such as this, I can't help wonder why, so far down the line in sketchup development, you can't have one preference for modelling units and a different one for the value readout of say... areas, dimensions etc etc... CAD software has been doing this since day one...

                      At the moment I model in millimeters and require dimensions and areas in meters... I've used this tool since it pretty much came but why don't the skp developers integrate this into the preferences / model info units interface...???

                      Either way thanks for a great tool! πŸ‘

                      Dave

                      1 Reply Last reply Reply Quote 0
                      • V Offline
                        vidy
                        last edited by

                        @watkins said:

                        Dear All,

                        Okay, Toggle Units is now working in V8, but only after installing the version posted by 'blajnov' (page 6 of this thread, and near the top).

                        Kind regards,
                        Bob

                        dear bob,
                        do you have the icon showed up on v.8?

                        still so much to learn..

                        1 Reply Last reply Reply Quote 0
                        • W Offline
                          watkins
                          last edited by

                          Dear Vidy,

                          Yes I do, and I have checked all the functions and they work. It would be very useful if someone could update the first posting with the V8 compatible plugin.

                          Regards,
                          Bob

                          1 Reply Last reply Reply Quote 0
                          • TIGT Offline
                            TIG Moderator
                            last edited by

                            I have updated the first post in the thread http://forums.sketchucation.com/viewtopic.php?p=81391#p81391
                            Please use the new 'bold' version which is v6/7/8... friendly - I left the old one BUT I don't recommend that version at all...

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • V Offline
                              vidy
                              last edited by

                              thanks bob and tig, now it works perfectly

                              still so much to learn..

                              1 Reply Last reply Reply Quote 0
                              • Dave RD Offline
                                Dave R
                                last edited by

                                TIG,

                                I just installed the latest version but I am getting the blank toolbar. In looking through the script I see what looks like the path to the PNGs shown as below. The icon folder is called "toggle_units_icons" but I wonder if it or the script should be modified. Or maybe I'm looking in the wrong place and have a different problem.

                                cmd = UI;;Command.new(Strings["Decimal"]) { toggle_units(5) }
                                cmd.small_icon = "CD_ICONS/TWEAK/tudec16.png"
                                cmd.large_icon = "CD_ICONS/TWEAK/tudec24.png"
                                	    
                                
                                

                                Etaoin Shrdlu

                                %

                                (THERE'S NO PLACE LIKE)

                                G28 X0.0 Y0.0 Z0.0

                                M30

                                %

                                1 Reply Last reply Reply Quote 0
                                • TIGT Offline
                                  TIG Moderator
                                  last edited by

                                  @dave r said:

                                  TIG,

                                  I just installed the latest version but I am getting the blank toolbar. In looking through the script I see what looks like the path to the PNGs shown as below. The icon folder is called "toggle_units_icons" but I wonder if it or the script should be modified. Or maybe I'm looking in the wrong place and have a different problem.

                                  cmd = UI;;Command.new(Strings["Decimal"]) { toggle_units(5) }
                                  > cmd.small_icon = "CD_ICONS/TWEAK/tudec16.png"
                                  > cmd.large_icon = "CD_ICONS/TWEAK/tudec24.png"
                                  > 	    
                                  > 
                                  

                                  You are right πŸ˜’ - I copied the files over without looking at then [I didn't use this tool at all]
                                  I've now updated the zip http://forums.sketchucation.com/viewtopic.php?p=81391#p81391 so that it has the correct folder specified for the icons !

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • Dave RD Offline
                                    Dave R
                                    last edited by

                                    Thank you, TIG. I'm amazed that I sorted out the problem correctly. I must be learning from watching you.

                                    Etaoin Shrdlu

                                    %

                                    (THERE'S NO PLACE LIKE)

                                    G28 X0.0 Y0.0 Z0.0

                                    M30

                                    %

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

                                      Hi all.
                                      Sorry for my absence, for now I don't often use SU. Thank you TIG to be here... 😳

                                      Frenglish at its best !
                                      My scripts

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

                                        [floatr:2nr8pix2][/floatr:2nr8pix2]Great Plugin Matt. Works great for me. Thank You.

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

                                          Hi all.
                                          Plugin updated with a new tool (Toolbar manager): You can now choose icons you want to display in the toolbar.
                                          Thanks to Thomthom and TIG!

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

                                          Frenglish at its best !
                                          My scripts

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

                                            Do not hesitate to tell me if something goes wrong... I'm new with HTML and JAVASCRIPT...

                                            Frenglish at its best !
                                            My scripts

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

                                            Advertisement