<?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 can we set Label scale and placement property using arcpy? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-can-we-set-label-scale-and-placement-property/m-p/461747#M36126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No it doesn't throw an error. It does show labels with the format I mentioned in that line. Now I want add the scale to the label and set the placement property to it. Which I have no idea how to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Sep 2016 22:05:08 GMT</pubDate>
    <dc:creator>ManjariGoyal</dc:creator>
    <dc:date>2016-09-27T22:05:08Z</dc:date>
    <item>
      <title>how can we set Label scale and placement property using arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-we-set-label-scale-and-placement-property/m-p/461745#M36124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is the code and what I am trying to do is set the &lt;STRONG&gt;scale range&lt;/STRONG&gt; on &lt;STRONG&gt;Label&amp;nbsp;minScale = 500000; &lt;/STRONG&gt;and&lt;STRONG&gt; label placement &lt;/STRONG&gt;should be&lt;STRONG&gt; top center only. &lt;/STRONG&gt;I am sure how to automate this through&lt;STRONG&gt; arcpy.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.MakeFeatureLayer_management(FC7, r"C:\Users\Documents\Search_Ring.lyr")&lt;BR /&gt;layer7 = arcpy.mapping.Layer(r"C:\Users\DocumentsSearch_Ring.lyr")&lt;BR /&gt;Sym_layer7 = r"C:\Users\Documents\Symbology layer new\Search Ring.lyr"&lt;BR /&gt;arcpy.ApplySymbologyFromLayer_management (layer7, Sym_layer7)&lt;BR /&gt;arcpy.mapping.AddLayer(df, layer7, "AUTO_ARRANGE")&lt;BR /&gt;lyr7 = arcpy.mapping.ListLayers(mxd, "", df)[0]&lt;BR /&gt;&lt;STRONG&gt;lyr7.labelClasses[0].expression = '"{}" + [Candidate_Code] + "{}"'.format("&amp;lt;CLR blue='255'&amp;gt;&amp;lt;FNT size = '9'&amp;gt;&amp;lt;BOL&amp;gt;", "&amp;lt;/BOL&amp;gt;&amp;lt;/FNT&amp;gt;&amp;lt;/CLR&amp;gt;")&lt;/STRONG&gt;&lt;BR /&gt;lyr7.showLabels = True&lt;BR /&gt;lyr7.visible = False&lt;BR /&gt;lyr7.name = "Search_Ring"&lt;BR /&gt;lyr7.maxScale = 0;&lt;BR /&gt;lyr7.minScale = 25000000;&lt;BR /&gt;lyr7.transparency = 25;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 21:01:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-we-set-label-scale-and-placement-property/m-p/461745#M36124</guid>
      <dc:creator>ManjariGoyal</dc:creator>
      <dc:date>2016-09-27T21:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: how can we set Label scale and placement property using arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-we-set-label-scale-and-placement-property/m-p/461746#M36125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your hightlighted line doesn't look right since it isn't python-esque. &amp;nbsp;Did it throw an error? and I assume you have gone through the link&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/labelclass-class.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/labelclass-class.htm"&gt;LabelClass—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 21:42:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-we-set-label-scale-and-placement-property/m-p/461746#M36125</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-09-27T21:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: how can we set Label scale and placement property using arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-we-set-label-scale-and-placement-property/m-p/461747#M36126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No it doesn't throw an error. It does show labels with the format I mentioned in that line. Now I want add the scale to the label and set the placement property to it. Which I have no idea how to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 22:05:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-we-set-label-scale-and-placement-property/m-p/461747#M36126</guid>
      <dc:creator>ManjariGoyal</dc:creator>
      <dc:date>2016-09-27T22:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: how can we set Label scale and placement property using arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-we-set-label-scale-and-placement-property/m-p/461748#M36127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't believe you can.&amp;nbsp; ArcPy doesn't implement the entire ArcGIS for Desktop object model or API, it implements a subset.&amp;nbsp; The ArcMap &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/labelclass-class.htm"&gt;LabelClass &lt;/A&gt;is fairly limited.&amp;nbsp; In your case, it doesn't offer access to scale or placement properties.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 23:47:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-we-set-label-scale-and-placement-property/m-p/461748#M36127</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-09-27T23:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: how can we set Label scale and placement property using arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-we-set-label-scale-and-placement-property/m-p/461749#M36128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 13:06:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-we-set-label-scale-and-placement-property/m-p/461749#M36128</guid>
      <dc:creator>ManjariGoyal</dc:creator>
      <dc:date>2016-09-28T13:06:24Z</dc:date>
    </item>
  </channel>
</rss>

