<?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 select expression parser for labeling in arcpy. in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/how-to-select-expression-parser-for-labeling-in/m-p/591893#M6476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Arcpy doesnt have the label parser property exposed. So you will have to write the expression using whatever the parser is set to.&amp;nbsp; We have a enhancement in our system to expose this property which we are investigating for a future release. The tracking number is NIM085794. You can also add the suggestion to ideas.esri.com.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Vote it up!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Expose label expression language in arcpy.mapping Layer interface &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://c.na9.visual.force.com/apex/ideaView?id=087E00000004T7U&amp;amp;returnUrl=%2Fapex%2FideaList%3Fc%3D09a300000004xET%26sort%3Drecent"&gt;https://c.na9.visual.force.com/apex/ideaView?id=087E00000004T7U&amp;amp;returnUrl=%2Fapex%2FideaList%3Fc%3D09a300000004xET%26sort%3Drecent&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jan 2013 21:56:27 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2013-01-31T21:56:27Z</dc:date>
    <item>
      <title>How to select expression parser for labeling in arcpy.</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-select-expression-parser-for-labeling-in/m-p/591891#M6474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a script which adds a layer file to an mxd, sets labels on and should label features with the first 10 characters of a attribute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the labeling part is&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[PHP]for i in ll.labelClasses:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; i.expression ="[FC_NAME] .substring(0,10)[/PHP]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This code sets the expression OK, I can see it in the FC properties (labels) manually in TOC. The problem is that the parser is set to VBScript, and the above expression is Jscript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I set the parser in my code to be JScript?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 09:06:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-select-expression-parser-for-labeling-in/m-p/591891#M6474</guid>
      <dc:creator>VaL</dc:creator>
      <dc:date>2013-01-18T09:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to select expression parser for labeling in arcpy.</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-select-expression-parser-for-labeling-in/m-p/591892#M6475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Arcpy doesnt have the label parser property exposed. So you will have to write the expression using whatever the parser is set to. If you set the parser in the UI to jscript for the map layer or lyr file, then you will be able to use a jscript expression. We have a enhancement in our system to expose this property which we are investigating for a future release. The tracking number is NIM085794. You can also add the suggestion to ideas.esri.com.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 14:22:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-select-expression-parser-for-labeling-in/m-p/591892#M6475</guid>
      <dc:creator>JeffMoulds</dc:creator>
      <dc:date>2013-01-18T14:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to select expression parser for labeling in arcpy.</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-select-expression-parser-for-labeling-in/m-p/591893#M6476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Arcpy doesnt have the label parser property exposed. So you will have to write the expression using whatever the parser is set to.&amp;nbsp; We have a enhancement in our system to expose this property which we are investigating for a future release. The tracking number is NIM085794. You can also add the suggestion to ideas.esri.com.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Vote it up!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Expose label expression language in arcpy.mapping Layer interface &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://c.na9.visual.force.com/apex/ideaView?id=087E00000004T7U&amp;amp;returnUrl=%2Fapex%2FideaList%3Fc%3D09a300000004xET%26sort%3Drecent"&gt;https://c.na9.visual.force.com/apex/ideaView?id=087E00000004T7U&amp;amp;returnUrl=%2Fapex%2FideaList%3Fc%3D09a300000004xET%26sort%3Drecent&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 21:56:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-select-expression-parser-for-labeling-in/m-p/591893#M6476</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-01-31T21:56:27Z</dc:date>
    </item>
  </channel>
</rss>

