# Add Label 2d text from dynamic component attribute

**URL:** <https://forums.sketchup.com/t/add-label-2d-text-from-dynamic-component-attribute/29693>\
**Category:** Dynamic Components\
**Created:** [August 30, 2016, 5:18pm UTC](https://forums.sketchup.com/t/add-label-2d-text-from-dynamic-component-attribute/29693 "2016-08-30T17:18:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![horphi0815](https://avatars.discourse-cdn.com/v4/letter/h/2acd7d/32.png) [@horphi0815](https://forums.sketchup.com/u/horphi0815)\
**Post date:** [August 30, 2016, 5:18pm UTC](https://forums.sketchup.com/t/add-label-2d-text-from-dynamic-component-attribute/29693/1 "2016-08-30T17:18:09Z")

</div>

Hello,

does somebody know, how i can add a 2d text from dynamic component attributes?

As example: if the component has the attribute “lenx” , how can i add this value directly into the 2d label, when i will give him the text inside the drawing.

Thx in advance,

Phil

---

<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:** [September 9, 2016, 1:30pm UTC](https://forums.sketchup.com/t/add-label-2d-text-from-dynamic-component-attribute/29693/2 "2016-09-09T13:30:40Z")

</div>

Other than using the attribute access of labels in layout, can’t do.  
However placing a dimension line within the component will give you lenX within sketchup.

[lenX.skp](https://forums.sketchup.com/uploads/short-url/yE91VduVo34SEbuvQG6vSo37o0.skp) (25.2 KB)

---

<div class="post-metadata">

**Author:** ![dezmo](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/dezmo/32/51058_2.png) [@dezmo](https://forums.sketchup.com/u/dezmo)\
**Post date:** [April 25, 2019, 8:12pm UTC](https://forums.sketchup.com/t/add-label-2d-text-from-dynamic-component-attribute/29693/3 "2019-04-25T20:12:06Z")

</div>

> [@pcmoor](#):
>
> …will give you lenX…

Hi Philip ( @pcmoor ), this is old topic, I know…  
I just started to deal with the DC’s and I cant figure out how did you create the prefix for the dimension and still keep the dimension dynamically change. I can create a dimension line, but without additional text in it…  
So how can I create it? Or how can I change the “lenX” to e.g.: “with=” [actual dimension]?  
Please guide me to the “magic”!  
Tanks!

 ![image](https://global.discourse-cdn.com/sketchup/original/3X/0/4/04cfa764477755471d74e8b5202609a301145b8d.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:** [April 25, 2019, 9:22pm UTC](https://forums.sketchup.com/t/add-label-2d-text-from-dynamic-component-attribute/29693/4 "2019-04-25T21:22:23Z")

</div>

hi dezmo,  
you use lenx = \<\>  
the \<\> is a the “smart tab” for the measure  
Philip

---

<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:** [April 25, 2019, 10:51pm UTC](https://forums.sketchup.com/t/add-label-2d-text-from-dynamic-component-attribute/29693/5 "2019-04-25T22:51:04Z")

</div>

Check out this (old) topic, as well:

> [@Dimension tool - cannot do two lines. Carriage return terminates?](https://forums.sketchup.com/t/dimension-tool-cannot-do-two-lines-carriage-return-terminates/18894/5):
>
> One example (we can discuss if this is a kind of documentation of course wink ) [[SketchUp Skill Builder: Dimensions] ](https://www.youtube.com/watch?v=PhwLYoR-xkE)

I think the line feed does not work any more. Though…

---

<div class="post-metadata">

**Author:** ![dezmo](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/dezmo/32/51058_2.png) [@dezmo](https://forums.sketchup.com/u/dezmo)\
**Post date:** [April 26, 2019, 8:50am UTC](https://forums.sketchup.com/t/add-label-2d-text-from-dynamic-component-attribute/29693/6 "2019-04-26T08:50:40Z")

</div>

I could have thought it was that simple… Thanks both of You!
