# Select all groups with the same material

**URL:** <https://forums.sketchup.com/t/select-all-groups-with-the-same-material/343612>\
**Category:** Pro\
**Tags:** extension\
**Created:** [January 7, 2026, 12:09pm UTC](https://forums.sketchup.com/t/select-all-groups-with-the-same-material/343612 "2026-01-07T12:09:38Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![TazSavage](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tazsavage/32/199389_2.png) [@TazSavage](https://forums.sketchup.com/u/TazSavage)\
**Post date:** [January 7, 2026, 12:09pm UTC](https://forums.sketchup.com/t/select-all-groups-with-the-same-material/343612/1 "2026-01-07T12:09:38Z")

</div>

I have been given this overly detailed model. Its an as-built that has nuts and bolts modelled in detail and its painful to use.

I need to drastically slim it down if I’m to work with it. everything is a unique component and a unique instance so I cant mass select and delete.

Things do seem to be some what colour coordinated. Is **there an extension that can select all “objects” by material?** All the elements are grouped so it would need to be able to make the selection deep inside grouping layers.

Thanks.

 ![image](https://global.discourse-cdn.com/sketchup/original/3X/1/b/1b2e2183823affa90bf88d82663505386232ada6.jpeg)

---

<div class="post-metadata">

**Author:** ![Elmtec-Adam](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/elmtec-adam/32/120483_2.png) [@Elmtec-Adam](https://forums.sketchup.com/u/Elmtec-Adam)\
**Post date:** [January 7, 2026, 1:00pm UTC](https://forums.sketchup.com/t/select-all-groups-with-the-same-material/343612/3 "2026-01-07T13:00:26Z")

</div>

Are the faces painted or the group/components?

---

<div class="post-metadata">

**Author:** ![TazSavage](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tazsavage/32/199389_2.png) [@TazSavage](https://forums.sketchup.com/u/TazSavage)\
**Post date:** [January 7, 2026, 1:53pm UTC](https://forums.sketchup.com/t/select-all-groups-with-the-same-material/343612/4 "2026-01-07T13:53:14Z")

</div>

I think the component is painted.

---

<div class="post-metadata">

**Author:** ![TazSavage](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tazsavage/32/199389_2.png) [@TazSavage](https://forums.sketchup.com/u/TazSavage)\
**Post date:** [January 7, 2026, 1:54pm UTC](https://forums.sketchup.com/t/select-all-groups-with-the-same-material/343612/5 "2026-01-07T13:54:52Z")

</div>

I should mention it was modelled in NavisWork and imported into Sketchup

---

<div class="post-metadata">

**Author:** ![DaveR](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/daver/32/7601_2.png) [@DaveR](https://forums.sketchup.com/u/DaveR)\
**Post date:** [January 7, 2026, 1:59pm UTC](https://forums.sketchup.com/t/select-all-groups-with-the-same-material/343612/6 "2026-01-07T13:59:33Z")

</div>

Are you intending to delete the nuts and bolts? You can right click on the component’s thumbnail in the Components panel and choose Delete. It will delete all instances of the component even if in nested components/groups.

---

<div class="post-metadata">

**Author:** ![Elmtec-Adam](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/elmtec-adam/32/120483_2.png) [@Elmtec-Adam](https://forums.sketchup.com/u/Elmtec-Adam)\
**Post date:** [January 7, 2026, 2:47pm UTC](https://forums.sketchup.com/t/select-all-groups-with-the-same-material/343612/7 "2026-01-07T14:47:20Z")

</div>

Selection toys has a “Select by material option” - maybe check that one.

---

<div class="post-metadata">

**Author:** ![TazSavage](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tazsavage/32/199389_2.png) [@TazSavage](https://forums.sketchup.com/u/TazSavage)\
**Post date:** [January 7, 2026, 3:57pm UTC](https://forums.sketchup.com/t/select-all-groups-with-the-same-material/343612/8 "2026-01-07T15:57:09Z")

</div>

It appears every nut and bolt is unique deleting one component does not remove the others.

---

<div class="post-metadata">

**Author:** ![DaveR](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/daver/32/7601_2.png) [@DaveR](https://forums.sketchup.com/u/DaveR)\
**Post date:** [January 7, 2026, 3:58pm UTC](https://forums.sketchup.com/t/select-all-groups-with-the-same-material/343612/9 "2026-01-07T15:58:32Z")

</div>

That stinks! Getting rid of all of them ought to improve your model’s performance by quite a lot.

---

<div class="post-metadata">

**Author:** ![Elmtec-Adam](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/elmtec-adam/32/120483_2.png) [@Elmtec-Adam](https://forums.sketchup.com/u/Elmtec-Adam)\
**Post date:** [January 7, 2026, 4:07pm UTC](https://forums.sketchup.com/t/select-all-groups-with-the-same-material/343612/10 "2026-01-07T16:07:46Z")

</div>

yeah, that nasty!

I’d be inclined to ask for the original file in it’s original format. It’s clearly been converted from something and a load of data thrown away.

---

<div class="post-metadata">

**Author:** ![TazSavage](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tazsavage/32/199389_2.png) [@TazSavage](https://forums.sketchup.com/u/TazSavage)\
**Post date:** [January 7, 2026, 4:08pm UTC](https://forums.sketchup.com/t/select-all-groups-with-the-same-material/343612/11 "2026-01-07T16:08:20Z")

</div>

I have installed selection toys and im not seeing this function. even in the extended UI. Do you know of any in-depth tutorial or could you provide a screen shot?

---

<div class="post-metadata">

**Author:** ![Elmtec-Adam](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/elmtec-adam/32/120483_2.png) [@Elmtec-Adam](https://forums.sketchup.com/u/Elmtec-Adam)\
**Post date:** [January 7, 2026, 4:11pm UTC](https://forums.sketchup.com/t/select-all-groups-with-the-same-material/343612/12 "2026-01-07T16:11:55Z")

</div>

![image](https://global.discourse-cdn.com/sketchup/original/3X/6/f/6f6cee8a084c5182e12e6c9b0f2d0c37f96de6de.png)

Right click object that has the material on it you want to select and choose active with selected materials.

I suspect if there is a lot of nesting then it might not get everything (or anything)

---

<div class="post-metadata">

**Author:** ![TazSavage](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tazsavage/32/199389_2.png) [@TazSavage](https://forums.sketchup.com/u/TazSavage)\
**Post date:** [January 7, 2026, 4:54pm UTC](https://forums.sketchup.com/t/select-all-groups-with-the-same-material/343612/13 "2026-01-07T16:54:25Z")

</div>

Unfortunately it seems they are nested to deep for this method to work.

---

<div class="post-metadata">

**Author:** ![DaveR](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/daver/32/7601_2.png) [@DaveR](https://forums.sketchup.com/u/DaveR)\
**Post date:** [January 7, 2026, 4:56pm UTC](https://forums.sketchup.com/t/select-all-groups-with-the-same-material/343612/14 "2026-01-07T16:56:20Z")

</div>

Are they all components, though? Maybe the easiest path is to remove each one via the Components panel. At least that doesn’t require burrowing into nests.

---

<div class="post-metadata">

**Author:** ![ryan.moore](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/ryan.moore/32/106089_2.png) [@ryan.moore](https://forums.sketchup.com/u/ryan.moore)\
**Post date:** [January 7, 2026, 5:21pm UTC](https://forums.sketchup.com/t/select-all-groups-with-the-same-material/343612/15 "2026-01-07T17:21:42Z")

</div>

I feel like this is a job for a Ruby script. Can you separate and post a small portion of the model to mess around with?

---

<div class="post-metadata">

**Author:** ![TazSavage](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tazsavage/32/199389_2.png) [@TazSavage](https://forums.sketchup.com/u/TazSavage)\
**Post date:** [January 7, 2026, 5:27pm UTC](https://forums.sketchup.com/t/select-all-groups-with-the-same-material/343612/16 "2026-01-07T17:27:00Z")

</div>

I think this might take longer than just deleting bits as I see them as everything is broken up into awkward bits.

I mean these components could be anywhere and there isn’t a way from these images to know how vital they would be to the overall model.

 ![image](https://global.discourse-cdn.com/sketchup/original/3X/b/6/b6ddf7325f64f55ab0aeb3b57dcb84f3646e8c2f.png)

---

<div class="post-metadata">

**Author:** ![DaveR](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/daver/32/7601_2.png) [@DaveR](https://forums.sketchup.com/u/DaveR)\
**Post date:** [January 7, 2026, 5:28pm UTC](https://forums.sketchup.com/t/select-all-groups-with-the-same-material/343612/17 "2026-01-07T17:28:18Z")

</div>

I’d charge at least double to work on that file.

---

<div class="post-metadata">

**Author:** ![TazSavage](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tazsavage/32/199389_2.png) [@TazSavage](https://forums.sketchup.com/u/TazSavage)\
**Post date:** [January 7, 2026, 5:30pm UTC](https://forums.sketchup.com/t/select-all-groups-with-the-same-material/343612/18 "2026-01-07T17:30:09Z")

</div>

As in post a section to the forum? I’m not sure if I could share much info I wouldn’t want to disclose confidential client information. I’m not sure how much meta data would be carried over.

---

<div class="post-metadata">

**Author:** ![TazSavage](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tazsavage/32/199389_2.png) [@TazSavage](https://forums.sketchup.com/u/TazSavage)\
**Post date:** [January 7, 2026, 5:32pm UTC](https://forums.sketchup.com/t/select-all-groups-with-the-same-material/343612/19 "2026-01-07T17:32:02Z")

</div>

Ha yer not an option for a salary man unfortunately.

Its a cursed chalice as its given me more info than I could ever get by myself but also its overwhelming.

---

<div class="post-metadata">

**Author:** ![Elmtec-Adam](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/elmtec-adam/32/120483_2.png) [@Elmtec-Adam](https://forums.sketchup.com/u/Elmtec-Adam)\
**Post date:** [January 7, 2026, 5:33pm UTC](https://forums.sketchup.com/t/select-all-groups-with-the-same-material/343612/20 "2026-01-07T17:33:28Z")

</div>

Give this a try into the ruby console - colordropper select the material you want to find groups of first.

```auto

model = Sketchup.active_model
material = model.materials.current

if material.nil?
  UI.messagebox('No active material selected.')
  return
end

results = []

walker = lambda do |entities|
  entities.each do |ent|
    if ent.is_a?(Sketchup::Group) || ent.is_a?(Sketchup::ComponentInstance)
      # Add the entity if its instance-level material matches
      results << ent if ent.material == material

      # Recurse into child entities
      child_entities =
        ent.is_a?(Sketchup::Group) ? ent.entities : ent.definition.entities

      walker.call(child_entities)
    end
  end
end

walker.call(model.entities)

model.selection.clear
results.each { |e| model.selection.add(e) }

puts "Selected #{results.size} group(s)/component instance(s) using material: #{material.display_name}"

```

---

<div class="post-metadata">

**Author:** ![ryan.moore](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/ryan.moore/32/106089_2.png) [@ryan.moore](https://forums.sketchup.com/u/ryan.moore)\
**Post date:** [January 7, 2026, 5:40pm UTC](https://forums.sketchup.com/t/select-all-groups-with-the-same-material/343612/21 "2026-01-07T17:40:14Z")

</div>

Fair play, and probably not necessary for folk more Ruby savvy than I…

[Next page](https://forums.sketchup.com/t/select-all-groups-with-the-same-material/343612.md?page=2)
