<?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 calculate length with the filed calculator in model builder arcgis 10 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/calculate-length-with-the-filed-calculator-in/m-p/441921#M34608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I try to use the calculator field to update a field that store lengths in a shapefile; I do this because I try to put the task in model builder. I use python under suggestion of what I read in the help and the syntax I read for this task is as follow: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;!shape.length@kilometers!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I fill the text box of the field calculator with this line of code, but it`s return a syntax error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Someone knows what it´s wrong ? I work under Windows XP, ArcGis 10, ArcEditor evaluation version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Virginia&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 May 2011 18:37:34 GMT</pubDate>
    <dc:creator>Pía_ZenaidaVirginia</dc:creator>
    <dc:date>2011-05-08T18:37:34Z</dc:date>
    <item>
      <title>calculate length with the filed calculator in model builder arcgis 10</title>
      <link>https://community.esri.com/t5/python-questions/calculate-length-with-the-filed-calculator-in/m-p/441921#M34608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I try to use the calculator field to update a field that store lengths in a shapefile; I do this because I try to put the task in model builder. I use python under suggestion of what I read in the help and the syntax I read for this task is as follow: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;!shape.length@kilometers!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I fill the text box of the field calculator with this line of code, but it`s return a syntax error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Someone knows what it´s wrong ? I work under Windows XP, ArcGis 10, ArcEditor evaluation version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Virginia&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 May 2011 18:37:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculate-length-with-the-filed-calculator-in/m-p/441921#M34608</guid>
      <dc:creator>Pía_ZenaidaVirginia</dc:creator>
      <dc:date>2011-05-08T18:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: calculate length with the filed calculator in model builder arcgis 10</title>
      <link>https://community.esri.com/t5/python-questions/calculate-length-with-the-filed-calculator-in/m-p/441922#M34609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I solved the problem. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For others: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the syntax !shape.length@kilometers! is correct, but in the dialog box CALCULATE FIELD from Model Builder, you must change "Expression Type" from python 9.3 to "python" if you work with ArcGis 10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Virginia&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 May 2011 20:03:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculate-length-with-the-filed-calculator-in/m-p/441922#M34609</guid>
      <dc:creator>Pía_ZenaidaVirginia</dc:creator>
      <dc:date>2011-05-08T20:03:27Z</dc:date>
    </item>
  </channel>
</rss>

