<?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 Re: How to get just MGA Zone from Dynamic Text in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/how-to-get-just-mga-zone-from-dynamic-text/m-p/613366#M6674</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Steve&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think your workaround should work without any/many side effects as long as the *.prj file gets re-edited with each major upgrade to a new version.&amp;nbsp; It's certainly simpler than what I do, so will be usable without having to dive into Python, VB, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Graeme&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Mar 2012 03:45:51 GMT</pubDate>
    <dc:creator>GraemeBrowning</dc:creator>
    <dc:date>2012-03-08T03:45:51Z</dc:date>
    <item>
      <title>How to get just MGA Zone from Dynamic Text</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-get-just-mga-zone-from-dynamic-text/m-p/613362#M6670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using Python and ArcPy to automate mapping and have a requirement to project on-the-fly to the appropriate MGA Zone (in Australia) and to report that zone in a text element.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works well as long as I am happy to use this dynamic text string: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;dyn type="dataFrame" name="Main Map" property="sr" srProperty="name"/&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, this will display &lt;/SPAN&gt;&lt;STRONG&gt;GDA 1994 MGA Zone 56&lt;/STRONG&gt;&lt;SPAN&gt; when my spatial reference has been set to C:\Program Files\ArcGIS\Desktop10.0\Coordinate Systems\Projected Coordinate Systems\National Grids\Australia\&lt;/SPAN&gt;&lt;STRONG&gt;GDA 1994 MGA Zone 56&lt;/STRONG&gt;&lt;SPAN&gt;.prj&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, my client has a requirement to just put out &lt;/SPAN&gt;&lt;STRONG&gt;zone 56&lt;/STRONG&gt;&lt;SPAN&gt; instead of &lt;/SPAN&gt;&lt;STRONG&gt;GDA 1994 MGA Zone 56&lt;/STRONG&gt;&lt;SPAN&gt; and so I have been trying to figure out how to have the Dynamic Text get hold of just the zone &lt;/SPAN&gt;&lt;STRONG&gt;56&lt;/STRONG&gt;&lt;SPAN&gt; part instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Two things that I have tried so far are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Set the name property on the SpatialReference object after creating it to be "zone 56"&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Rename the *.prj file to be called "zone 56.prj" before creating the SpatialReference from it&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;Neither appears to provide a solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could resort to just creating a pseudo-dynamic text element, but before doing that, does anyone know another way to enable a dynamic text element to pull out just the zone number from a spatial reference like this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 04:38:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-get-just-mga-zone-from-dynamic-text/m-p/613362#M6670</guid>
      <dc:creator>GraemeBrowning</dc:creator>
      <dc:date>2012-03-05T04:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get just MGA Zone from Dynamic Text</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-get-just-mga-zone-from-dynamic-text/m-p/613363#M6671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think you can do this with Dynamic Text elements.&amp;nbsp; You will need to add your own text element and update its value using arcpy.mapping.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 14:23:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-get-just-mga-zone-from-dynamic-text/m-p/613363#M6671</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2012-03-05T14:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get just MGA Zone from Dynamic Text</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-get-just-mga-zone-from-dynamic-text/m-p/613364#M6672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jeff&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll now do it that "pseudo dynamic text" way.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll probably also float this as an ArcGIS Idea to see if it is just me that has been looking for it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 21:23:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-get-just-mga-zone-from-dynamic-text/m-p/613364#M6672</guid>
      <dc:creator>GraemeBrowning</dc:creator>
      <dc:date>2012-03-05T21:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get just MGA Zone from Dynamic Text</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-get-just-mga-zone-from-dynamic-text/m-p/613365#M6673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Graeme,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a hack-y version - update the label inside the PRJ file using a text editor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This seems to work, although it might not be advisable/supported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]12501[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 01:03:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-get-just-mga-zone-from-dynamic-text/m-p/613365#M6673</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-03-08T01:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get just MGA Zone from Dynamic Text</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-get-just-mga-zone-from-dynamic-text/m-p/613366#M6674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Steve&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think your workaround should work without any/many side effects as long as the *.prj file gets re-edited with each major upgrade to a new version.&amp;nbsp; It's certainly simpler than what I do, so will be usable without having to dive into Python, VB, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Graeme&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 03:45:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-get-just-mga-zone-from-dynamic-text/m-p/613366#M6674</guid>
      <dc:creator>GraemeBrowning</dc:creator>
      <dc:date>2012-03-08T03:45:51Z</dc:date>
    </item>
  </channel>
</rss>

