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.
    • atelierpaarA Offline
      atelierpaar
      last edited by

      your right,
      after changing the last line, everything works fine.
      thanks for your help jiminy-billy-bob

      Uli

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

        Hi all
        I needed to add extensions.rb to plugins and edit
        toolbar_manager.html
        tustrings.en
        to correct english(engeniery) to Engineering (.en)

        Now works and spells OK 👎 👎

        Thank you Matt and what do you play ?

        dtr


        OS34005.JPG

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

          Error

          1 Reply Last reply Reply Quote 0
          • H Offline
            hygicell
            last edited by

            it works ! 😍

            many, many thanks jimini-billy-bob !

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

              What do I play?

              Frenglish at its best !
              My scripts

              1 Reply Last reply Reply Quote 0
              • BoxB Online
                Box
                last edited by

                I believe he is referring to this

                @matt666 said:

                Hi Pete! Thank you for your kind words..

                i don't use SU and Ruby anymore, my new job as musician doesn't need for these kind of software! 😄
                But I love programming so I will try to do something for you..

                I just have to reinstall SU!

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

                  Aaaah! ^^ I am a drummer!

                  Frenglish at its best !
                  My scripts

                  1 Reply Last reply Reply Quote 0
                  • CadFatherC Offline
                    CadFather
                    last edited by

                    @matt666 said:

                    Aaaah! ^^ I am a drummer!

                    yeah, we know the types...bad dudes! 😆

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

                      There was a single method (arguments) error in the extension 'loader' .rb.
                      I've corrected it to method(arguments) so it is now v2014 compliant.
                      I updated it for the PluginStore entry [v3.000]...
                      http://sketchucation.com/pluginstore?pln=Matt_Toggle_Units

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        brendanherri
                        last edited by

                        Hello all,

                        I still have some troubles with this very usefull extension.
                        It also seems to be related to a UTF8 issue as you can see the error message below.
                        I have Win7 64bit pro. Any idea ?

                        Erreur de chargement du fichier C:/Users/dell/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/Matt_Toggle_Units/Toggle_Units.rb
                        Error: #<ArgumentError: invalid byte sequence in UTF-8>
                        C:/Users/dell/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/Matt_Toggle_Units/Toggle_Units.rb:16:in split' C:/Users/dell/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/Matt_Toggle_Units/Toggle_Units.rb:16:in block in module:Toggle_Units'
                        C:/Users/dell/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/Matt_Toggle_Units/Toggle_Units.rb:15:in each' C:/Users/dell/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/Matt_Toggle_Units/Toggle_Units.rb:15:in module:Toggle_Units'
                        C:/Users/dell/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/Matt_Toggle_Units/Toggle_Units.rb:5:in <module:Matt_Tools>' C:/Users/dell/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/Matt_Toggle_Units/Toggle_Units.rb:4:in <top (required)>'
                        C:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/extensions.rb:197:in require' C:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/extensions.rb:197:in load'
                        C:/Users/dell/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/Matt_Toggle_Units.rb:62:in register_extension' C:/Users/dell/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/Matt_Toggle_Units.rb:62:in <top (required)>'

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

                          The language string files haven't been encoded as UFT8 and have a silly extensions [.en, .fr]...

                          it would be simpler to use .txt so people can edit their own copies.

                          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
                          • TIGT Offline
                            TIG Moderator
                            last edited by

                            Dam' - missed it - I'll look & update asap...

                            TIG

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

                              Only the FR file was wrongly encoded as ANSI !
                              The EN one worked fine...
                              The plugin's HTML file shows NO encoding at all - which is just weird !
                              It'll be fixed and an update published shortly...
                              [mod=:3i457397]Update v3.001 with correctly encoded FR file etc now in the PluginStore.
                              .[/mod:3i457397]

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • B Offline
                                brendanherri
                                last edited by

                                Works fine !
                                Thank you TIG, you're great.
                                Merci beaucoup.

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

                                  First, this extension is incredibly valuable for me. So many thanks for it! When I find things like this I feel stupid [face palm], I didn't seek it earlier... so much time wasted!

                                  2nd on feature request for presets. For example, it would be amazing if I could have/make three:

                                  1. decimal, mm, 0mm precision (sometimes I do my detailed work or reference other models)
                                  2. decimal, in, 0.000" precision (most of the time when I'm doing detail work, this is my preference)
                                  3. architectural, 0" precision (my output presentations are almost always feet and whole inches)
                                  1 Reply Last reply Reply Quote 0
                                  • atelierpaarA Offline
                                    atelierpaar
                                    last edited by

                                    Hello
                                    I just installed SU 2019
                                    Unfortunately i get the following errocode :

                                    Fehler beim Laden der Datei C:/Users/Architekt/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/Matt_Toggle_Units/Toggle_Units.rb
                                    Error: #<SyntaxError: C:/Users/Architekt/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/Matt_Toggle_Units/Toggle_Units.rb:205: Invalid return in class/module body
                                    return if not settings.include?("tr...
                                    ^~~~~~>
                                    C:/Program Files/SketchUp/SketchUp 2019/Tools/extensions.rb:197:in require' C:/Program Files/SketchUp/SketchUp 2019/Tools/extensions.rb:197:in load'
                                    C:/Users/Architekt/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/Matt_Toggle_Units.rb:62:in register_extension' C:/Users/Architekt/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/Matt_Toggle_Units.rb:62:in <top (required)>'

                                    anyone any idee how to fix this problem ?
                                    thanks for looking into the this
                                    Uli

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

                                      The newer Ruby version is unsympathetic to coding errors !
                                      Using a plain-text editor, like Notepad++, edit the file:
                                      C:/Users/Architekt/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/Matt_Toggle_Units/Toggle_Units.rb
                                      Find line #205
                                      return if not settings.include?("true")
                                      Add an initial #
                                      #return if not settings.include?("true")
                                      Save the file and restart SketchUp, to test it...

                                      Other 'returns' in the code seem OK...

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • atelierpaarA Offline
                                        atelierpaar
                                        last edited by

                                        Hello and good morning,
                                        thanks TIG, that was it. What a difference a # makes !!
                                        Toggle_Units works fine again.
                                        thanks again for your quick reponse
                                        Uli

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

                                          @tig said:

                                          The newer Ruby version is unsympathetic to coding errors !
                                          Using a plain-text editor, like Notepad++, edit the file:
                                          C:/Users/Architekt/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/Matt_Toggle_Units/Toggle_Units.rb
                                          Find line #205
                                          return if not settings.include?("true")
                                          Add an initial #
                                          #return if not settings.include?("true")
                                          Save the file and restart SketchUp, to test it...

                                          Other 'returns' in the code seem OK...

                                          Perfect TIG thanks! it worked perfect on mac SKP2019

                                          1 Reply Last reply Reply Quote 0
                                          • S Offline
                                            sherman23
                                            last edited by

                                            Isit possible to show a tutorial process on doing the changes for Skp 2019. in a Picture format. Thanks

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

                                            Advertisement