<?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 Update Font And Color Of a Label in ArcMap Using ArcPy in Python Snippets Questions</title>
    <link>https://community.esri.com/t5/python-snippets-questions/how-to-update-font-and-color-of-a-label-in-arcmap/m-p/870064#M642</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but labeling is not adding to .lyr !&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a layer from map document it is applying the symbology but not enable and apply Labeling setting in new layer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2018 19:51:57 GMT</pubDate>
    <dc:creator>BruceGreen</dc:creator>
    <dc:date>2018-10-24T19:51:57Z</dc:date>
    <item>
      <title>How to Update Font And Color Of a Label in ArcMap Using ArcPy</title>
      <link>https://community.esri.com/t5/python-snippets-questions/how-to-update-font-and-color-of-a-label-in-arcmap/m-p/870062#M640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;I am adding a layer to map docyment through and stand alone ArcPy snippet like this&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;MXD &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MapDocument&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"C:\\arcgis\\ArcTutor\\AAA\\MXDs\\map.mxd"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
df &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListDataFrames&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;MXD&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&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;&lt;SPAN class="string token"&gt;'Step 3'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
layer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Layer&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Primary"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;minScale &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;10000&lt;/SPAN&gt;
layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;showLabels &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddLayer&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;df&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; layer&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"AUTO_ARRANGE"&lt;/SPAN&gt;&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;/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;/PRE&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;Can you please let me know how I can change the label font two&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;14&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and color to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;red&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;using ArcPy?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:51:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/how-to-update-font-and-color-of-a-label-in-arcmap/m-p/870062#M640</guid>
      <dc:creator>BruceGreen</dc:creator>
      <dc:date>2021-12-12T10:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to Update Font And Color Of a Label in ArcMap Using ArcPy</title>
      <link>https://community.esri.com/t5/python-snippets-questions/how-to-update-font-and-color-of-a-label-in-arcmap/m-p/870063#M641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, but this&amp;nbsp;kind of granular control of symbology is not supported in arcpy. The way to do this is to&amp;nbsp;use ArcMap to set up the symbology and labeling you want, and save it as a .lyr file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your script use &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/layer-class.htm"&gt;arcpy.mapping.Layer() &lt;/A&gt;to load the layer in, and use the replaceDataSource method to set the layer to use your data.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 02:16:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/how-to-update-font-and-color-of-a-label-in-arcmap/m-p/870063#M641</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2018-10-24T02:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Update Font And Color Of a Label in ArcMap Using ArcPy</title>
      <link>https://community.esri.com/t5/python-snippets-questions/how-to-update-font-and-color-of-a-label-in-arcmap/m-p/870064#M642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but labeling is not adding to .lyr !&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a layer from map document it is applying the symbology but not enable and apply Labeling setting in new layer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 19:51:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/how-to-update-font-and-color-of-a-label-in-arcmap/m-p/870064#M642</guid>
      <dc:creator>BruceGreen</dc:creator>
      <dc:date>2018-10-24T19:51:57Z</dc:date>
    </item>
  </channel>
</rss>

