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

    Make multiple groups from a single window selection

    Scheduled Pinned Locked Moved Developers' Forum
    8 Posts 3 Posters 525 Views 3 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.
    • W Offline
      watkins
      last edited by

      Dear All,

      Is there a script that will allow one to make multiple groups from a single window selection?

      Suppose one has many 2D (or 3D) objects which have unconnected geometry, such as a large collection of 2D wood profiles. The ideal would be to select all geometry using a window and have each turned into a group.

      Regards,
      Bob

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

        I think what you are saying is this:

        You create 5 faces, and two of them touch each other along a common edge and the other 3 are independent and touch nothing else. You want to do a CTRL+A (or rubber band select) to select all the geometry, activate some Ruby script, and it will create groups automatically based on whether or not the selected geometry touches anything. In the example case, you would get 4 groups - 3 each with one face and its edges, and a 4th group with the two faces that share a common edge.

        Is this correct? If so, that would not be too hard to create at all.

        edit: Well, I thought I had time in my schedule to write this - but I don't. I can help out whoever wants to do it though.

        Todd

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

          Dear Todd,

          That is exactly what I had in mind. Perhaps someone else might have time, and be keen to do the script.

          Regards,
          Bob

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

            There is a TIG´s plugin called Explode2Groups:

            301 Moved Permanently

            favicon

            (www.sketchucation.com)

            The difference is that you need to do one more step.

            -Select all geometry
            -Group all
            -Use Explode2Groups

            Hope that helps,

            Daniel S

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

              Dear Daniel,

              It certainly does, and thank you for the tip.

              Regards,
              Bob

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

                Dear Daniel,

                I tried it on a group of 2D wood mouldings (see image), and it almost worked. Approximately half were turned into groups, while the remaining half stayed unconnected. Curious.

                Regards,
                Bob


                wood mouldings.jpg

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

                  Dear Daniel,

                  I had an idea which I tried out to great success. I applied the script twice. The first time I "exploded to groups" it made groups of half of the mouldings. I then made a group of the mixed geometry, and exploded to groups"" a second time. Voila! All are now groups. It recognised existing groups and left those alone. Perhaps the script has a limit on the number of groups it will create from unconnected geometry.

                  Thanks,
                  Bob

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

                    Strange... I always use this plugin and never have this problem.
                    Perhaps you have groups inside groups?
                    What you can try is to explode all.. Select all.. group all, and explode2groups.
                    I think that there is no limit for the number of groups because I have use it to create more than 600 groups.

                    Daniel S

                    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