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

    [Plugin] Name Group on Creation

    Scheduled Pinned Locked Moved Plugins
    49 Posts 20 Posters 29.8k Views 20 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.
    • J Offline
      Jim
      last edited by Jim

      This simple script creates a Group from the selected geometry, then prompts for the group's name. Use the "Make Named Group" function from the Edit menu. Also has a context menu item.

      2010-Dec-07

      • Up to 20 Names are saved between SketchUp sessions. The names are sored ina file name Plugins/makeNamedGroups_names.txt, which can be edited using a plain-text editor - one name per line.

      This file is meant to replace the file named makeNamedGroup+.rb, if installed.

      Download
      makeNamedGroup.rb

      Hi

      1 Reply Last reply Reply Quote 0
      • StinkieS Offline
        Stinkie
        last edited by

        Thanks. Very handy.

        1 Reply Last reply Reply Quote 0
        • A Offline
          alz
          last edited by

          Nice - Thanks Jim! I've added it as my new group shortcut.

          1 Reply Last reply Reply Quote 0
          • plot-parisP Offline
            plot-paris
            last edited by

            quite handy.
            but sometimes I dont want to name a group (for example if it is just temporary). I do know nothing about programming. but is it possible to write a ruby, that lets the cursor appear within the group's name in the outliner after creation instead of popping up a new window?

            that would be the perfect solution for me...

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

              @plot-paris said:

              quite handy.
              but sometimes I dont want to name a group (for example if it is just temporary). I do know nothing about programming. but is it possible to write a ruby, that lets the cursor appear within the group's name in the outliner after creation instead of popping up a new window?

              that would be the perfect solution for me...

              Just tapping the Enter key will make the dialog go away and name the group "Group". There is no way to select the group in the outliner for editing. (At least from Ruby.)

              Hi

              1 Reply Last reply Reply Quote 0
              • JClementsJ Offline
                JClements
                last edited by

                Thanks Jim, I changed my shortcut for grouping to your script.

                Question: Is it possible to have the Input Box "remember" its last position? Sometimes the input boxes can coverup the area you are working on and I want to move them out of the way.

                John | Illustrator | Beaverton, Oregon

                1 Reply Last reply Reply Quote 0
                • A Offline
                  a4chitect
                  last edited by

                  it should ideally prompt in the VCB only 😄

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

                    @jclements said:

                    Thanks Jim, I changed my shortcut for grouping to your script.

                    Question: Is it possible to have the Input Box "remember" its last position? Sometimes the input boxes can coverup the area you are working on and I want to move them out of the way.

                    Yes, but only if I switch it to use a WebDialog. Which I will do a little later just for kicks.

                    Hi

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

                      @a4chitect said:

                      it should ideally prompt in the VCB only 😄

                      I quite like this idea - no dialog at all. I'll try this too.

                      EDIT: Unfortunately, this can't be done. Anyone guess why?

                      Hi

                      1 Reply Last reply Reply Quote 0
                      • R Offline
                        RickW
                        last edited by

                        Going strictly on (sometimes faulty) memory, I think VCB input is only available to tools.

                        RickW
                        [www.smustard.com](http://www.smustard.com)

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

                          @rickw said:

                          Going strictly on (sometimes faulty) memory, I think VCB input is only available to tools.

                          True, and also any key shortcut you hit while typing the name will exit the Tool anyway.

                          Hi

                          1 Reply Last reply Reply Quote 0
                          • A Offline
                            a4chitect
                            last edited by

                            sorry for not checking myself first... thanks for looking into it

                            1 Reply Last reply Reply Quote 0
                            • A Offline
                              AlexMozg
                              last edited by

                              Jim, thank you for a wonderful idea.
                              I edited your script and added list of the before entered values for a substitution
                              and also checking for an empty selection.
                              Jim, once again thank you.


                              Jim, I regret because published this script here.
                              I think that it is not nice for my part.

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

                                Can this be used commercially?

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

                                  @j_forrester said:

                                  Can this be used commercially?

                                  I sent you a PM.

                                  Hi

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

                                    Thanks!Jim! 👍

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

                                      Dear Jim,

                                      Could you possibly modify your script to include a toggle On/OFF icon so that the box can be made to automatically pop up when a group is created. As it stands, leaving the Entity Info box open on the screen is more convenient. The box automatically popping up would remind the user to name the group, making Outliner easier to use. The toggle OFF option would be useful for those not needing the detail.

                                      Kind regards,
                                      Bob

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

                                        @alexmozg said:

                                        Jim, thank you for a wonderful idea.
                                        I edited your script and added list of the before entered values for a substitution
                                        and also checking for an empty selection.
                                        Jim, once again thank you.


                                        Jim, I regret because published this script here.
                                        I think that it is not nice for my part.

                                        Thanks, I've included your modified version in the first post of this thread.

                                        Hi

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

                                          Dear Jim,

                                          I note that when a named group is deleted it disappears from the list in Outliner, but not from the list in makeNamedGroup+.rb.

                                          Is there any way to update/purge the list when groups are deleted?

                                          Kind regards,

                                          Bob

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

                                            Hi Bob,

                                            I'll have a look at it over the weekend, as well as your earlier message.

                                            Hi

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

                                            Advertisement