sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    Delete nested section cuts

    Scheduled Pinned Locked Moved Newbie Forum
    sketchup
    5 Posts 3 Posters 233 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.
    • cottyC Offline
      cotty
      last edited by

      Is there an easy way to delete all section cuts in a model at once even if they are nested in groups and components (e.g. for section cut animations)?

      my SketchUp gallery

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

        Sounds like a plugin request. πŸ˜‰

        Etaoin Shrdlu

        %

        (THERE'S NO PLACE LIKE)

        G28 X0.0 Y0.0 Z0.0

        M30

        %

        1 Reply Last reply Reply Quote 0
        • cottyC Offline
          cotty
          last edited by

          Only if there is no native way to do this πŸ˜‰
          (If there is a native way, it would be my Doh! of the day...)

          my SketchUp gallery

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

            Copy/Paste this "one-liner" into the Ruby Console + <enter>.

            m=Sketchup.active_model;m.start_operation("Del");m.entities.to_a.each{|e|e.erase! if e.class==Sketchup;;SectionPlane};m.definitions.each{|d|next if d.image?;d.entities.to_a.each{|e|e.erase! if e.class==Sketchup;;SectionPlane}};m.commit_operation
            

            It deletes EVERY Section-Plane in the whole model, even those nested inside groups or components, so use with EXTREME CARE ! However, it is 'one step undoable' !
            πŸ€“

            TIG

            1 Reply Last reply Reply Quote 0
            • cottyC Offline
              cotty
              last edited by

              Thank you TIG for this one-liner which shows me that I have to learn ruby...

              my SketchUp gallery

              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