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

    Explode Everything?

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    9 Posts 4 Posters 369 Views 4 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.
    • Rich O BrienR Online
      Rich O Brien Moderator
      last edited by

      Is there a plugin that explodes all geometry including Arcs, Curves and Polylines in one go?

      Download the free D'oh Book for SketchUp πŸ“–

      1 Reply Last reply Reply Quote 0
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        Bomb comes close, but I don't know about arcs and such. Who wrote that, TIG? It could probably be easily modified.

        Lately you've been tan, suspicious for the winter.
        All my Plugins I've written

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

          Try this...

          module TIG
          def self.exploderizer()
            ss=Sketchup.active_model.selection
            self.exploder(ss.to_a)
            ss.clear
          end
          def self.exploder(ents)
            ents.each{|e|
              if e.class==Sketchup;;Group
                self.exploder(e.entities.to_a)
              elsif e.class==Sketchup;;ComponentInstance
                e.make_unique if e.definition.instances[1]
                self.exploder(e.definition.entities.to_a)
              end
              e.explode if e.respond_to?(;explode)
              e.explode_curve if e.respond_to?(;explode_curve) and e.curve
            }
          end
          end
          

          Usage: TIG.exploderizer.new
          to explode all selected groups/instances/images/curves etc

          TIG

          1 Reply Last reply Reply Quote 0
          • Rich O BrienR Online
            Rich O Brien Moderator
            last edited by

            I don't want to explode groups components just geometry when I'm inside.

            Download the free D'oh Book for SketchUp πŸ“–

            1 Reply Last reply Reply Quote 0
            • Chris FullmerC Offline
              Chris Fullmer
              last edited by

              Ahh. I do it in shapebender, but that's probably a long way around a simple problem.

              Lately you've been tan, suspicious for the winter.
              All my Plugins I've written

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

                Easier

                module TIG
                def self.geometryexploderizer()
                  Sketchup.active_model.selection.to_a.each{|e|e.explode_curve if e.respond_to?(;explode_curve) and e.curve}
                end
                end
                

                Usage: TIG.geometryexploderizer.new to explode all selected geometry - i.e. 'curves' - ignoring groups/instances/images

                You might want to give it a snappier name πŸ˜‰

                TIG

                1 Reply Last reply Reply Quote 0
                • Rich O BrienR Online
                  Rich O Brien Moderator
                  last edited by

                  Kinda....since I'm not bending anything. I'm exporting to an app that doesn't like polylines etc. So at the moment I'm selecting all geometry then using Bombom's Selections Toys to highlight arcs, curves and polylines then 'Explode Curve'.

                  Download the free D'oh Book for SketchUp πŸ“–

                  1 Reply Last reply Reply Quote 0
                  • soloS Offline
                    solo
                    last edited by

                    So you need a 'nuke_all.rb' πŸ’š

                    http://www.solos-art.com

                    If you see a toilet in your dreams do not use it.

                    1 Reply Last reply Reply Quote 0
                    • Rich O BrienR Online
                      Rich O Brien Moderator
                      last edited by

                      Good name πŸ‘

                      I'll try it myself with TIG's posted code

                      Download the free D'oh Book for SketchUp πŸ“–

                      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