<?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 in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/1017514#M36062</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fr.JPG" style="width: 504px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/3981i84633F14A5237765/image-size/large?v=v2&amp;amp;px=999" role="button" title="fr.JPG" alt="fr.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hi~~~~&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to express it using Python as below.&lt;/P&gt;&lt;P&gt;I'd appreciate it if you could code it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I would like to label “Paris” as follows.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;def FindLabel ( [C-NAME]:&lt;/P&gt;&lt;P&gt;if [C-NAME]=="France":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Beyond : None&lt;/P&gt;&lt;P&gt;Out Beyond : 1:15,000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&amp;lt;CLR #BDBDBD'&amp;gt;" "&amp;lt;FNT name = 'Arial' size = '12'&amp;gt;" font style : bold&lt;/P&gt;&lt;P&gt;Outline color : #BDBDBD&lt;/P&gt;&lt;P&gt;Outline width : 0.3pt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Halo color : #BDBDBD&lt;/P&gt;&lt;P&gt;Halo Outline color : # D1D0CE&lt;/P&gt;&lt;P&gt;Halo Outline width : 0.3pt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I would like to label “Roma” as follows.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;def FindLabel ( [C-NAME]:&lt;/P&gt;&lt;P&gt;if [C-NAME]=="Itlay":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Beyond : 1:15,001&lt;/P&gt;&lt;P&gt;Out Beyond : 1:35,000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&amp;lt;CLR #FF0000'&amp;gt;" "&amp;lt;FNT name = 'Arial' size = '12'&amp;gt;" font style : regular&lt;/P&gt;&lt;P&gt;Outline color : #BDBDBD&lt;/P&gt;&lt;P&gt;Outline width : 0.3pt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Halo color : #BDBDBD&lt;/P&gt;&lt;P&gt;Halo Outline color : # D1D0CE&lt;/P&gt;&lt;P&gt;Halo Outline width : 0.3pt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you~~&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 17 Jan 2021 13:59:17 GMT</pubDate>
    <dc:creator>KalSsin</dc:creator>
    <dc:date>2021-01-17T13:59:17Z</dc:date>
    <item>
      <title>python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/1017514#M36062</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fr.JPG" style="width: 504px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/3981i84633F14A5237765/image-size/large?v=v2&amp;amp;px=999" role="button" title="fr.JPG" alt="fr.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hi~~~~&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to express it using Python as below.&lt;/P&gt;&lt;P&gt;I'd appreciate it if you could code it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I would like to label “Paris” as follows.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;def FindLabel ( [C-NAME]:&lt;/P&gt;&lt;P&gt;if [C-NAME]=="France":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Beyond : None&lt;/P&gt;&lt;P&gt;Out Beyond : 1:15,000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&amp;lt;CLR #BDBDBD'&amp;gt;" "&amp;lt;FNT name = 'Arial' size = '12'&amp;gt;" font style : bold&lt;/P&gt;&lt;P&gt;Outline color : #BDBDBD&lt;/P&gt;&lt;P&gt;Outline width : 0.3pt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Halo color : #BDBDBD&lt;/P&gt;&lt;P&gt;Halo Outline color : # D1D0CE&lt;/P&gt;&lt;P&gt;Halo Outline width : 0.3pt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I would like to label “Roma” as follows.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;def FindLabel ( [C-NAME]:&lt;/P&gt;&lt;P&gt;if [C-NAME]=="Itlay":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Beyond : 1:15,001&lt;/P&gt;&lt;P&gt;Out Beyond : 1:35,000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&amp;lt;CLR #FF0000'&amp;gt;" "&amp;lt;FNT name = 'Arial' size = '12'&amp;gt;" font style : regular&lt;/P&gt;&lt;P&gt;Outline color : #BDBDBD&lt;/P&gt;&lt;P&gt;Outline width : 0.3pt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Halo color : #BDBDBD&lt;/P&gt;&lt;P&gt;Halo Outline color : # D1D0CE&lt;/P&gt;&lt;P&gt;Halo Outline width : 0.3pt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you~~&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2021 13:59:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/1017514#M36062</guid>
      <dc:creator>KalSsin</dc:creator>
      <dc:date>2021-01-17T13:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/1017516#M36063</link>
      <description>&lt;P&gt;Are you intending this within the python label expression window or you want to achieve this using arcpy outside of the ArcGIS Pro interface?&amp;nbsp; I don't believe the visibility range can be set using a label expression, rather it would be applied as part of the labelling class.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2021 14:17:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/1017516#M36063</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-01-17T14:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/1017546#M36065</link>
      <description>&lt;P&gt;Thank you so much~~~~&lt;/P&gt;&lt;P&gt;I want to label expression window. (no outside)&lt;/P&gt;&lt;P&gt;I have modified the contents below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I would like to label “Paris” as follows.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;def FindLabel ( [C-NAME]:&lt;/P&gt;&lt;P&gt;if [C-NAME]=="France":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&amp;lt;CLR #BDBDBD'&amp;gt;" "&amp;lt;FNT name = 'Arial' size = '12'&amp;gt;" font style : bold&lt;/P&gt;&lt;P&gt;Outline color : #BDBDBD&lt;/P&gt;&lt;P&gt;Outline width : 0.3pt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Halo color : #BDBDBD&lt;/P&gt;&lt;P&gt;Halo Outline color : # D1D0CE&lt;/P&gt;&lt;P&gt;Halo Outline width : 0.3pt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I would like to label “Roma” as follows.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;def FindLabel ( [C-NAME]:&lt;/P&gt;&lt;P&gt;if [C-NAME]=="Itlay":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&amp;lt;CLR #FF0000'&amp;gt;" "&amp;lt;FNT name = 'Arial' size = '12'&amp;gt;" font style : regular&lt;/P&gt;&lt;P&gt;Outline color : #BDBDBD&lt;/P&gt;&lt;P&gt;Outline width : 0.3pt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Halo color : #BDBDBD&lt;/P&gt;&lt;P&gt;Halo Outline color : # D1D0CE&lt;/P&gt;&lt;P&gt;Halo Outline width : 0.3pt&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 00:04:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/1017546#M36065</guid>
      <dc:creator>KalSsin</dc:creator>
      <dc:date>2021-01-18T00:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/1017564#M36067</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/199233"&gt;@KalSsin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an example of text formatting I used in my case:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def FindLabel ([Location_Status], [Speed]):
    locstat = str([Location_Status])
    if locstat == "Active":
        label = "&amp;lt;BOL&amp;gt;&amp;lt;FNT size= '25' name = 'Arial'&amp;gt;&amp;lt;CLR red='255' 
        green='236' blue='0' alpha='100'&amp;gt;&amp;lt;BGD red='0' green='0' blue='0' 
        alpha='100'&amp;gt;" + str([Speed]) + "&amp;lt;/BGD&amp;gt;&amp;lt;/CLR&amp;gt;&amp;lt;/FNT&amp;gt;&amp;lt;/BOL&amp;gt;"
        return label&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this gives you some insights on what options are available.&lt;/P&gt;&lt;P&gt;I couldn't find any scale ranging in python label expressions.&lt;/P&gt;&lt;P&gt;This is a useful link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/text/text-formatting-tags.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/help/mapping/text/text-formatting-tags.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Mehdi&lt;/P&gt;&lt;P&gt;======================================================================&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please give a like if helpful and Accept as Solution if it's answered your query.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 07:39:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/1017564#M36067</guid>
      <dc:creator>MehdiPira1</dc:creator>
      <dc:date>2021-01-18T07:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/1017632#M36076</link>
      <description>&lt;P&gt;thank you so much~~~~&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 09:35:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/1017632#M36076</guid>
      <dc:creator>KalSsin</dc:creator>
      <dc:date>2021-01-18T09:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/1018599#M36175</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/199233"&gt;@KalSsin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if my reply has answered your question, would you please Accept as Solution?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 06:00:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python/m-p/1018599#M36175</guid>
      <dc:creator>MehdiPira1</dc:creator>
      <dc:date>2021-01-21T06:00:26Z</dc:date>
    </item>
  </channel>
</rss>

