• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

Delete nested section cuts

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