<?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 Python label expression adding text &amp; fields in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-label-expression-adding-text-fields/m-p/558531#M43646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need python label expression to&amp;nbsp;label linear assets in Arcmap 10.3 with length (rounded to nearest whole number) with a foot symbol(') at the end, plus a space, then text from a different field.&amp;nbsp; Have this so far: round(float( [LLENGTH]), 0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jul 2018 14:08:49 GMT</pubDate>
    <dc:creator>DamonOsbourne</dc:creator>
    <dc:date>2018-07-06T14:08:49Z</dc:date>
    <item>
      <title>Python label expression adding text &amp; fields</title>
      <link>https://community.esri.com/t5/python-questions/python-label-expression-adding-text-fields/m-p/558531#M43646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need python label expression to&amp;nbsp;label linear assets in Arcmap 10.3 with length (rounded to nearest whole number) with a foot symbol(') at the end, plus a space, then text from a different field.&amp;nbsp; Have this so far: round(float( [LLENGTH]), 0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 14:08:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-label-expression-adding-text-fields/m-p/558531#M43646</guid>
      <dc:creator>DamonOsbourne</dc:creator>
      <dc:date>2018-07-06T14:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Python label expression adding text &amp; fields</title>
      <link>https://community.esri.com/t5/python-questions/python-label-expression-adding-text-fields/m-p/558532#M43647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;don't know about 10.3 or vb but in python and recent versions&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;leng &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;7.4&lt;/SPAN&gt;

fld &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'from field'&lt;/SPAN&gt;

result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"{}' {}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;round&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;leng&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fld&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;result&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="number token"&gt;7&lt;/SPAN&gt;' &lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; field&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:06:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-label-expression-adding-text-fields/m-p/558532#M43647</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T00:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Python label expression adding text &amp; fields</title>
      <link>https://community.esri.com/t5/python-questions/python-label-expression-adding-text-fields/m-p/558533#M43648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I may have tagged the question incorrectly, looking for label expression syntax for the Maplex Label Engine in Arcmap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 14:58:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-label-expression-adding-text-fields/m-p/558533#M43648</guid>
      <dc:creator>DamonOsbourne</dc:creator>
      <dc:date>2018-07-06T14:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Python label expression adding text &amp; fields</title>
      <link>https://community.esri.com/t5/python-questions/python-label-expression-adding-text-fields/m-p/558534#M43649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Damon,&lt;/P&gt;&lt;P&gt;Dan has given the correct Python Label Expression in line 5 of his example.&amp;nbsp; The first variable will be the LENGTH field, and the second is whatever other text field you chose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may have to convert the length field to a float first (line 3).&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="string token"&gt;"{}' {}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;round&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;leng&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fld&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍

&lt;SPAN class="string token"&gt;"{}' {}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;round&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;float&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;leng&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fld&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="413397" class="image-1 jive-image" height="388" src="https://community.esri.com/legacyfs/online/413397_pastedImage_1.png" width="528" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:06:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-label-expression-adding-text-fields/m-p/558534#M43649</guid>
      <dc:creator>MitchHolley1</dc:creator>
      <dc:date>2021-12-12T00:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Python label expression adding text &amp; fields</title>
      <link>https://community.esri.com/t5/python-questions/python-label-expression-adding-text-fields/m-p/558535#M43650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works great.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 20:22:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-label-expression-adding-text-fields/m-p/558535#M43650</guid>
      <dc:creator>DamonOsbourne</dc:creator>
      <dc:date>2018-07-06T20:22:50Z</dc:date>
    </item>
  </channel>
</rss>

