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

    Delete nested section cuts

    Scheduled Pinned Locked Moved Newbie Forum
    sketchup
    5 Posts 3 Posters 194 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 Online
            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