<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Control Character Length in Dynamic Text in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/control-character-length-in-dynamic-text/m-p/298381#M3099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to label the Arcmap document "name" dynamically, and I need to trim some of the characters off of the right side. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, This is what the name looks like now:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;00000-00(000)PR-001 this is a test to remove text.mxd&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is what I would like to show on the finished product:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;00000-00(000)PR-001&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the code I'm using and need to alter in some way:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;&amp;lt;dyn type="document" property="name"/&amp;gt; &amp;lt;dyn type="document" property="date saved" format="short"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have a job code, and usually after the job code, we put a simple description of the map in the name to quickly ID a map we need to find. I just need to remove this description automatically.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Dec 2010 20:52:07 GMT</pubDate>
    <dc:creator>MichaelHoolahan</dc:creator>
    <dc:date>2010-12-29T20:52:07Z</dc:date>
    <item>
      <title>Control Character Length in Dynamic Text</title>
      <link>https://community.esri.com/t5/mapping-questions/control-character-length-in-dynamic-text/m-p/298381#M3099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to label the Arcmap document "name" dynamically, and I need to trim some of the characters off of the right side. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, This is what the name looks like now:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;00000-00(000)PR-001 this is a test to remove text.mxd&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is what I would like to show on the finished product:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;00000-00(000)PR-001&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the code I'm using and need to alter in some way:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;&amp;lt;dyn type="document" property="name"/&amp;gt; &amp;lt;dyn type="document" property="date saved" format="short"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have a job code, and usually after the job code, we put a simple description of the map in the name to quickly ID a map we need to find. I just need to remove this description automatically.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 20:52:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/control-character-length-in-dynamic-text/m-p/298381#M3099</guid>
      <dc:creator>MichaelHoolahan</dc:creator>
      <dc:date>2010-12-29T20:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Control Character Length in Dynamic Text</title>
      <link>https://community.esri.com/t5/mapping-questions/control-character-length-in-dynamic-text/m-p/298382#M3100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Michael,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This special formating can't be done within a dynamic tag.&amp;nbsp; There are not built in options to strip away characters using some pre-determined logic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This could be done using basic Python string manipulation but that would require that you replace the dynamic tags with scripting logic and use arcpy.mapping to generate your output.&amp;nbsp; The maps would need to be generated using a script as opposed to it being dynamic within the user interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this is a direction you want to go, I could provide you with some of the logic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 15:10:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/control-character-length-in-dynamic-text/m-p/298382#M3100</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2010-12-30T15:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Control Character Length in Dynamic Text</title>
      <link>https://community.esri.com/t5/mapping-questions/control-character-length-in-dynamic-text/m-p/298383#M3101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like to know how to do this sense Mike hasnt responded.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 15:02:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/control-character-length-in-dynamic-text/m-p/298383#M3101</guid>
      <dc:creator>JonathanNorton</dc:creator>
      <dc:date>2011-07-13T15:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Control Character Length in Dynamic Text</title>
      <link>https://community.esri.com/t5/mapping-questions/control-character-length-in-dynamic-text/m-p/298384#M3102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeff,&lt;/P&gt;&lt;P&gt;Would you be so kind as to help me? I am trying to accmplish a similar task as Michel to no avail. I would like to insert text to my mxd that represents the name of the mxd, but&amp;nbsp; I need to remove one character from the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 17:04:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/control-character-length-in-dynamic-text/m-p/298384#M3102</guid>
      <dc:creator>CourtneyGordon1</dc:creator>
      <dc:date>2014-07-16T17:04:34Z</dc:date>
    </item>
  </channel>
</rss>

