sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Subgroups To Layer

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    10 Posts 5 Posters 234 Views 5 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.
    • H Offline
      harnstein
      last edited by harnstein

      Hi,

      I leave all geometry on layer 0 and just put groups to layers (as i learned that last time)
      but i need to put subgroups of groups / components to a specific layer as well..

      Any advice?

      Maybe i'm just too blind to see πŸ˜‰

      still sketchin'

      1 Reply Last reply Reply Quote 0
      • GaieusG Offline
        Gaieus
        last edited by

        Those are fine. As long as all your primitive geometry is on Layer0, put anything else where you wish.

        Gai...

        1 Reply Last reply Reply Quote 0
        • H Offline
          harnstein
          last edited by

          I have lots of subgroups and subsubgroups in my groups which need to be on the same layer as the "top-group" layer.

          Any way to achieve that? It's a killing task to do it by hand with outliner..

          still sketchin'

          1 Reply Last reply Reply Quote 0
          • H Offline
            harnstein
            last edited by

            No idea yet? πŸ˜„

            It would really be important for the export of my project.

            All objects are only imported onto a layer each object is placed on.

            Eg. a group with five subgroups is on layer 1. But each subgroup is still on layer 0. The imported result would be that all objects are on layer 0 still...

            Things like this always happen when it's getting time critical.. πŸ˜‰ i'd be really thankful for any tip.

            still sketchin'

            1 Reply Last reply Reply Quote 0
            • gillesG Offline
              gilles
              last edited by

              Select group(s) component(s),open entity info and choose or create a layer.

              " c'est curieux chez les marins ce besoin de faire des phrases "

              1 Reply Last reply Reply Quote 0
              • H Offline
                harnstein
                last edited by

                Thanks gilles,

                i know,

                but there are too many groups within these groups to do it "by hand"..

                I did it for some groups with outliner but that's not really a solution.

                still sketchin'

                1 Reply Last reply Reply Quote 0
                • gillesG Offline
                  gilles
                  last edited by

                  This could be helpful:
                  http://forums.sketchucation.com/viewtopic.php?t=14975#p114380
                  The best way is to select the layer in entity info as you create the group but maybe it's to late.

                  " c'est curieux chez les marins ce besoin de faire des phrases "

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

                    Copy-paste this one-liner into the Ruby-Console +<enter>.
                    It changes nested groups' layer to be that of their container.

                    m=Sketchup.active_model;m.start_operation("S2L");m.definitions.to_a.reverse.each{|d|next unless d.group?;d.instances.each{|i|next if i.parent==m||!i.parent.group?;i.make_unique if d.instances[1];i.parent.instances[0].make_unique if i.parent.instances[1];i.layer=i.parent.instances[0].layer}};m.commit_operation
                    

                    With deep nesting it might need running more than once. It's one step undo-able. If a group is inside a definition it can't take a layer as there might be several instances on different layers so how might we know ? However, if it's inside a group then it uses the layer of that group, after making it unique if necessary.

                    TIG

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

                      Why do you need the subgroups to be on a layer if their top group is on that layer. Turning off the visibility of the top group's layer will have the same impact whether the subgroups are on that layer or not.

                      Etaoin Shrdlu

                      %

                      (THERE'S NO PLACE LIKE)

                      G28 X0.0 Y0.0 Z0.0

                      M30

                      %

                      1 Reply Last reply Reply Quote 0
                      • H Offline
                        harnstein
                        last edited by

                        GREAT, thanks a lot TIG, i'll give it a try in a minute πŸ‘

                        @dave r said:

                        Why do you need the subgroups to be on a layer if their top group is on that layer. Turning off the visibility of the top group's layer will have the same impact whether the subgroups are on that layer or not.

                        It's about importing a skp-file to 3ds Max where 3ds splits up all groups with subgroups into seperate objects- and puts them to the layer each group was put on in SU. For toggeling visibility it would have been enough to change the layer of the top-group, you're right.

                        still sketchin'

                        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