Select to view content in your preferred language

Dynamic Text name help

1021
3
04-23-2021 02:04 PM
Labels (3)
HaileyG
Emerging Contributor

I am trying to figure out how to get the dynamic text to read the name of the layout feature it refers to. For example, the name of this text feature is "Plot 1". Instead of having to open up properties and type in "Plot 1" is there a dynamic text script that will just use the name field? 

Referring to picture, name would say Plot 1 and the text field would fill with that namedynamic text.JPG

0 Kudos
3 Replies
CarlMorrison
Frequent Contributor

One quick way is to navigate to the Insert tab on the ribbon, on the Graphics and Text panel select Dynamic Text and browse to the Layout section and select Name which will place text on your layout.  Open that text element and copy the dynamic text code and past it into your text.  Your version should look like this 

<dyn type="layout" name="Plot1"  property="name"/>

 

0 Kudos
HaileyG
Emerging Contributor

Thank you for the suggestion! That just seems to return the name of the layout though, not the name of the text element. I am just trying to get the name of my text to match what the actual text says. 

0 Kudos
Cheryl
by
Emerging Contributor

I'm sure you've solved this long ago, so this reply is for people looking for the answer who stumble upon this post, like I did (Carl's reply led me to what I actually wanted.). I'm guessing that, also like me, you were looking for the name of the geometries you're using for the map series extent. You do go to Dynamic Text on the Graphics and Text section of the Insert tab but go down to Map Series and you can select the page name, or even the page number if you set that to one of your fields when you create the Map Series.

0 Kudos