# Instances and the parent object name

**URL:** <https://forums.sketchup.com/t/instances-and-the-parent-object-name/264461>\
**Category:** Dynamic Components\
**Tags:** components\
**Created:** [March 19, 2024, 12:40pm UTC](https://forums.sketchup.com/t/instances-and-the-parent-object-name/264461 "2024-03-19T12:40:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrramsey1969](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/mrramsey1969/32/100351_2.png) [@mrramsey1969](https://forums.sketchup.com/u/mrramsey1969)\
**Post date:** [March 19, 2024, 12:40pm UTC](https://forums.sketchup.com/t/instances-and-the-parent-object-name/264461/1 "2024-03-19T12:40:13Z")

</div>

I am trying to name my subcomponents by concatenating the name in the name attribute of the subcomponent. If I edit the component object name (cab6), by editing in the attribute window all works fine. When I place the component from my library and enter the instance name it will set the component name automatically. The problem is that when I do it that way it doesn’t update the subcomponents correctly and instead uses the original components \_Name. How can I make it use the name set by the instance? Hope this makes some sense.

 ![example](https://global.discourse-cdn.com/sketchup/original/3X/b/2/b24a60babe93ea57b253745c6bcdd2a58f74640e.png)

---

<div class="post-metadata">

**Author:** ![pcmoor](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/pcmoor/32/3427_2.png) [@pcmoor](https://forums.sketchup.com/u/pcmoor)\
**Post date:** [March 21, 2024, 12:41am UTC](https://forums.sketchup.com/t/instances-and-the-parent-object-name/264461/2 "2024-03-21T00:41:06Z")

</div>

instance name only works in DCs if the attribute “Name” is "’ and the DC is inserted from a saved definition.  
The above “cab6” I believe has its component definition within this file and not an instance of an external saved DC, hence no change using a instance name of “cab2”

“\_name” refers to the original instance or component name, “\_name” only coincides with early development of the DC. You can change this via component inspector (extension).

There is a disconnect as you observed, I think one needs a ruby script, on selection to update \_name to instance name.

Further to your workflow development: do you use OpenCutList? then the attribute “Name” could be the best connection
