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

    [Plugin] Toggle Units

    已排程 已置頂 已鎖定 已移動 Plugins
    159 貼文 47 Posters 116.5k 瀏覽 47 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • B 離線
      brendanherri
      最後由 編輯

      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 條回覆 最後回覆 回覆 引用 0
      • D 離線
        driven
        最後由 編輯

        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 條回覆 最後回覆 回覆 引用 0
        • TIGT 離線
          TIG Moderator
          最後由 編輯

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

          TIG

          1 條回覆 最後回覆 回覆 引用 0
          • TIGT 離線
            TIG Moderator
            最後由 編輯

            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 條回覆 最後回覆 回覆 引用 0
            • B 離線
              brendanherri
              最後由 編輯

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

              1 條回覆 最後回覆 回覆 引用 0
              • J 離線
                jimmylomax
                最後由 編輯

                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 條回覆 最後回覆 回覆 引用 0
                • atelierpaarA 離線
                  atelierpaar
                  最後由 編輯

                  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 條回覆 最後回覆 回覆 引用 0
                  • TIGT 離線
                    TIG Moderator
                    最後由 編輯

                    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 條回覆 最後回覆 回覆 引用 0
                    • atelierpaarA 離線
                      atelierpaar
                      最後由 編輯

                      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 條回覆 最後回覆 回覆 引用 0
                      • W 離線
                        wrc86
                        最後由 編輯

                        @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 條回覆 最後回覆 回覆 引用 0
                        • S 離線
                          sherman23
                          最後由 編輯

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

                          1 條回覆 最後回覆 回覆 引用 0
                          • S 離線
                            samyell77
                            最後由 編輯

                            @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...

                            Amazing - thanks TIG!!! (and Matt666 for the original). Was really panicking as I couldn't find an alternative to this, really great to get it working on 2019!

                            Thanks

                            SU Pro 2016
                            Dell Precision M4800
                            PC Windows 10
                            Intel Core i7-4900MQ @ 2.80ghz
                            Nvidia Quadro K2100M
                            16gb RAM

                            1 條回覆 最後回覆 回覆 引用 0
                            • TIGT 離線
                              TIG Moderator
                              最後由 編輯

                              @sherman23 said:

                              Is it possible to show a tutorial process on doing the changes for Skp 2019. in a Picture format. Thanks
                              It really is a very simple editing process.

                              On a PC:
                              Using a plain-text editor, like Notepad++, edit the file:
                              C:/Users/YOUR_USER_NAME/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/Matt_Toggle_Units/Toggle_Units.rb
                              Note that folders in the user's AppData tree are hidden by default, but you can use the full-path text to the Plugins folder, pasted into a Windows Explorer window to open that location, then find the Matt_Toggle_Units subfolder, and RB file in there to edit.
                              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...

                              On a MAC:
                              Using a plain-text editor, like TextWrangler, edit the file:
                              The RB file's location is different on a MAC - it's actually easier to find the RB file in the SketchUp/Plugins Matt_Toggle_Units subfolder...
                              The subsequent editing & saving etc is the same...

                              Both of the text-editors are free and easy to install...

                              Tip: To open your Plugins folder directly - in SketchUp open the Ruby Console and paste this text:
                              UI.openURL("file:///#{Sketchup.find_support_file('Plugins')}")

                              • <enter>...

                              TIG

                              1 條回覆 最後回覆 回覆 引用 0
                              • M 離線
                                Makki
                                最後由 編輯

                                Hello Matt666
                                Love this extension very handy for changing digits from meter to millimeter
                                and visa versa. To see cubic meters in meters and not in millimeters in
                                ,,Entity Info,, and so on.
                                I'm now using Pro 2019 and it doesn't seem to be compatibel.
                                Any chance for an updated version soon 😄
                                Greetings Makki

                                1 條回覆 最後回覆 回覆 引用 0
                                • E 離線
                                  erom
                                  最後由 編輯

                                  Hello, I encounter several problème and I can not run properly this plugin on SU 2019 on my mac: it lacks the unit mm! And that's the unit I use the most.
                                  No mm icon

                                  Here are the different ways I tried:

                                  • I downloaded the version of Blajnov. But I have an error message when I install it.
                                    error message

                                  -I installed the original version with the sketchucation plugin and tried to edit the toggleunits.rb. But I can not find the line "return if not settings.include? (" True ")" with TextEdit

                                  • I tried installing TextWrangler to edit the file. But this software no longer works with Mojave.

                                  Can you help me? Or send me a rbz file that works?

                                  Thank you so much.

                                  Gildas

                                  c'est pas un truc juste, c'est juste un truc!

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • TIGT 離線
                                    TIG Moderator
                                    最後由 編輯

                                    Sorry for the confusion !
                                    My mistake - I thought the recent ZIP file's author had packaged all of the files properly !
                                    It will mess things up if it's made into an RBZ and installed !
                                    If you have done so, then please open your Plugins folder and delete the following things - if they are incorrectly added into there - toggle_units_icons [folder], toggle_units.rb [file] and toggle_units.strings [file]...
                                    To open your Plugins folder directly - in SketchUp open the Ruby Console and paste this text:
                                    UI.openURL("file:///#{Sketchup.find_support_file('Plugins')}")

                                    • <enter>...

                                    I've deleted the post with that problem ZIP, simply to avoid any future confusion...

                                    I've now personally updated this tool's files to be compatible with all SketchUp verisons !
                                    I've also signed its RBZ for all Loading Policies compatibility...

                                    Please install the latest RBZ, which is now available from the PluginStore - v3.002:
                                    it should now be compatible with ALL current SketchUp versions...
                                    https://sketchucation.com/pluginstore?pln=Matt_Toggle_Units

                                    TIG

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • E 離線
                                      erom
                                      最後由 編輯

                                      TIG, Thank you very much for your effort.
                                      But I still can not install the plugin.
                                      I uninstalled it from Extention Manager.
                                      And I went to the library folder to check if the 3 files indicated were deleted.
                                      Then installed v 3.002 from Sketchucation store
                                      Then leave and relaunch sketchup.
                                      And I have this message at the opening of sketchup:
                                      Load Error.png

                                      Sorry for my incompetence. Thank you very much for yours.
                                      Gildas

                                      c'est pas un truc juste, c'est juste un truc!

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • TIGT 離線
                                        TIG Moderator
                                        最後由 編輯

                                        The incompetence is mine!
                                        Somehow that old failing file sneaked into the latest RBZ...
                                        I've re-updated the RBZ, so please re-download and reinstall it.
                                        Restart SketchUp and it should work properly now !
                                        https://sketchucation.com/pluginstore?pln=Matt_Toggle_Units

                                        TIG

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • E 離線
                                          erom
                                          最後由 編輯

                                          Great ! thank you very much Tig 😄
                                          Now it works perfectly

                                          c'est pas un truc juste, c'est juste un truc!

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 6
                                          • 7
                                          • 8
                                          • 8 / 8
                                          • 第一個貼文
                                            最後的貼文
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement