I've been making some map layouts and just noticed this command:

< dyn type="document" property="name"/>.mxd

It make possible to change automatically my current file name: http://prntscr.com/4sdzwl

I want to ask how does it works and how do I find some other commands that makes things like these quick and easy?


This is called 'dynamic text' and is used with ArcMap Layouts:

Dynamic text is text placed on a map layout that changes dynamically based on the current properties of the map document, data frame, and Data Driven Pages. Dynamic text works through the use of tags, like HTML. Here is an example of a dynamic text tag for the title of a map document:

 <dyn type="document" property="title"/>
  • I can't see the example. Only that, all your help was really useful. Going to do my research about this dynamyc text thing. Thanks a lot. – Edixon Gutierrez Oct 2 '14 at 16:03
  • just one last question: This command= prntscr.com/4seuzh, is used to display labels in a different and more gentle way than the usual. It is part of dynamic code too? or is something else? – Edixon Gutierrez Oct 2 '14 at 17:17
  • @EdixonGutierrez That is a label expression (from the ArcMap layer properties) that basically says: label this feature with values from 2 fields, the first line use [Vere_Nombr] then create a new line (VBNewLine) and display the value from [Vere_Nom_M] – DPSSpatial_BoycottingGISSE Oct 2 '14 at 18:06
  • thanks for the information, but do you know about a guide or something in order to know the expressions that are running for ArcGIS please – Edixon Gutierrez Oct 2 '14 at 18:27
  • 1
    @EdixonGutierrez I think this is what you're after: resources.arcgis.com/en/help/main/10.1/index.html#//… – DPSSpatial_BoycottingGISSE Oct 2 '14 at 18:46

This is more a comment to the above answer, but didn't want to make a comment thread too long. Got scolded for that before.

Anyway, dynamic text is also available in map layouts; it's not limited to data driven pages. There are a variety of supported properties for dynamic text, and they can be combined with each other and static text. ESRI help...


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.