<?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: Help with hatch text expression for mileage in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/help-with-hatch-text-expression-for-mileage/m-p/383364#M30196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great! Thx a lot!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jun 2012 08:03:30 GMT</pubDate>
    <dc:creator>MarcSommer</dc:creator>
    <dc:date>2012-06-21T08:03:30Z</dc:date>
    <item>
      <title>Help with hatch text expression for mileage</title>
      <link>https://community.esri.com/t5/python-questions/help-with-hatch-text-expression-for-mileage/m-p/383360#M30192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I´m working with ArcGIS v10. I would like to have a route with hatch text expressions like this: 50+500 km.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Creating a route and displaying the "standard" milage e.g. for a river like "20,5" is done, but I don´t know the right Phyton-code to label the hatches like written above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I startet trying with this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Function FindLabel ( esri__measure )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; FindLabel = esri__measure/1000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Function&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The results is a milage in km, but I don´t know to ad a "+" and every half kilometer a "500" or a "0".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Marc&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 08:35:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/help-with-hatch-text-expression-for-mileage/m-p/383360#M30192</guid>
      <dc:creator>MarcSommer</dc:creator>
      <dc:date>2012-06-20T08:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help with hatch text expression for mileage</title>
      <link>https://community.esri.com/t5/python-questions/help-with-hatch-text-expression-for-mileage/m-p/383361#M30193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I infered correctly, your esri__measure is in meters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If so the following code produces results as below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Function FindLabel ( esri__measure )
&amp;nbsp; If Right(CStr(esri__measure), 3) = "500" Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FindLabel = CStr((esri__measure-500)/1000) &amp;amp; " + " &amp;amp; "500 km"
&amp;nbsp; Else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FindLabel = CStr((esri__measure)/1000) &amp;amp; " + " &amp;amp; "0 km"
&amp;nbsp; End If
End Function&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]15340[/ATTACH]&amp;nbsp;&amp;nbsp;&amp;nbsp; [ATTACH=CONFIG]15341[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:38:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/help-with-hatch-text-expression-for-mileage/m-p/383361#M30193</guid>
      <dc:creator>MarcinGasior</dc:creator>
      <dc:date>2021-12-11T17:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with hatch text expression for mileage</title>
      <link>https://community.esri.com/t5/python-questions/help-with-hatch-text-expression-for-mileage/m-p/383362#M30194</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;looks great! It´s written in VBA right? If I paste it in ArcGIS it says, that the code cointains a mistake.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I took the VBScript parser. Check the pic below (hope you understand it´s german version).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]15342[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Marc&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 09:52:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/help-with-hatch-text-expression-for-mileage/m-p/383362#M30194</guid>
      <dc:creator>MarcSommer</dc:creator>
      <dc:date>2012-06-20T09:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help with hatch text expression for mileage</title>
      <link>https://community.esri.com/t5/python-questions/help-with-hatch-text-expression-for-mileage/m-p/383363#M30195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually, I didn't choose any parser.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The syntax is VBScript, but when I select VBScript parser it doesn't work indeed. (It seem that esri__measure works only when no parser is selected)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To unselect parser unclick 'Advanced' and click it again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One more note to this script: it works in this form if esri__measure is in meter and hatch interval is 500 m.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 11:40:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/help-with-hatch-text-expression-for-mileage/m-p/383363#M30195</guid>
      <dc:creator>MarcinGasior</dc:creator>
      <dc:date>2012-06-20T11:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with hatch text expression for mileage</title>
      <link>https://community.esri.com/t5/python-questions/help-with-hatch-text-expression-for-mileage/m-p/383364#M30196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great! Thx a lot!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 08:03:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/help-with-hatch-text-expression-for-mileage/m-p/383364#M30196</guid>
      <dc:creator>MarcSommer</dc:creator>
      <dc:date>2012-06-21T08:03:30Z</dc:date>
    </item>
  </channel>
</rss>

