# Tagging Sub Components Based on Parent Component?

**URL:** <https://forums.sketchup.com/t/tagging-sub-components-based-on-parent-component/194381>\
**Category:** SketchUp\
**Tags:** sketchup, components\
**Created:** [March 29, 2022, 1:51pm UTC](https://forums.sketchup.com/t/tagging-sub-components-based-on-parent-component/194381 "2022-03-29T13:51:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ttindall](https://avatars.discourse-cdn.com/v4/letter/t/3ec8ea/32.png) [@ttindall](https://forums.sketchup.com/u/ttindall)\
**Post date:** [March 29, 2022, 1:51pm UTC](https://forums.sketchup.com/t/tagging-sub-components-based-on-parent-component/194381/1 "2022-03-29T13:51:47Z")

</div>

![image](https://global.discourse-cdn.com/sketchup/original/3X/5/d/5d373a148808ead0c475e55643ffeff4f66dbe13.png)  
 ![image](https://global.discourse-cdn.com/sketchup/original/3X/7/7/77154a460caa8145c45aa65c448fa83bce888085.png)

Is there a way to have the sub component’s tag match the parent component automatically without exploding the components?

---

<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:** [March 29, 2022, 1:55pm UTC](https://forums.sketchup.com/t/tagging-sub-components-based-on-parent-component/194381/2 "2022-03-29T13:55:46Z")

</div>

> [@ttindall](#):
>
> I have been told before that if the sub components are untagged they will match the parent component’s tag but that is not happening for me?

Who told you that? The sub components get their own tag if you give it to them. If you explode the parent component the subcomponents will inherit the parent’s tag. If you want the subcomponents to have the same tag as the parent, open the parent, select the subcomponents and put the tag on them.

---

<div class="post-metadata">

**Author:** ![ttindall](https://avatars.discourse-cdn.com/v4/letter/t/3ec8ea/32.png) [@ttindall](https://forums.sketchup.com/u/ttindall)\
**Post date:** [March 29, 2022, 2:04pm UTC](https://forums.sketchup.com/t/tagging-sub-components-based-on-parent-component/194381/3 "2022-03-29T14:04:38Z")

</div>

I edited my post.

---

<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:** [March 29, 2022, 2:15pm UTC](https://forums.sketchup.com/t/tagging-sub-components-based-on-parent-component/194381/4 "2022-03-29T14:15:51Z")

</div>

> [@ttindall](#):
>
> Is there a way…

Not automatically. I’m not aware of an existing extension but it might be possible for someone to write a Ruby script you could run to give the parent’s tag to the subcomponents. To be honest, you’rs is the only request I’ve ever seen for that sort of thing in the nearly 20 years I’ve been using SketchUp. The ability to give the subcomponents tags that are different from the parent adds a lot of flexibility to how various objects in the model can be displayed in different scenes.

---

<div class="post-metadata">

**Author:** ![ttindall](https://avatars.discourse-cdn.com/v4/letter/t/3ec8ea/32.png) [@ttindall](https://forums.sketchup.com/u/ttindall)\
**Post date:** [March 29, 2022, 2:24pm UTC](https://forums.sketchup.com/t/tagging-sub-components-based-on-parent-component/194381/5 "2022-03-29T14:24:50Z")

</div>

I’m using it for a takeoff for reports and I group things together inside of components that can be all in the same tag so instead of going into each one which is tedious tagging just the parent is easier.

---

<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:** [March 29, 2022, 2:28pm UTC](https://forums.sketchup.com/t/tagging-sub-components-based-on-parent-component/194381/6 "2022-03-29T14:28:39Z")

</div>

Understood. You might make a request from one of the Ruby gurus to see if they could write a plugin to do what you want, if it’s possible. Until you have such a thing, you could give the subcomponents the tag when you select them to make the parent component. Then immediately put the same tag on the parent component.

---

<div class="post-metadata">

**Author:** ![MikeWayzovski](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/mikewayzovski/32/98346_2.png) [@MikeWayzovski](https://forums.sketchup.com/u/MikeWayzovski)\
**Post date:** [March 29, 2022, 3:33pm UTC](https://forums.sketchup.com/t/tagging-sub-components-based-on-parent-component/194381/7 "2022-03-29T15:33:49Z")

</div>

Exploding a tagged component will only affect it’s **untagged** entities.  
Nested objects (or other entities) that are already tagged, just keep the Tags they have.

Fwiw, like @DaveR says, if one decides to organise the model by nesting hierarchy levels, they need to be selected, first.  
Might as well tag them in the entity panel or tag panel.

There is also a ‘level’ attribute in Generate report, as well as a filter. You might not even need tags to set up a report.

---

<div class="post-metadata">

**Author:** ![ttindall](https://avatars.discourse-cdn.com/v4/letter/t/3ec8ea/32.png) [@ttindall](https://forums.sketchup.com/u/ttindall)\
**Post date:** [March 29, 2022, 3:38pm UTC](https://forums.sketchup.com/t/tagging-sub-components-based-on-parent-component/194381/8 "2022-03-29T15:38:16Z")

</div>

I was not aware of the level in the generate report. I will have to explore that. Thanks.
