<?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: flip selected line using python stand-alone window in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/flip-selected-line-using-python-stand-alone-window/m-p/451125#M35373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It does work good in ArcMap. I tried several times running the stand-alone python. They were all failure. Very lucky, I just got this time successful. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Nov 2013 02:37:57 GMT</pubDate>
    <dc:creator>HollyZhang1</dc:creator>
    <dc:date>2013-11-03T02:37:57Z</dc:date>
    <item>
      <title>flip selected line using python stand-alone window</title>
      <link>https://community.esri.com/t5/python-questions/flip-selected-line-using-python-stand-alone-window/m-p/451121#M35369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to flip selected pipelines using stand-alone python window. Below are the steps I used: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 1). line join attributes from other tables (MakeFeatureLayer, AddJoin);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 2). select lines based on the joined attributes (SelectLayerByAttribute);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 3). remove joins (RemoveJoin);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; 4). flip line on the selected lines (FlipLine_edit with or without MakeFeatureLayer after the selection).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is shown the same error: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Workspace or data source is read only.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Workspace or data source is read only.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (FlipLine).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone has any solution?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Nov 2013 15:58:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/flip-selected-line-using-python-stand-alone-window/m-p/451121#M35369</guid>
      <dc:creator>HollyZhang1</dc:creator>
      <dc:date>2013-11-02T15:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: flip selected line using python stand-alone window</title>
      <link>https://community.esri.com/t5/python-questions/flip-selected-line-using-python-stand-alone-window/m-p/451122#M35370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am trying to flip selected pipelines using stand-alone python window. Below are the steps I used: &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 1). line join attributes from other tables (MakeFeatureLayer, AddJoin);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 2). select lines based on the joined attributes (SelectLayerByAttribute);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 3). remove joins (RemoveJoin);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 4). flip line on the selected lines (FlipLine_edit with or without MakeFeatureLayer after the selection).&lt;BR /&gt;&lt;BR /&gt;It is shown the same error: &lt;BR /&gt;&lt;BR /&gt;ERROR 999999: Error executing function.&lt;BR /&gt;Workspace or data source is read only.&lt;BR /&gt;Workspace or data source is read only.&lt;BR /&gt;Failed to execute (FlipLine).&lt;BR /&gt;&lt;BR /&gt;Anyone has any solution?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you post your actual script?&amp;nbsp; What is the line data source?&amp;nbsp; Is it SDE?&amp;nbsp; Is it a geometric network?&amp;nbsp; What license level do you have?&amp;nbsp; How many features are you trying to flip at one time?&amp;nbsp; I found it crashes if I try to flip too many at one time (more than about 10,000).&amp;nbsp; Did you use code like this for the flipline section?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
try:
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FlipLine_edit(inFeatures)
except Exception, e:
&amp;nbsp;&amp;nbsp;&amp;nbsp; # If an error occurred, print line number and error message
&amp;nbsp;&amp;nbsp;&amp;nbsp; import traceback, sys
&amp;nbsp;&amp;nbsp;&amp;nbsp; tb = sys.exc_info()[2]
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Line %i" % tb.tb_lineno
&amp;nbsp;&amp;nbsp;&amp;nbsp; print e.message&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:08:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/flip-selected-line-using-python-stand-alone-window/m-p/451122#M35370</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2021-12-11T20:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: flip selected line using python stand-alone window</title>
      <link>https://community.esri.com/t5/python-questions/flip-selected-line-using-python-stand-alone-window/m-p/451123#M35371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the testing data in a file deodatabase. It is not a geometric network. The features are about 2000 to flip at one time. I use code exactly like this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Nov 2013 17:58:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/flip-selected-line-using-python-stand-alone-window/m-p/451123#M35371</guid>
      <dc:creator>HollyZhang1</dc:creator>
      <dc:date>2013-11-02T17:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: flip selected line using python stand-alone window</title>
      <link>https://community.esri.com/t5/python-questions/flip-selected-line-using-python-stand-alone-window/m-p/451124#M35372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am using the testing data in a file deodatabase. It is not a geometric network. The features are about 2000 to flip at one time. I use code exactly like this.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the fc open in a&amp;nbsp; map?&amp;nbsp; Have you tried editing manually?&amp;nbsp; Are you sure you have access to the workspace you used?&amp;nbsp; Post your method of getting the fc into your code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Nov 2013 19:37:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/flip-selected-line-using-python-stand-alone-window/m-p/451124#M35372</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-11-02T19:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: flip selected line using python stand-alone window</title>
      <link>https://community.esri.com/t5/python-questions/flip-selected-line-using-python-stand-alone-window/m-p/451125#M35373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It does work good in ArcMap. I tried several times running the stand-alone python. They were all failure. Very lucky, I just got this time successful. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Nov 2013 02:37:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/flip-selected-line-using-python-stand-alone-window/m-p/451125#M35373</guid>
      <dc:creator>HollyZhang1</dc:creator>
      <dc:date>2013-11-03T02:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: flip selected line using python stand-alone window</title>
      <link>https://community.esri.com/t5/python-questions/flip-selected-line-using-python-stand-alone-window/m-p/451126#M35374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Holly:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In a Python script I can't seem to get FlipLine_edit to work on a selected set of lines contained within a shapefile. Unfortunately, all of the lines are getting flipped instead of just those that are selected. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you get FlipLine_edit to work through a Python script on a selected line or set of selected lines? If you were successful with this, could you post (with code) what you did?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 16:50:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/flip-selected-line-using-python-stand-alone-window/m-p/451126#M35374</guid>
      <dc:creator>DarrenMcCormick</dc:creator>
      <dc:date>2014-03-12T16:50:49Z</dc:date>
    </item>
  </channel>
</rss>

