<?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 Polyline Creation in Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/polyline-creation-in-python/m-p/259740#M19982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I have a spreadsheet with a Line ID, a Begining point X,Y,Z and End Point X,Y,Z and even a distance plus other attributes. How do I create a polyline in python from this data and keep my attributes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Feb 2013 17:59:05 GMT</pubDate>
    <dc:creator>jamesborris</dc:creator>
    <dc:date>2013-02-22T17:59:05Z</dc:date>
    <item>
      <title>Polyline Creation in Python</title>
      <link>https://community.esri.com/t5/python-questions/polyline-creation-in-python/m-p/259740#M19982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I have a spreadsheet with a Line ID, a Begining point X,Y,Z and End Point X,Y,Z and even a distance plus other attributes. How do I create a polyline in python from this data and keep my attributes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 17:59:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/polyline-creation-in-python/m-p/259740#M19982</guid>
      <dc:creator>jamesborris</dc:creator>
      <dc:date>2013-02-22T17:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Polyline Creation in Python</title>
      <link>https://community.esri.com/t5/python-questions/polyline-creation-in-python/m-p/259741#M19983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Probably you could use this ready-made tool, but looks like this doesn't include Z?:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;XY To Line (Data Management) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Desktop » Geoprocessing » Tool reference » Data Management toolbox&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/XY_To_Line/0017000000tv000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/XY_To_Line/0017000000tv000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...even has a parameter to write an ID field -- the doc suggests that is what it is for, your expressed purpose of 'joining' your other attributes to the features.&amp;nbsp; After you join, or if you use join fields, at any rate you can 'preserve' the joined output in a newly exported fc.&amp;nbsp; Or, if you want that automated further, it would be easy for you to work out with what sounds like a 3 step process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suppose in order to include the Z component as you mentioned, you could use the Make XY Event instead - it isn't immediately apparent but can accommodate Z, check the webhelp link below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The syntax (Z is the last parameter):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MakeXYEventLayer_management (table, in_x_field, in_y_field, out_layer, {spatial_reference}, {in_z_field})&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Make XY Event Layer (Data Management) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Desktop » Geoprocessing » Tool reference » Data Management toolbox&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Make_XY_Event_Layer/00170000006z000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/Make_XY_Event_Layer/00170000006z000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Wayne&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&amp;nbsp; I guess I didn't finish my train of thought there ------ so with the Make XY Event Layer (including your Z component), I think you could do the line processing with the Points To Line tool (then use a join process or cursor operation to get your other field vals).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Points To Line (Data Management) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Desktop » Geoprocessing » Tool reference » Data Management toolbox&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00170000003s000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00170000003s000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 20:57:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/polyline-creation-in-python/m-p/259741#M19983</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2013-02-22T20:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Polyline Creation in Python</title>
      <link>https://community.esri.com/t5/python-questions/polyline-creation-in-python/m-p/259742#M19984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I thought it was warranted to respond further esp since this involved an easy modification of a script I posted here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/76719-finding-the-centroid-between-two-points#9"&gt;http://forums.arcgis.com/threads/76719-finding-the-centroid-between-two-points#9&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll attach a zip file containing a py (python script), a file gdb this script writes output to, and an xlsx which this script reads input from...pretty self-explanatory I think, esp with the notes from the other 'finding the centroid...' post, with the exception that this doesn't write multipoint output or multiple fcs and this has nothing to do with projecting data.&amp;nbsp; All it includes is XYZ input from 2 xlsx sheets plotted into a pre-made fc, FL east state plane proj with Z enabled w/ vertical datum NAVD_1988.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All that needs to be done to execute is to run the script (created w/ 10.0) from whereever it is unzipped - all 3 (xlsx, gdb, and py) must be in same relative location.&amp;nbsp; Once you see how it runs, you can modify your input sheets with your named range and run accordingly...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Enjoy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wayne&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 14:47:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/polyline-creation-in-python/m-p/259742#M19984</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2013-02-25T14:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Polyline Creation in Python</title>
      <link>https://community.esri.com/t5/python-questions/polyline-creation-in-python/m-p/259743#M19985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The built in &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/#/Points_To_Line/00170000003s000000/"&gt;PointsToLine tool&lt;/A&gt;&lt;SPAN&gt; supports Z values. You just need to create a point layer/featureclass as input.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 15:44:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/polyline-creation-in-python/m-p/259743#M19985</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2013-02-25T15:44:57Z</dc:date>
    </item>
  </channel>
</rss>

