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

    [Plugin] Make Named Group

    Scheduled Pinned Locked Moved Plugins
    25 Posts 13 Posters 24.3k Views 13 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.
    • thomthomT Offline
      thomthom
      last edited by

      @unknownuser said:

      In this order of idea: a ruby who take the name of a group (or Component) selected then create the same "Layer name" and put the group (or Component) in this new Layer named will ne fine 😄

      Untested, but this should place all groups/components into a layer based on their name.

      
      model = Sketchup.active_model
      sel = model.selection
      
      sel.each { |e|
        next unless e.is_a?(Sketchup;;Group) || e.is_a?(Sketchup;;ComponentInstance)
        model.layers.add(e.name) if model.layers[e.name].nil?
        e.layer = model.layers[e.name]
      }
      
      

      Thomas Thomassen — SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

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

        Would it be possible to put the entry from the "Edit Menu" to the context menu?

        greets din

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          I will see if I can add support for UI Manager - so you can choose. There are people who prefer not to have their context menu filled with more items. So it's not easy to get a balance. But when the user can choose then it's not an issue any more.

          Thomas Thomassen — SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

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

            Thanks for the plugin, a great idea.

            Regards,
            JGA

            Regards,
            JGA

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

              I just saw this - very useful! I started recently using groups instead of components and I'm using this wonderful plugin - http://forums.sketchucation.com/viewtopic.php?t=9318
              If there is a way to combine them into one - perfect!

              1 Reply Last reply Reply Quote 0
              • thomthomT Offline
                thomthom
                last edited by

                @dedmin said:

                I just saw this - very useful! I started recently using groups instead of components and I'm using this wonderful plugin - http://forums.sketchucation.com/viewtopic.php?t=9318
                If there is a way to combine them into one - perfect!

                Is there different functionality?

                Thomas Thomassen — SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

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

                  Clipboard01.jpg

                  1 Reply Last reply Reply Quote 0
                  • thomthomT Offline
                    thomthom
                    last edited by

                    ❓

                    Thomas Thomassen — SketchUp Monkey & Coding addict
                    List of my plugins and link to the CookieWare fund

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

                      It has a drop-down list of 20 names to choose from

                      1 Reply Last reply Reply Quote 0
                      • thomthomT Offline
                        thomthom
                        last edited by

                        That seems very specific...
                        I still don't see what combination it is you're looking for.

                        Thomas Thomassen — SketchUp Monkey & Coding addict
                        List of my plugins and link to the CookieWare fund

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

                          Your plugin plus a drop-down list for the group names. Jim's plugin allows You to write 20 most used names in a text file for later use - useful in many fields where the parts are common - furniture and the like.

                          1 Reply Last reply Reply Quote 0
                          • utilerU Offline
                            utiler
                            last edited by

                            Hey Thomas, love your plugins....
                            With this one; do you think you could have the group added to a layer of the same name? If no layer, ask the user do you want to add a layer? Would be a great timesaver.....

                            Thanks.
                            A

                            purpose/expression/purpose/....

                            1 Reply Last reply Reply Quote 0
                            • bagateloB Offline
                              bagatelo
                              last edited by

                              @utiler said:

                              Hey Thomas, love your plugins....
                              With this one; do you think you could have the group added to a layer of the same name? If no layer, ask the user do you want to add a layer? Would be a great timesaver.....

                              Thanks.
                              A

                              It would be interesting if there was a box or drop down menu where it appeared the possibility to create and now include the object in a layer with the same name.

                              Create components instead of groups might be interesting too.

                              While the cat's away, the mice will play

                              1 Reply Last reply Reply Quote 0
                              • utilerU Offline
                                utiler
                                last edited by

                                @utiler said:

                                Hey Thomas, love your plugins....
                                With this one; do you think you could have the group added to a layer of the same name? If no layer, ask the user do you want to add a layer? Would be a great timesaver.....

                                Thanks.
                                A

                                Thom?

                                purpose/expression/purpose/....

                                1 Reply Last reply Reply Quote 0
                                • G Offline
                                  Goonster
                                  last edited by

                                  Great plug in.Thanks. 😉

                                  Ive assigned G' as a shortcut to it so I don`t have to keep going to the Edit menu.

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

                                    Thanks a lot for this plugin.
                                    I would love to see this plugin "Make Named Group" in the right-click-menu.
                                    Is that possible?

                                    1 Reply Last reply Reply Quote 0
                                    • thomthomT Offline
                                      thomthom
                                      last edited by

                                      @veerlexyz said:

                                      Thanks a lot for this plugin.
                                      I would love to see this plugin "Make Named Group" in the right-click-menu.
                                      Is that possible?

                                      It is possible - but if I where to add it I'd get requests about removing it from people who want to reduce the amount of items in the context menu. Right now I don't have the time to make a UI for controlling this option.

                                      Thomas Thomassen — SketchUp Monkey & Coding addict
                                      List of my plugins and link to the CookieWare fund

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        tula1847
                                        last edited by

                                        Hello just tried to download and says the .rb file is locked. How do I unlock I have a macbook pro.
                                        Thanks

                                        1 Reply Last reply Reply Quote 0
                                        • K Offline
                                          kaas
                                          last edited by

                                          Just 'discovered' this plugin. Added an array with often used groupnames (SFB codes) which is displayed in the dropdown list instead of the layer names and this speeds up my workflow quite a bit. Many thanks for this gem Thom!

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          • First post
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement