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
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • CadFatherC 離線
      CadFather
      最後由 編輯

      some icons - not great, will work more..

      tu.png


      16 GIF.rar


      24 GIF.rar

      1 條回覆 最後回覆 回覆 引用 0
      • C 離線
        cornel
        最後由 編輯

        Many thanks, Matt!
        For me it’s a considerable tool – I work very often w/ different unit formats on the same dwgs.

        Best regards,
        Cornel

        1 條回覆 最後回覆 回覆 引用 0
        • Didier BurD 離線
          Didier Bur
          最後由 編輯

          Matt,
          STP remplace "unity" par "unit" dans le script. Unity veut dire à peu près "unification". 😉

          DB

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

            @CadFather, Thank you ! Could you post them in png format, please ?

            @didier said:

            STP remplace "unity" par "unit" dans le script. Unity veut dire à peu près "unification".

            😳 🤣 Vive mon anglais désastreux !

            You're welcome Cornel !! 😉

            Frenglish at its best !
            My scripts

            1 條回覆 最後回覆 回覆 引用 0
            • CadFatherC 離線
              CadFather
              最後由 編輯

              ..they do need touching up, but here they are


              16&24 PNG.rar

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

                The 9 icons script has been updated with new icons on the script post. Please try it Edson !

                Thank you CadFather !!

                Frenglish at its best !
                My scripts

                1 條回覆 最後回覆 回覆 引用 0
                • EdsonE 離線
                  Edson
                  最後由 編輯

                  @matt666 said:

                  The 9 icons script has been updated with new icons on the script post. Please try it Edson !

                  no change, matt. still not working on mac. i click on the icons and nothing changes; it keeps the unit set through model info-->units.

                  edson mahfuz, architect| porto alegre • brasil
                  http://www.mahfuz.arq.br

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

                    Aaaargh ! I don't understand 😮 😮 😮 😞 😞

                    I need some help... I will ask others french scripters 😉 ! THERE IS A SOLUTION !!

                    Frenglish at its best !
                    My scripts

                    1 條回覆 最後回覆 回覆 引用 0
                    • CadFatherC 離線
                      CadFather
                      最後由 編輯

                      anyone else on mac having the same problem?

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

                        very good!thanks.

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

                          Can someone test this last one on Mac, please ?

                          Frenglish at its best !
                          My scripts

                          1 條回覆 最後回覆 回覆 引用 0
                          • EdsonE 離線
                            Edson
                            最後由 編輯

                            still not working on my mac. nothing changes after i click on any icon. and btw, the meter icon is not showing.


                            Picture 16.png

                            edson mahfuz, architect| porto alegre • brasil
                            http://www.mahfuz.arq.br

                            1 條回覆 最後回覆 回覆 引用 0
                            • CadFatherC 離線
                              CadFather
                              最後由 編輯

                              ..on pc that happens only if fractional or engineering is selected - once i click on decimal (from the toggle units icons) all icons become selectable and everything works..

                              i think we really need some 'certified mac testers'.. (or they may be left behind) 😉

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

                                +1 for certified mac testers!
                                Sorry Edson for that and thank you so much to loose some time for script testing ! 😄

                                Frenglish at its best !
                                My scripts

                                1 條回覆 最後回覆 回覆 引用 0
                                • EdsonE 離線
                                  Edson
                                  最後由 編輯

                                  @matt666 said:

                                  +1 for certified mac testers!
                                  Sorry Edson for that and thank you so much to loose some time for script testing ! 😄

                                  no problem, matt. it is a pleasure to be of help. could you be more specific as to which is the build to be tested? i looked at the first post of this thread and saw nothing different there.

                                  edson mahfuz, architect| porto alegre • brasil
                                  http://www.mahfuz.arq.br

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

                                    Yep! On Fedo6 advices, I changed the way that script called preferences units...
                                    So we have to try some things...
                                    Open your ruby console, copy and paste code below and can you show me the result please ?

                                    toggle_units(1)
                                    

                                    And

                                    Sketchup.active_model.options["UnitsOptions"]["LengthUnit"]
                                    

                                    And

                                    var = Sketchup.active_model.options["UnitsOptions"];var["LengthUnit"]= 4
                                    

                                    And this one (can you replace "VAR" by result of the last code entered, please ?

                                    toggle_units_validation_proc(<VAR>)
                                    

                                    Another thing : When does error message appears? While start of SU? After clicking on an icon?

                                    Sorry for all these tests, but it's necessary if I want to find the problem!
                                    Thank you Edson!

                                    Frenglish at its best !
                                    My scripts

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • EdsonE 離線
                                      Edson
                                      最後由 編輯

                                      matt,

                                      do no be sorry. just keep the tests coming.

                                      see the results in the attached picture. i do not get any error messages. it just does not change units.

                                      cheers.


                                      Picture 18.png

                                      edson mahfuz, architect| porto alegre • brasil
                                      http://www.mahfuz.arq.br

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

                                        😲 toggle_units(1) works!! Try toggle_units(1), toggle_units(2), toggle_units(3) etc... And take a look in the units window (Windows->Model info->Units), normally drawing unit changes...
                                        So I will post an update soon with toolbar code changed! Thank you Edson !

                                        Frenglish at its best !
                                        My scripts

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

                                          @edson said:

                                          no change, matt. still not working on mac. i click on the icons and nothing changes; it keeps the unit set through model info-->units.

                                          Hi !
                                          I go back on this plugin, with another attempt for Mac users. Edson, Can you try please? 😉

                                          EDIT1 : One other (And I hope the last !) update!


                                          toggle_units.zip

                                          Frenglish at its best !
                                          My scripts

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

                                            Ok, I've finished this update! Can you try it, Edson, please? Thank you!

                                            Frenglish at its best !
                                            My scripts

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

                                            Advertisement