• Login
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.
  • C Offline
    cotty
    last edited by 11 Jan 2012, 12:15

    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
    • D Offline
      Dave R
      last edited by 11 Jan 2012, 12:16

      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
      • C Offline
        cotty
        last edited by 11 Jan 2012, 12:19

        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
        • T Offline
          TIG Moderator
          last edited by 11 Jan 2012, 13:13

          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
          • C Offline
            cotty
            last edited by 11 Jan 2012, 13:40

            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
            1 / 1
            • First post
              2/5
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement