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

    Review entity count per group/comp?

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 3 Posters 300 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.
    • P Offline
      psychomuffin
      last edited by

      Hi all,

      I have a circumstance where I need every group in my model to have exactly 18 entities (12 lines, 6 faces). I have quite a few (hundreds) groups and componants by now that I have to keep track of. I was wondering if there is any way (either natively or ruby) to be able to review these numbers. I'm thinking of something like the outliner where I can see the number of antities. But anything really, as long as I can quickly find anything that does not have the 18 entities I need. My current process is going through each group and checking, which takes quite a while.

      Thanks guys,

      Scott

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by

        Scott,

        Here's a quickie to count the faces and edges. Adds "Check Groups" option the Plugins menu. This assumes the Groups are all top-level in the model and not nested inside other Groups or Components. If it finds an error, it clears the selection, pop-ups a message, and highlights the bad Group. Repeat until you get no pop-ups.


        checkAndSelectGroups.rb

        Hi

        1 Reply Last reply Reply Quote 0
        • chrisglasierC Offline
          chrisglasier
          last edited by

          Quite a different topic but have a look at the bit of code in this post:

          http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=14299

          As it walks through the groups and components, I guess you only need to add some code to count the faces and edges of each.

          Outputting to a webdialog would be good so that you could use some javascript to list rogues as links so you can identify and fix them one by one*.

          I would be interested to find out if this approach turns out to be useful.

          Chris

          • edit: or in batches of same problem

          With TBA interfaces we can analyse what is to be achieved so that IT can help with automation to achieve it.

          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