• Login
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 29 Apr 2008, 09:24

    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
    • S Offline
      Stinkie
      last edited by 29 Apr 2008, 09:53

      Thanks. Very handy.

      1 Reply Last reply Reply Quote 0
      • A Offline
        alz
        last edited by 29 Apr 2008, 13:37

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

        1 Reply Last reply Reply Quote 0
        • P Offline
          plot-paris
          last edited by 1 May 2008, 07:33

          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 1 May 2008, 10:21

            @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
            • J Offline
              JClements
              last edited by 1 May 2008, 14:39

              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 1 May 2008, 17:11

                it should ideally prompt in the VCB only ๐Ÿ˜„

                1 Reply Last reply Reply Quote 0
                • J Offline
                  Jim
                  last edited by 1 May 2008, 22:01

                  @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 1 May 2008, 22:03

                    @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 3 May 2008, 17:14

                      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 3 May 2008, 17:45

                        @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 3 May 2008, 18:52

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

                          1 Reply Last reply Reply Quote 0
                          • A Offline
                            AlexMozg
                            last edited by 20 May 2008, 22:14

                            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 9 Sept 2008, 13:10

                              Can this be used commercially?

                              1 Reply Last reply Reply Quote 0
                              • J Offline
                                Jim
                                last edited by 9 Sept 2008, 23:02

                                @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 10 Sept 2008, 07:57

                                  Thanks!Jim! ๐Ÿ‘

                                  1 Reply Last reply Reply Quote 0
                                  • W Offline
                                    watkins
                                    last edited by 10 Sept 2008, 13:05

                                    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 16 Sept 2008, 21:18

                                      @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 18 Sept 2008, 20:05

                                        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 18 Sept 2008, 20:33

                                          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