Ability to truncate dynamic text dynamically

06-20-2012 01:28 PM
Status: Open
Labels (1)
New Contributor II

Currently in ArcMap 10 when you need to add dynamic text to a legend, such as the document path, there is no tool or ability to truncate the size to fit an established width.  Our users need the ability to input the document path name into a template and have it fit.  Some of the path names could be 40-60 characters. Without going through the hoops of creating a text box or object, opening up Document properties, copying the document path name, pasting it into the text box and then playing with the spacing until it reaches the perfect width, there should be a way to utilize dynamic text, for anything, but have it be a specified width, font, etc.  Also, utilizing another persons idea of having it be a button would allow for some scripting or programming to occur outside the schema.  You could apply python scripting to the button to pull the filePath and update automatically on your map.  It should also be able to work for Data Driven Pages.

1 Comment
It would be nice to be able to truncate the file path using something like this:

where: <dyn type="document" property="path"/>

equals text: //server/project/task/GIS/mapfile/category/MXDname.mxd

adding a format tag would allow for this:

where:  <dyn type="document" property="path" format = "mid(path,23,254)"/>

equals text: GIS/mapfile/category/MXDname.mxd