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

    Sketchup Select By Area Sizes

    Scheduled Pinned Locked Moved SketchUp Feature Requests
    sketchup
    5 Posts 4 Posters 20.4k Views 4 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.
    • O Offline
      Ozansahin
      last edited by

      I have lots of faces but I want to select for example larger than 10 sqm.
      Is there a way to select? like selection filter.

      Thank you.

      1 Reply Last reply Reply Quote 0
      • SminkyS Offline
        Sminky
        last edited by

        Hi,
        I sometimes need to do the same thing and so I wrote a simple ruby script to do it.
        To use it, first select all the faces. Then open ruby console and copy/paste this code:

        model=Sketchup.active_model
        entities = Sketchup.active_model.entities
        sel=model.selection.grep(Sketchup;;Face)
        input=UI.inputbox(["Area;"],[100],"Input the lower limit of the area in Sketchup units")
        aftersel=[]
        sel.each{|x| 
        	if Sketchup.format_area(x.area).to_f>input[0]
        		aftersel<<x
        	end	
        } 
        model.selection.clear
        model.selection.add(aftersel)
        

        In the input dialog use area measures in the units your sketchup is set to. (My sketchup is set to meters so this will select faces with area of more than 100 square meters).

        Best regards

        1 Reply Last reply Reply Quote 0
        • O Offline
          Ozansahin
          last edited by

          This is amazing. Thank you.

          1 Reply Last reply Reply Quote 0
          • D Offline
            DavorPPP
            last edited by

            Would it be possible to tweak this script to delete faces smaller than x? Can this work on nested groups and components?

            1 Reply Last reply Reply Quote 0
            • L Offline
              Larisabrownb Newcomers
              last edited by

              Sketchup Select By Area Sizes Topic is solved ... (My sketchup is set to meters so this will select faces with area of more than 100 ...When the Select tool is active, you can select multiple entities in any of the following ways: Click love language test and drag to make a temporary selection box around the items you want to select - When you click and drag with the Select tool you create a temporary selection box. the Object Selection tool (W) from the toolbar in the workspace. In the Options bar, at the upper-right corner of the workspace, ensure that the Object Finder is enabled. Hover the mouse pointer over an object or region in your image you would like to select.

              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