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

    Searching a plugin to deeply explode nesting groups

    Scheduled Pinned Locked Moved Plugins
    14 Posts 6 Posters 2.5k 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.
    • alexandre skA Offline
      alexandre sk
      last edited by

      @krisidious said:

      Great. Now I said bomb and exploding on the internet.

      Dear FBI, CIA, NSA et cetera...

      I am not a terrorist. mkay? thanks and bye.

      You are on the black list now, lol

      1 Reply Last reply Reply Quote 0
      • M Offline
        Mythos
        last edited by

        Thank you very much for all your answers. It seems that there is no existing script that does exactly what I need. Thus I started to have a deeper look into the Ruby documentation of SketchUp. Actually it was pretty easy to implement the needed behaviour for my own.

        You can find a first version of my "Flatten Hierarchy" script as attachment to this posting (just copying it to your plugins folder). Any comments or improvements are highly appreciated since even if I am a software developer I have never been working with Ruby before.

        Here is a short description explaining what the script does:

        Traverses through the selected entities and deeply explodes all nested groups and components that only have groups and components (but no actual geometry like edges or faces) as direct children. In other words this script flattens the hierarchy of the selected entities by bringing all nested groups and components up to the current level of selection without interfering any geometry.


        op_flattenhierarchy.rb

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

          That's great Mythos... It will come in handy I'm sure. Can't wait to see what you come up with next.

          By: Kristoff Rand
          Home DesignerUnique House Plans

          1 Reply Last reply Reply Quote 0
          • alexandre skA Offline
            alexandre sk
            last edited by

            wow that's was fast! great plug-in very simple and efficient

            it's is even useful to know if the group/component have any loose geometry inside by looking the disabled button on the context menu.

            1 Reply Last reply Reply Quote 0
            • M Offline
              Mythos
              last edited by

              Thanks for the kind words. Actually I have had a lot of fun learning the SketchUp API.

              Do you think it's worth to submit the script to the SketchUp extension library?

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

                Absolutley... But, I would submit to the Plugin Store instead. 😉

                Link Preview Image
                SketchUp Plugins | PluginStore | SketchUcation

                SketchUp Plugin and Extension Store by SketchUcation provides free downloads of hundreds of SketchUp extensions and plugins

                favicon

                (sketchucation.com)

                By: Kristoff Rand
                Home DesignerUnique House Plans

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

                  @mythos said:

                  Thank you very much for all your answers. It seems that there is no existing script that does exactly what I need. Thus I started to have a deeper look into the Ruby documentation of SketchUp. Actually it was pretty easy to implement the needed behaviour for my own.

                  You can find a first version of my "Flatten Hierarchy" script as attachment to this posting (just copying it to your plugins folder). Any comments or improvements are highly appreciated since even if I am a software developer I have never been working with Ruby before.

                  Here is a short description explaining what the script does:

                  Traverses through the selected entities and deeply explodes all nested groups and components that only have groups and components (but no actual geometry like edges or faces) as direct children. In other words this script flattens the hierarchy of the selected entities by bringing all nested groups and components up to the current level of selection without interfering any geometry.

                  does exactly what is written; so:

                  if a component contains groups
                  it is exploded and disappears as a component in the component list

                  this might be a problem

                  it is not a default, but one should be aware of that

                  possible to choose? explode ONLY groups or ONLY components?

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

                    @mythos said:

                    Thank you very much for all your answers. It seems that there is no existing script that does exactly what I need. Thus I started to have a deeper look into the Ruby documentation of SketchUp. Actually it was pretty easy to implement the needed behaviour for my own.

                    You can find a first version of my "Flatten Hierarchy" script as attachment to this posting (just copying it to your plugins folder). Any comments or improvements are highly appreciated since even if I am a software developer I have never been working with Ruby before.

                    Here is a short description explaining what the script does:

                    Traverses through the selected entities and deeply explodes all nested groups and components that only have groups and components (but no actual geometry like edges or faces) as direct children. In other words this script flattens the hierarchy of the selected entities by bringing all nested groups and components up to the current level of selection without interfering any geometry.

                    does exactly what is written; so:

                    if a component contains groups
                    it is exploded and disappears as a component in the component list

                    this might be a problem

                    it is not a default, but one should be aware of that

                    possible to choose? explode ONLY groups or ONLY components?

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

                      Hello, sorry for digging up years old thread. I wonder if anyone can help this work with the newest version of sketchup.

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

                        @tammaotrinhtham said:

                        Hello, sorry for digging up years old thread. I wonder if anyone can help this work with the newest version of sketchup.

                        I just installed it in SketchUp 2017 and it works as described. What makes you think it doesn't work?

                        Etaoin Shrdlu

                        %

                        (THERE'S NO PLACE LIKE)

                        G28 X0.0 Y0.0 Z0.0

                        M30

                        %

                        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