<?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: Extend line to specific distance or a line in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/227542#M17650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh okay. Yes, that script could certainly be refined to do some linear conversions based on spatial reference of the input or force a consistent projected spatial reference throughout processing regardless of the inputs. Glad you got it to work though!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Aug 2020 18:03:25 GMT</pubDate>
    <dc:creator>LukeSturtevant</dc:creator>
    <dc:date>2020-08-03T18:03:25Z</dc:date>
    <item>
      <title>Extend line to specific distance or a line</title>
      <link>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/227535#M17643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to extend my polyline to a given distance. How can I do this. I have attached image to clear my specification.&lt;/P&gt;&lt;P&gt;I am using .net in arcmap . I am also using python &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 08:35:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/227535#M17643</guid>
      <dc:creator>MonirRahman</dc:creator>
      <dc:date>2016-01-07T08:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Extend line to specific distance or a line</title>
      <link>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/227536#M17644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Reza, you need to figure out what you want to use first&lt;/P&gt;&lt;P&gt;&lt;A href="http://gis.stackexchange.com/questions/175877/extend-line-to-specific-distance-or-a-line" title="http://gis.stackexchange.com/questions/175877/extend-line-to-specific-distance-or-a-line"&gt;arcpy - Extend line to specific distance or a line - Geographic Information Systems Stack Exchange&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 10:03:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/227536#M17644</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-01-07T10:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Extend line to specific distance or a line</title>
      <link>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/227537#M17645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you are looking for something like this? &lt;A href="http://gis.stackexchange.com/questions/71645/a-tool-or-way-to-extend-line-by-specified-distance" title="http://gis.stackexchange.com/questions/71645/a-tool-or-way-to-extend-line-by-specified-distance"&gt;arcgis 10.1 - A tool or way to Extend line by specified distance? - Geographic Information Systems Stack Exchange&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've put the script into a working script tool attached to this thread for you to try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 12:11:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/227537#M17645</guid>
      <dc:creator>LukeSturtevant</dc:creator>
      <dc:date>2016-01-07T12:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Extend line to specific distance or a line</title>
      <link>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/227538#M17646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Useful to extend a line both ways by using with flip tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 20:44:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/227538#M17646</guid>
      <dc:creator>ArthurCrawford</dc:creator>
      <dc:date>2018-10-24T20:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Extend line to specific distance or a line</title>
      <link>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/227539#M17647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, &lt;A href="https://community.esri.com/migrated-users/71545"&gt;Luke Sturtevant&lt;/A&gt;‌ for creating a toolbox for this script, this tool seems to be the solution I'm looking for. Unfortunately, I receive an error with the following information when I try to use the script with a feature class in a file geodatabase in ArcMap 10.6:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;File "C:\Users\bschroeder\Desktop\Extend Lines.tbx\Extend Lines.tbx#extendLines2.py", line 54, in &amp;lt;module&amp;gt;&lt;BR /&gt;SystemError: error return without exception set&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Any thoughts on what may be causing the error&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/7010"&gt;Arthur Crawford&lt;/A&gt;‌?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2020 01:11:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/227539#M17647</guid>
      <dc:creator>Britta_Schroeder</dc:creator>
      <dc:date>2020-07-31T01:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Extend line to specific distance or a line</title>
      <link>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/227540#M17648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/20212"&gt;Britta Schroeder&lt;/A&gt;‌. Sorry to hear the script isn't working for you. Amazingly after 5 years I downloaded the script tool and ran it on some sample data in a geodatabase and it worked. I'm guessing that error you are seeing is due to a schema lock on the data or perhaps the environment the data are in. Additionally, you could try initiating an edit session in the script by using &lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/data-access/editor.htm"&gt;arcpy.da.Editor&lt;/A&gt; before the script enters the update cursor&amp;nbsp;near the end of the script.&amp;nbsp;You could also try exporting the data to a shapefile or possibly a new geodatabase and testing the script on the new export.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2020 17:36:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/227540#M17648</guid>
      <dc:creator>LukeSturtevant</dc:creator>
      <dc:date>2020-08-03T17:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Extend line to specific distance or a line</title>
      <link>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/227541#M17649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, &lt;A href="https://community.esri.com/migrated-users/71545"&gt;Luke Sturtevant&lt;/A&gt;‌, it was user error: my dataset was GCS with degree units and I was trying to enter a number intended for meters (which exceeded 360). It works great with the right units (said NASA).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2020 17:58:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/227541#M17649</guid>
      <dc:creator>Britta_Schroeder</dc:creator>
      <dc:date>2020-08-03T17:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Extend line to specific distance or a line</title>
      <link>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/227542#M17650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh okay. Yes, that script could certainly be refined to do some linear conversions based on spatial reference of the input or force a consistent projected spatial reference throughout processing regardless of the inputs. Glad you got it to work though!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2020 18:03:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/227542#M17650</guid>
      <dc:creator>LukeSturtevant</dc:creator>
      <dc:date>2020-08-03T18:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Extend line to specific distance or a line</title>
      <link>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/1083900#M61882</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Sorry for bothering you again with this issue. The Extend Lines script worked perfect for me, thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/142829"&gt;@LukeSturtevant&lt;/a&gt;&amp;nbsp; for that! I need to extend the lines in both directions but the flip tool doesn't seem to work. The lines are still extended into the same direction as before. Any ideas what the problem might be?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 13:12:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/1083900#M61882</guid>
      <dc:creator>Deborah_Priss</dc:creator>
      <dc:date>2021-07-29T13:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Extend line to specific distance or a line</title>
      <link>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/1083968#M61884</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/506436"&gt;@Deborah_Priss&lt;/a&gt;.&amp;nbsp;I've attached an updated version of this tool that might help with extending in both directions. Make sure that you run the tool in an open ArcMap document or ArcGIS Pro project and not through ArcCatalog. As a check, I would suggest you run the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/feature-vertices-to-points.htm" target="_blank" rel="noopener"&gt;Feature Vertices To Point tool&lt;/A&gt; to get both end and start points for your lines before running this tool and then do a manual check to see if the tool is behaving the way you are expecting.&lt;/P&gt;&lt;P&gt;EDITED: I've replaced the attached zip file to comply with ArcMap script tool parameter syntax. Deborah has confirmed that it works in ArcMap now. There is also an additional option to extend in both directions.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 15:51:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/1083968#M61884</guid>
      <dc:creator>lsturtevant</dc:creator>
      <dc:date>2021-07-30T15:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Extend line to specific distance or a line</title>
      <link>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/1083999#M61885</link>
      <description>&lt;P&gt;Thank you again! However, I cannot run it: Error - value is not member of Feet | Meter. I've never really used Python and am not familiar with arcpy, so I cannot adjust the script myself - Sorry! My .shp is in a projected coordinate system with meters as linear unit.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 15:10:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/1083999#M61885</guid>
      <dc:creator>Deborah_Priss</dc:creator>
      <dc:date>2021-07-29T15:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Extend line to specific distance or a line</title>
      <link>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/1110557#M62775</link>
      <description>&lt;P&gt;Hi Isturtevant,&lt;/P&gt;&lt;P&gt;Thank you for this solution. I want to include your tool in my model builder process flow, and therefore need an output variable so I can use its outputs in the process. Do you have any tips for how to achieve this?&lt;/P&gt;</description>
      <pubDate>Sun, 24 Oct 2021 09:41:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/1110557#M62775</guid>
      <dc:creator>EVEA0</dc:creator>
      <dc:date>2021-10-24T09:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Extend line to specific distance or a line</title>
      <link>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/1110816#M62778</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/531676"&gt;@EVEA0&lt;/a&gt;. To add an output variable for a model builder process you can edit the Extend Line script tool parameters to include a "Derived" output like so:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lsturtevant_0-1635168571652.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26063iB75108EBECB15AF9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lsturtevant_0-1635168571652.png" alt="lsturtevant_0-1635168571652.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 13:30:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/1110816#M62778</guid>
      <dc:creator>lsturtevant</dc:creator>
      <dc:date>2021-10-25T13:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Extend line to specific distance or a line</title>
      <link>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/1350189#M69251</link>
      <description>&lt;P&gt;Apologies for the late reply&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/279085"&gt;@Britta_Schroeder&lt;/a&gt;. We no longer have access to ArcMap on our systems so I cannot troubleshoot the error you are experiencing. Line 54 is simply compiling coordinate pairs into a list. It could be that older versions of Python in ArcMap are not compatible with the zip list function that is being called here or perhaps there is an issue with some of your lines. Also, the tools assumes that the data are in a projected coordinate system with a linear reference of meters or feet so if your data are in a geographic coordinate system this could also be causing issues.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 12:59:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extend-line-to-specific-distance-or-a-line/m-p/1350189#M69251</guid>
      <dc:creator>lsturtevant</dc:creator>
      <dc:date>2023-11-16T12:59:39Z</dc:date>
    </item>
  </channel>
</rss>

