<?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: Convert VB Code to Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/convert-vb-code-to-python/m-p/692951#M53713</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//001v00000005000000"&gt;Flip Line&lt;/A&gt;&lt;SPAN&gt; tool to do this.&amp;nbsp; This tool will also honor selected features.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Sep 2012 14:01:37 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2012-09-14T14:01:37Z</dc:date>
    <item>
      <title>Convert VB Code to Python</title>
      <link>https://community.esri.com/t5/python-questions/convert-vb-code-to-python/m-p/692950#M53712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have some VB code that I used in 9.3.1 to flip selected polyline orientation. It no longer works in 10.1, is there a Python equivalent I can use to calculate on the [Shape] field?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Pre-logic Script Code:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pCurve As ICurve&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If (Not IsNull([Shape])) Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Set pCurve = [Shape]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; If (Not pCurve.IsEmpty) Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pCurve.ReverseOrientation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Shape=&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;pCurve&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2012 12:41:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-vb-code-to-python/m-p/692950#M53712</guid>
      <dc:creator>MarkFaulkner</dc:creator>
      <dc:date>2012-09-14T12:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Convert VB Code to Python</title>
      <link>https://community.esri.com/t5/python-questions/convert-vb-code-to-python/m-p/692951#M53713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//001v00000005000000"&gt;Flip Line&lt;/A&gt;&lt;SPAN&gt; tool to do this.&amp;nbsp; This tool will also honor selected features.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2012 14:01:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/convert-vb-code-to-python/m-p/692951#M53713</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2012-09-14T14:01:37Z</dc:date>
    </item>
  </channel>
</rss>

