# Errors referencing custom atributes

**URL:** <https://forums.sketchup.com/t/errors-referencing-custom-atributes/53067>\
**Category:** Dynamic Components\
**Tags:** error, attribute, dynamiccomponents\
**Created:** [October 11, 2017, 10:09am UTC](https://forums.sketchup.com/t/errors-referencing-custom-atributes/53067 "2017-10-11T10:09:18Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbdmatt](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/cbdmatt/32/38914_2.png) [@cbdmatt](https://forums.sketchup.com/u/cbdmatt)\
**Post date:** [October 11, 2017, 10:09am UTC](https://forums.sketchup.com/t/errors-referencing-custom-atributes/53067/1 "2017-10-11T10:09:18Z")

</div>

Hi there,

I’m trying to build a dynamic component that allows me to set the finish height of a stage deck by selecting it from a list of available leg lengths.

The intention is that you select the required finish height of the deck and the deck sets itself to this height and the legs update their length to accommodate, but remain at position z=0. The deck leg length is 1.5cm less than the height of the deck.

I have included screenshots of my setup for this, and you can see that both instances where I am referencing my custom attribute ‘DeckFinishHeight’ the formula returns an error. Could you help me to figure out why this is?

Many thanks,

Matt

 ![Stagedex 1](https://global.discourse-cdn.com/sketchup/original/3X/1/9/19de02bba2debbcf87f3f53e11373d9cdfdf0235.png)

---

<div class="post-metadata">

**Author:** ![cbdmatt](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/cbdmatt/32/38914_2.png) [@cbdmatt](https://forums.sketchup.com/u/cbdmatt)\
**Post date:** [October 11, 2017, 10:10am UTC](https://forums.sketchup.com/t/errors-referencing-custom-atributes/53067/2 "2017-10-11T10:10:04Z")

</div>

Second screenshot, as a new user I could only put one reference image in my post!

 ![Stagedex 2](https://global.discourse-cdn.com/sketchup/original/3X/e/d/edbb7a9a97e89cdea78c43db1bd017e5bc11b6e7.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:** [October 11, 2017, 10:13am UTC](https://forums.sketchup.com/t/errors-referencing-custom-atributes/53067/3 "2017-10-11T10:13:29Z")

</div>

How about uploading the SKP file, too?

---

<div class="post-metadata">

**Author:** ![cbdmatt](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/cbdmatt/32/38914_2.png) [@cbdmatt](https://forums.sketchup.com/u/cbdmatt)\
**Post date:** [October 11, 2017, 10:15am UTC](https://forums.sketchup.com/t/errors-referencing-custom-atributes/53067/4 "2017-10-11T10:15:35Z")

</div>

Sure thing, a slightly large omission!

[Prolyte StageDex 2x1m.skp](https://forums.sketchup.com/uploads/short-url/5LQab3vixGwHKHKA7Nzll8bDYtC.skp) (99.8 KB)

---

<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:** [October 11, 2017, 10:23am UTC](https://forums.sketchup.com/t/errors-referencing-custom-atributes/53067/5 "2017-10-11T10:23:16Z")

</div>

Get rid of the comma after StageDex in the component definition name and correct the formula and it works fine.

 ![Screenshot - 10_11_2017 , 5_20_58 AM](https://global.discourse-cdn.com/sketchup/original/3X/b/1/b1adba7160160e1afa4e746c69f9414345350c5d.png)  
[Prolyte Stage Dex 2x1m.skp](https://forums.sketchup.com/uploads/short-url/p7RYeFJnDyfbjqYHUZqzWgBMKjZ.skp) (104.1 KB)

---

<div class="post-metadata">

**Author:** ![cbdmatt](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/cbdmatt/32/38914_2.png) [@cbdmatt](https://forums.sketchup.com/u/cbdmatt)\
**Post date:** [October 11, 2017, 10:25am UTC](https://forums.sketchup.com/t/errors-referencing-custom-atributes/53067/6 "2017-10-11T10:25:16Z")

</div>

Thanks so much Dave, I’ll have to shake my comma usage habit!

---

<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:** [October 11, 2017, 10:26am UTC](https://forums.sketchup.com/t/errors-referencing-custom-atributes/53067/7 "2017-10-11T10:26:26Z")

</div>

> [@cbdmatt](#):
>
> I’ll have to shake my comma usage habit!

Yes, it, can, be, a problem. 😃

---

<div class="post-metadata">

**Author:** ![Anssi](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/anssi/32/105_2.png) [@Anssi](https://forums.sketchup.com/u/Anssi)\
**Post date:** [October 11, 2017, 5:34pm UTC](https://forums.sketchup.com/t/errors-referencing-custom-atributes/53067/8 "2017-10-11T17:34:07Z")

</div>

Note that you can use the Parent! keyword in formulas instead of the full name of the containing component or group. I don’t know if it helps if the actual name contains illegal characters.

---

<div class="post-metadata">

**Author:** ![john\_mcclenahan](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/john_mcclenahan/32/135377_2.png) [@john\_mcclenahan](https://forums.sketchup.com/u/john_mcclenahan)\
**Post date:** [October 11, 2017, 6:56pm UTC](https://forums.sketchup.com/t/errors-referencing-custom-atributes/53067/9 "2017-10-11T18:56:20Z")

</div>

Should anyone reading this thread want Imperial (foot-sized) Steeldecks, which are conceptually similar, see the 3D warehouse and search for ‘steeldeck’.

Rory and I have drawn versions which work similarly, but in his case use a drop down list of standard metric heights, and mine (based on his geometry, with his permission) have allowed free input within a range.

---

<div class="post-metadata">

**Author:** ![eneroth3](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/eneroth3/32/1222_2.png) [@eneroth3](https://forums.sketchup.com/u/eneroth3)\
**Post date:** [October 12, 2017, 12:36pm UTC](https://forums.sketchup.com/t/errors-referencing-custom-atributes/53067/10 "2017-10-12T12:36:34Z")

</div>

> [@DaveR](#):
>
> Get rid of the comma after StageDex in the component definition name and correct the formula and it works fine.

It’s these bugs that makes me hate DC. If it doesn’t support the same component names that SketchUp itself supports it could at least warn users about it.

---

<div class="post-metadata">

**Author:** ![Anssi](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/anssi/32/105_2.png) [@Anssi](https://forums.sketchup.com/u/Anssi)\
**Post date:** [October 12, 2017, 2:53pm UTC](https://forums.sketchup.com/t/errors-referencing-custom-atributes/53067/11 "2017-10-12T14:53:13Z")

</div>

> [@eneroth3](#):
>
> It’s these bugs that makes me hate DC

Another is the thing with units. Uncheck the “display units format” box in Model Info and all DCs revert to using inches.

---

<div class="post-metadata">

**Author:** ![eneroth3](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/eneroth3/32/1222_2.png) [@eneroth3](https://forums.sketchup.com/u/eneroth3)\
**Post date:** [October 12, 2017, 3:03pm UTC](https://forums.sketchup.com/t/errors-referencing-custom-atributes/53067/12 "2017-10-12T15:03:46Z")

</div>

Units in DC are just weird. I find it extremely arbitrary how you can chose between cm and inches only, but no other units. And how it cannot be changed later without having to change all formulas. Why can’t lengths be parsed in the same way as all other lengths inputs in SketchUp? 😮

There no limit on how much could be written on the topic of DC oddities. I think it’s wise not to discuss it further in this thread.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sketchup/original/3X/f/2/f2a121500b085ed60806607a82720b092d800bb3.png) [@system](https://forums.sketchup.com/u/system)\
**Post date:** [January 12, 2018, 7:03am UTC](https://forums.sketchup.com/t/errors-referencing-custom-atributes/53067/13 "2018-01-12T07:03:54Z")

</div>

Closed on January 12, 2018, 7:03am UTC

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.
