sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Purge GE Terrain?

    Scheduled Pinned Locked Moved SketchUp Feature Requests
    sketchup
    2 Posts 2 Posters 7.6k Views 2 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.
    • A Offline
      AirWindSolar
      last edited by

      We rarely use the imported terrain, just the snapshot layer to get the relative positions of buildings, solar arrays and such. That's a lot of junk in the file that we can do without, especially on large projects. Is there an easy way to purge all the terrain data, other than manually deleting each tile of it?

      1 Reply Last reply Reply Quote 0
      • sdmitchS Offline
        sdmitch
        last edited by

        @airwindsolar said:

        Is there an easy way to purge all the terrain data, other than manually deleting each tile of it?

        Since all Google Earth Terrain groups have the same name they can be found and deleted rather easily using this "one liner" that can be copied and executed in the Ruby Console.

        Sketchup.active_model.entities.grep(Sketchup;;Group).reverse.each{|g| next unless g.name=='Google Earth Terrain';g.locked=false;g.erase!}
        

        Nothing is worthless, it can always be used as a bad example.

        http://sdmitch.blogspot.com/

        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