sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Can we select by layer?

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    10 Posts 6 Posters 14.1k Views 6 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.
    • T Offline
      troyhome
      last edited by

      I hope this is a doh! moment, but is there a way to simply select everything on a given layer?

      IOviz.com
      SU Pro 2024 PC

      1 Reply Last reply Reply Quote 0
      • takesh hT Offline
        takesh h
        last edited by

        Not with native SU tools, but with Didier's Layer manager, it's possible.
        Try [Select/Deselect layer content] tool of Layer manager.

        1 Reply Last reply Reply Quote 0
        • honoluludesktopH Offline
          honoluludesktop
          last edited by

          Perhaps I don't understand the question, but why can't you simply turn off the layers you do not want to see, then work with whats left? This works unless the entities are part of a component. In that case you edit component, then turn the unaffected layers off.

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            It is built-in. Select an Object on the required Layer. Right-click and in the Context-Menu near the top is Select... Pop this out and there' Select all on Same Layer... All active Objects on that Layer are Selected.

            TIG

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

              @honoluludesktop said:

              Perhaps I don't understand the question, but why can't you simply turn off the layers you do not want to see, then work with whats left? This works unless the entities are part of a component. In that case you edit component, then turn the unaffected layers off.

              This worked- of course!!!
              You can't select by layer unless you're in an active group or component, and all my objects were groups or components. I'll have to give a look at Layer Manager!
              Thanks all

              IOviz.com
              SU Pro 2024 PC

              1 Reply Last reply Reply Quote 0
              • TIGT Offline
                TIG Moderator
                last edited by

                After you have selected all of the objects on the same layer [even if they are in different entities sets], what are you going to do with them ?

                assume the model is defined as 'model' and the layer is 'layer'

                ss=model.selection
                ss.clear
                model.entities.each{|e|ss.add e if e.layer==layer}
                model.definitions.each{|d|d.entities.each{|e|ss.add e if e.layer==layer}}

                ALL entities on 'layer' are now 'selected'...

                NOW what will you do ?

                TIG

                1 Reply Last reply Reply Quote 0
                • takesh hT Offline
                  takesh h
                  last edited by

                  @tig said:

                  It is built-in. Select an Object on the required Layer. Right-click...

                  Yes and No, because [Select by right-click context menu] works only on a free single entity (such as an edge or face), not a group or a component. And it goes against the golden rule of SU "all free entities should be in Layer 0".
                  However, once invoked, the function selects groups and components as well as free entities.
                  So if you don't mind going over trouble of changing the layer of a free entity for the sake of the function, yes, it could work.

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

                    @troyhome said:

                    I hope this is a doh! moment, but is there a way to simply select everything on a given layer?

                    I came to the conclusion i needed such a plugin too

                    i didn't find anything simple already made

                    so i made it (in a simple way)

                    the plugin writes the answer of the prompt in a text file to recall it for the following prompt (some people might not like it)

                    and it would be much better to have a popup window to choose among the layer you want to select instead of having to type it (but it is complicated and i don't know how to do that)

                    but, here is the simple plugin


                    select by layer

                    1 Reply Last reply Reply Quote 0
                    • jiminy-billy-bobJ Offline
                      jiminy-billy-bob
                      last edited by

                      @glro said:

                      I came to the conclusion i needed such a plugin too
                      i didn't find anything simple already made

                      Layers Panel does that :
                      http://sketchucation.com/plugin/751-layers_panel

                      25% off Skatter for SketchUcation Premium Members

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

                        @jiminy-billy-bob said:

                        @glro said:

                        I came to the conclusion i needed such a plugin too
                        i didn't find anything simple already made

                        Layers Panel does that :
                        http://sketchucation.com/plugin/751-layers_panel

                        yes, i tried
                        but it doesn't work on my computer

                        bug related to IE v11, it seems...

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

                        Advertisement