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

    [Plugin] LordOfTheToolbars - v2.9c - 20 Dec 24

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

      Hi Fredo,
      this is a perfect tool to organize and combine the toolbar buttons. Thanks.
      I have a plugin DL light that comes itself with a dozen tool bars and each toolbar has more than 10 buttons. To not get too many entries in the vignette stripe, I put them all in one palette.
      But then it is difficult to distinguish them.
      Is there a possibility to add a text separator in a palette?
      Like this I could add a short name (e.g. original toolbar name) at the beginning of each line of buttons in the palette.
      Or instead putting an empty line between two rows of buttons, have some text.
      Kind Regards Uwe

      1 條回覆 最後回覆 回覆 引用 0
      • fredo6F 離線
        fredo6
        最後由 編輯

        You can put line breaks and separators, but not a text. You can also enlarge the size of the palette to make the icons more distinguishable.

        You could also create custom commands with a specific icon (doing nothing special by themselves) and use them at the beginning of a line break to indicate the family of icons of the DL Light toolbars.

        Last possibility: ask the author of DL Light to make icons more distinguishable at reasonable pixel size.

        1 條回覆 最後回覆 回覆 引用 0
        • uwesketchU 離線
          uwesketch
          最後由 編輯

          Ok, clear: Palettes may only contain buttons with icons by design.

          What I like, is that if a plugin is deactivated/disabled in EM, that then the Icons in the palettes are still visible.
          Therefor I wonder, if it would be possible, that in case a Plugin is disabled, you would add an option in the context menu of the button in the palette that allows me to activate the related plugin (either temporary or permanent).
          Like this I could deactivate most plugins and activate them only when needed - right from the LOTT palette with a single click.

          While playing around, I figured, that when activating any Fredo Plugin in the EM, I get an error:
          Error when activating a Fredo Plugin

          1 條回覆 最後回覆 回覆 引用 0
          • fredo6F 離線
            fredo6
            最後由 編輯

            If a plugin is deactivated in the Plugin Manager, it may require a restart of Sketchup to be loaded. This is the case of some of my plugins, because of menus and dependencies with LibFredo6 (hence the message).

            However, there is no hurt in loading plugins, whether used or not. My plugins just loads the minimum to appear in menu and toolbars. The rest of the code is loaded on the fly at first utilisation.

            1 條回覆 最後回覆 回覆 引用 0
            • uwesketchU 離線
              uwesketch
              最後由 編輯

              These messages are not really user friendly, but also not a killer.

              Using LOTT, it means for me, I do not need additional toolbars in Sketchup. Only LOTT palettes.
              As the plugin buttons are already „registered“ in the palettes, I do not need the sketchup toolbars to be loaded, when enabling a plugin.
              LOTT should just enable the greyed out button in the palette as soon as a plugin gets enabled.

              For example, when enabling the plugin „Eneroth Reference manager“, the Sketchup toolbar and menu entries get created without restating Sketchup. But the buttons in the palette stay greyed out. This is not nice.

              The reason why I do not enable all installed plugins is that Sketchup starts much quicker without.

              1 條回覆 最後回覆 回覆 引用 0
              • R 離線
                rv1974
                最後由 編輯

                Thanks to LOTT transition to 2023 took seconds 👍
                BTW at last 2023 contains users shortcuts in the search

                1 條回覆 最後回覆 回覆 引用 0
                • L 離線
                  laurent002
                  最後由 編輯

                  Bonjour,
                  Je viens d'essayer sketchup 2023, mais il semble que l'on ne peut avoir accès dans master toolbar manager aux menus, ce qui empêche de créer les icons et les toolbar.

                  Merci
                  Bonne journée à vous

                  1 條回覆 最後回覆 回覆 引用 0
                  • fredo6F 離線
                    fredo6
                    最後由 編輯

                    @laurent002 said:

                    Je viens d'essayer sketchup 2023, mais il semble que l'on ne peut avoir accès dans master toolbar manager aux menus, ce qui empêche de créer les icons et les toolbar.

                    Yes. For the Windows version, I had to remove everything related to Menus, as well as the Clean Screen feature... This is due to the new GUI framework that comes with SU2023.

                    1 條回覆 最後回覆 回覆 引用 0
                    • G 離線
                      Gordon McLaren
                      最後由 編輯

                      Hi Fredo,
                      Thank you for all the fantastic work you do.
                      I use the "Personal Command Menu" often and would definitely like to see it working again. Are you able to re-write the part of your script that references the "GUI framework"?
                      This would be very much appreciated.
                      Kind regards,
                      Gordon

                      1 條回覆 最後回覆 回覆 引用 0
                      • fredo6F 離線
                        fredo6
                        最後由 編輯

                        @gordon mclaren said:

                        Are you able to re-write the part of your script that references the "GUI framework"?

                        Nope. The new GUI framework precisely allows no access to menus any longer, even with hacking.

                        1 條回覆 最後回覆 回覆 引用 0
                        • panixiaP 離線
                          panixia
                          最後由 編輯

                          @gordon mclaren said:

                          I use the "Personal Command Menu" often and would definitely like to see it working again.

                          I have a workaround for this.
                          Assign some weird shortcut to your menu item (I say "weird" because maybe you don't want to waste some available handy keyboard shortcut for this).
                          Then create a ruby script button and type in the following:

                          shell = WIN32OLE;;new("WScript.Shell")
                          shell.SendKeys "InsertYourWeirdSendkeyShortcutHere"
                          
                          

                          Insert your shortcut between quotes using the "Microsoft sendkeys" syntax, you can find the reference at this link:

                          Link Preview Image
                          SendKeys statement (VBA)

                          Office VBA reference topic

                          favicon

                          (learn.microsoft.com)

                          Here's an example.. this one would be equivalent to press "Ctrl+Shift+ALt+F11" each time you push hit the toolbar button.

                          SendKeysShortchut.JPG

                          1 條回覆 最後回覆 回覆 引用 0
                          • K 離線
                            kaas
                            最後由 編輯

                            @panixia said:

                            ..I have a workaround for this....

                            shell = WIN32OLE;;new("WScript.Shell")
                            > shell.SendKeys "InsertYourWeirdSendkeyShortcutHere"
                            > 
                            

                            Just be aware that this fix won't last forever. I'm using it in one of my plugins and SU2022 is already warning me it will be deprecated in a next version of Ruby.

                            1 條回覆 最後回覆 回覆 引用 0
                            • panixiaP 離線
                              panixia
                              最後由 編輯

                              @kaas said:

                              Just be aware that this fix won't last forever. I'm using it in one of my plugins and SU2022 is already warning me it will be deprecated in a next version of Ruby.

                              Well, I'm not a developer so I don't know a lot about this.. I've just found this snippet long ago to make it work with the old "Toolbar Editor" plugin.
                              Actually I don't need this that much right now, because I still use 2021 with classic perpetual license and LOTT works like a charm in SU21.
                              By the way I tested this in 2023 and it works 100% for now.
                              Maybe in future Ruby version this will be replaced with some different syntax to handle Sendkeys ❓

                              1 條回覆 最後回覆 回覆 引用 0
                              • G 離線
                                Gordon McLaren
                                最後由 編輯

                                Thanks for all the suggestions/workarounds, I will give them a try.

                                1 條回覆 最後回覆 回覆 引用 0
                                • R 離線
                                  rv1974
                                  最後由 編輯

                                  @Fredo is implementing of multiple key shortcuts is possible via plugin? A-la Revit, for example - EP for 'edit profile builder's path'?

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • G 離線
                                    Gordon McLaren
                                    最後由 編輯

                                    @Panixia - Thanks once again for the work-around, I have implemented it and it works like a charm.

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • panixiaP 離線
                                      panixia
                                      最後由 編輯

                                      Glad that it helped 😄

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • A 離線
                                        AISmebel
                                        最後由 編輯

                                        @panixia said:

                                        @gordon mclaren said:

                                        I use the "Personal Command Menu" often and would definitely like to see it working again.

                                        I have a workaround for this.
                                        Assign some weird shortcut to your menu item (I say "weird" because maybe you don't want to waste some available handy keyboard shortcut for this).
                                        Then create a ruby script button and type in the following:

                                        shell = WIN32OLE;;new("WScript.Shell")
                                        > shell.SendKeys "InsertYourWeirdSendkeyShortcutHere"
                                        > 
                                        

                                        Insert your shortcut between quotes using the "Microsoft sendkeys" syntax, you can find the reference at this link:

                                        Link Preview Image
                                        SendKeys statement (VBA)

                                        Office VBA reference topic

                                        favicon

                                        (learn.microsoft.com)

                                        Here's an example.. this one would be equivalent to press "Ctrl+Shift+Alt+F11" each time you hit the toolbar button.

                                        [attachment=0:16wbl6tz]<!-- ia0 -->SendKeysShortchut.JPG<!-- ia0 -->[/attachment:16wbl6tz]

                                        Hi. I could not figure out your instructions on how to restore the tools from the "Menu" ((
                                        Maybe write in more detail? Thank you in advance.

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • panixiaP 離線
                                          panixia
                                          最後由 編輯

                                          @aismebel said:

                                          Hi. I could not figure out your instructions on how to restore the tools from the "Menu" ((
                                          Maybe write in more detail? Thank you in advance.

                                          I wrote exactly the more detailed description I can think of.
                                          Is actually the "step by step" explaination and I also added the code you need and the reference page for the syntax you should use to recall your shortcuts from SendKeys.

                                          Please notice that this DOES NOT restore the "menu button" functionality of LOTT in SU23.
                                          This is just a workaround to create a ruby script button in LOTT that can mimic the missing "menu button" feature.
                                          The ruby script just invokes a shortcut when you hit the toolbar button.
                                          You need to assign that shortcut (to the menu item you want to create a button for) before creating the button itself.

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • L 離線
                                            laurent002
                                            最後由 編輯

                                            Bonjour,
                                            J'ai installé LordOfTheToolbars sur la version 2023, mais il semble qu'il ne trouve pas le chemin pour accéder aux menus, y a-t-il une procédure manuel pour lui indiquer le chemin ? Il semble que je n'ai pas trouvé comment faire. Du coup je me suis remis à la version 2022 faute de pouvoir retrouver mon organisation fonctionnel. Faut-il attendre une mise à jour ou est-ce qu'il y a un moyen de rendre fonctionnel l'accès aux menus.
                                            Merci

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 12
                                            • 13
                                            • 14
                                            • 15
                                            • 16
                                            • 22
                                            • 23
                                            • 14 / 23
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement