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

    [Plugin] Rename by Layer v1.0.3

    Scheduled Pinned Locked Moved Plugins
    51 Posts 18 Posters 22.7k Views 18 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.
    • renderizaR Offline
      renderiza
      last edited by

      @jql said:

      however, I would somehow expect that components and groups on layer 0 that were nested inside a component on layer X would be renamed after layer X.

      Here is little test code that will take the subgroups that are on layer0 and name them with the parent layer name.

      model = Sketchup.active_model
      ents = model.active_entities
      groups = ents.grep(Sketchup;;Group)
      
      groups.each do |group|
        gg = group.entities.grep(Sketchup;;Group)
        gg.each do |g|
          g.name = group.layer.name
        end
      end
      

      Will see how this feature can be integrated in future update to existing code. Since other requests are already done maybe will go ahead and release them first and then add what we just mentioned. Thanks for suggestions! πŸ‘

      [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

      1 Reply Last reply Reply Quote 0
      • JQLJ Offline
        JQL
        last edited by

        Renderiza,

        I wouldn't know where to insert the code you have there... Maybe I could get there by myself, but I prefer to use what you have right now as it is, and wait for further developments on the plugin.

        I'm curious though: are you considering the idea of making a new plugin that would be based on groups instead of layers?

        Thanks and best regards,

        JQL

        www.casca.pt
        Visit us on facebook!

        1 Reply Last reply Reply Quote 0
        • renderizaR Offline
          renderiza
          last edited by

          [pre:1trtoyqg]Authors:: | Bagatelo| Renderiza |
          Plugin Name:: Rename by Layer
          Version:: 1.0.1
          Date:: 9/13/2013
          Cost:: Free[/pre:1trtoyqg]
          Rename by Layer v1.0.1 is now available for download.

          [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

          1 Reply Last reply Reply Quote 0
          • renderizaR Offline
            renderiza
            last edited by

            @jql said:

            I wouldn't know where to insert the code you have there...

            To test code I recommend using [as] Ruby Code Editor - http://extensions.sketchup.com/en/content/ruby-code-editor ... but there are other good ones as well.

            @jql said:

            I'm curious though: are you considering the idea of making a new plugin that would be based on groups instead of layers?

            I am having difficulties in picturing exactly how will it work...can you give me an example to see if I understand better?

            [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

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

              πŸ‘ πŸ‘ πŸ‘ πŸ‘

              πŸ’­ πŸ’­ πŸ’­
              rename.jpg

              1 Reply Last reply Reply Quote 0
              • JQLJ Offline
                JQL
                last edited by

                Are you real Renderiza?

                Are you peeking on my shoulder and coding while I'm writing? Are you doing it right now? Yikes!

                Let me test and I will answer!

                Thanks,

                JQL

                www.casca.pt
                Visit us on facebook!

                1 Reply Last reply Reply Quote 0
                • JQLJ Offline
                  JQL
                  last edited by

                  Ghosteriza you uncanny coder,

                  I already tested it and you nailed it! The option to write a name is awesome!

                  The only option the plugin lacks right now could be "renaming selection only". If you manage to pull it off too, then it covers everything I need for now and in the predictable future... in terms of renaming!

                  There is still some room for improvement... If you are the prefectionist it seems you are, you could some how automate/facilitate the process described in the images that follow.

                  The idea for plugin that I was talking about before was to rename groups/components, using the name of the group/components where they are nested in. When you are working inside a group called "columns" every group component inside it would be renamed to "columns - 00n" whatever the layer they would be on.

                  In other words your dialog would have a logo that would say "My name is: rename by GROUP". For me it's redundant now, but I can see some uses though. Maybe create even one more option would solve it.

                  This would pose a new problem though... your plugin would be much more than layer based naming, and you could also want to change the name of the plugin. You have a keen sense for names/renames so I bet you can figure out something funny! An image that crosses my mind would be Swiss Army Kname... πŸ˜•

                  Thanks and thanks, and get the hell out of my shoulder... It spooks me!

                  JQL


                  This is what happens when the names are cleared. Groups are sketchup standard, components get no name... perfect!


                  When renaming without numbering instances all have the same name and definitions aquire sketchup standards. Perfect! If one adds numbering, components and groups will create double names... Definition names will get a bit confusing... not so perfect but excellent nonetheless!


                  I imagine it isn't easy to automate this processes. However if one could somehow choose to rename/clear only instances names or definition names the job would be handled much easily. The options would get denser and the plugin would probably become a bit confusing... but very powerful.

                  www.casca.pt
                  Visit us on facebook!

                  1 Reply Last reply Reply Quote 0
                  • JQLJ Offline
                    JQL
                    last edited by

                    What a powerful concept! Could make me rethink the way I manage my Sketchup models...

                    Could the plugin be adapted to also have a filter for the active layer?

                    Thank you very much!

                    www.casca.pt
                    Visit us on facebook!

                    1 Reply Last reply Reply Quote 0
                    • renderizaR Offline
                      renderiza
                      last edited by

                      @jql said:

                      The only option the plugin lacks right now could be "renaming selection only".

                      Will try to add this feature for next update.

                      @jql said:

                      In other words your dialog would have a logo that would say "My name is: rename by GROUP".

                      Good idea indeed will see if I can work on it. πŸ‘

                      @jql said:

                      An image that crosses my mind would be Swiss Army Kname... πŸ˜•

                      Love it! 🀣 πŸ‘

                      @jql said:

                      However if one could somehow choose to rename/clear only instances names or definition names the job would be handled much easily.

                      Will see how that can be a feature for next update.

                      Note: By the way thanks for making me laugh! 🀣 πŸ‘

                      [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

                      1 Reply Last reply Reply Quote 0
                      • renderizaR Offline
                        renderiza
                        last edited by

                        [pre:m1n0fdbx]Authors:: | Bagatelo| Renderiza |
                        Plugin Name:: Rename by Layer
                        Version:: 1.0.2
                        Date:: 9/14/2013
                        Cost:: Free[/pre:m1n0fdbx]
                        Rename by Layer v1.0.2 is now available for download.
                        %(#909090)[Thanks to the people that contributed ideas to make the plugin better! πŸ‘]

                        [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

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

                          Very good updates. It's almost unbelievable that something like this is not already done before.

                          While the cat's away, the mice will play

                          1 Reply Last reply Reply Quote 0
                          • KrisidiousK Offline
                            Krisidious
                            last edited by

                            great idea... really great for organizing models.

                            By: Kristoff Rand
                            Home DesignerUnique House Plans

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

                              the window could be 80% smaller πŸ˜•

                              1 Reply Last reply Reply Quote 0
                              • renderizaR Offline
                                renderiza
                                last edited by

                                You can make the content smaller by pressing ( ctrl - ). What is the resolution of your screen...can I see screen capture?

                                In the future maybe collapsible tabs may help but not sure.

                                Thanks

                                [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

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

                                  It is getting really great - BIG THANKS!!
                                  Can We have an option to append the layer name or/and numbers to the existing component's/group's names?

                                  1 Reply Last reply Reply Quote 0
                                  • renderizaR Offline
                                    renderiza
                                    last edited by

                                    @dedmin said:

                                    It is getting really great - BIG THANKS!!
                                    Can We have an option to append the layer name or/and numbers to the existing component's/group's names?

                                    That is good suggestion so lets see if it can be added to next update. πŸ‘

                                    [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

                                    1 Reply Last reply Reply Quote 0
                                    • cmeedC Offline
                                      cmeed
                                      last edited by

                                      Amazing! Really Really good. A great companion to this is "Layers Panel" - photoshop layers window with nested layers. still in Beta and some wrinkles to iron out but, Like this plugin, very impressive!!

                                      All i could say on a negative - could we have a smaller window? it takes up alot of space and we know the name of it, if we lost the logo (sorry), at least i'd get back half my screen. πŸ˜†
                                      cheers for the great plugin
                                      c

                                      1 Reply Last reply Reply Quote 0
                                      • cmeedC Offline
                                        cmeed
                                        last edited by

                                        @renderiza said:

                                        You can make the content smaller by pressing ( ctrl - ). What is the resolution of your screen...can I see screen capture?

                                        In the future maybe collapsible tabs may help but not sure.

                                        Thanks

                                        I never knew this!!! Duh!

                                        c

                                        1 Reply Last reply Reply Quote 0
                                        • renderizaR Offline
                                          renderiza
                                          last edited by

                                          @cmeed said:

                                          Amazing! Really Really good. A great companion to this is "Layers Panel" - photoshop layers window with nested layers. still in Beta and some wrinkles to iron out but, Like this plugin, very impressive!!

                                          I am a big fan of "Layers Panel" and think everyone should have it...Can't recommend it enough! http://sketchucation.com/forums/viewtopic.php?p=488833#p488833

                                          @cmeed said:

                                          All i could say on a negative - could we have a smaller window? it takes up alot of space and we know the name of it, if we lost the logo (sorry), at least i'd get back half my screen. πŸ˜†

                                          Next update should have smaller windows and I agree that the logo is taking too much space.

                                          Thanks for feedback...cheers! πŸ‘

                                          [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

                                          1 Reply Last reply Reply Quote 0
                                          • renderizaR Offline
                                            renderiza
                                            last edited by

                                            [pre:2yc1rtr7]Authors:: | Bagatelo| Renderiza |
                                            Plugin Name:: Rename by Layer
                                            Version:: 1.0.3
                                            Date:: 9/17/2013
                                            Cost:: Free[/pre:2yc1rtr7]
                                            Rename by Layer v1.0.3 is now available for download.
                                            %(#909090)[What is new:

                                            • The web-dialog is smaller
                                            • Keep existing name - This will include the existing name to the newly created one. For example:
                                              Layer = bed
                                              Existing name = door
                                              Add Number = True / Prefix

                                            Result = 001 - bed - door]

                                            Again thanks for feedback! πŸ‘

                                            Note: Need to recheck "Keep existing name" feature since its not working...will try to fix it as soon. πŸ˜•

                                            [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

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

                                            Advertisement