<?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: using points to line tool in modelbuilder in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/using-points-to-line-tool-in-modelbuilder/m-p/662101#M22050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the same problem with the POINT TO LINE tool in model builder. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After using the Feature to Point tool I try to use the Point to Line tool and an error occurr. How can I solve this ?? I think is a problem with the model builder becasue the tool works perfectly if I do it directly in the map view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MY MODEL: Spatial Join - Select - Make Feature Layer - Select by attribute - Add Field - Calculate Field - Feature to Point - POINT TO LINE (Error message).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help will be much appreciated !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Elena&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Sep 2013 14:33:59 GMT</pubDate>
    <dc:creator>ElenaLopez</dc:creator>
    <dc:date>2013-09-03T14:33:59Z</dc:date>
    <item>
      <title>using points to line tool in modelbuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-points-to-line-tool-in-modelbuilder/m-p/662100#M22049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a text file containing coordinates in sequences (shapes.txt) that can be used to construct a line layer. I can do it successfully if i first convert shapes.txt into a point feature class and the use the points to line tool to get a line feature class. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, if i try to do the same in modelbuilder by using the same processes and i get an update parameters error. This is because I am using "make xy event layer" tool to get a temporary point layer and then feeding it to points-to-line tool. The problem i guess here is i need to select the sort field and line field in the points-to-line tool and at run time this throws the updateparams exception as the xyevent layer is not created yet. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried using copyfeatures and wrote the eventlayer to a featureclass but still unable to get it to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;how can i use the points-to-line tool in a model if i have a text file as input?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached a toolbox containing the model and the input shapes.txt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anand&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 07:10:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-points-to-line-tool-in-modelbuilder/m-p/662100#M22049</guid>
      <dc:creator>WhereMatters</dc:creator>
      <dc:date>2011-04-14T07:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: using points to line tool in modelbuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-points-to-line-tool-in-modelbuilder/m-p/662101#M22050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the same problem with the POINT TO LINE tool in model builder. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After using the Feature to Point tool I try to use the Point to Line tool and an error occurr. How can I solve this ?? I think is a problem with the model builder becasue the tool works perfectly if I do it directly in the map view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MY MODEL: Spatial Join - Select - Make Feature Layer - Select by attribute - Add Field - Calculate Field - Feature to Point - POINT TO LINE (Error message).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help will be much appreciated !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Elena&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 14:33:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-points-to-line-tool-in-modelbuilder/m-p/662101#M22050</guid>
      <dc:creator>ElenaLopez</dc:creator>
      <dc:date>2013-09-03T14:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: using points to line tool in modelbuilder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-points-to-line-tool-in-modelbuilder/m-p/662102#M22051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have a text file containing coordinates in sequences (shapes.txt) that can be used to construct a line layer. I can do it successfully if i first convert shapes.txt into a point feature class and the use the points to line tool to get a line feature class. &lt;BR /&gt;&lt;BR /&gt;However, if i try to do the same in modelbuilder by using the same processes and i get an update parameters error. This is because I am using "make xy event layer" tool to get a temporary point layer and then feeding it to points-to-line tool. The problem i guess here is i need to select the sort field and line field in the points-to-line tool and at run time this throws the updateparams exception as the xyevent layer is not created yet. &lt;BR /&gt;&lt;BR /&gt;I tried using copyfeatures and wrote the eventlayer to a featureclass but still unable to get it to work.&lt;BR /&gt;&lt;BR /&gt;how can i use the points-to-line tool in a model if i have a text file as input?&lt;BR /&gt;&lt;BR /&gt;I have attached a toolbox containing the model and the input shapes.txt.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Anand&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm doing something similar, so I just watched a video about model builder about an hour ago. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I imported your toolbox, I viewed your model in Edit mode. I'm not sure if you've already checked these things on your end,&amp;nbsp; but when I looked at the model, these are the things that were missing upon import:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Model Properties --&amp;gt; Environments --&amp;gt; Workspace (needs a check mark in the box) --&amp;gt; then, you probably need to define where you want your workspace AND your scratch (because of the temporary nature of XY data to points.) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Shapes.txt --&amp;gt; Properties --&amp;gt; Data Type --&amp;gt; (I think you should select text file)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I don't know much about what the "Field Type" of your Data Fields (X and Y) should be set to, but there is an option to set them to "Any Value", which might be appropriate since you're converting from a text file... it might not consider comma or tab delimiting as "fields" ---but I don't know this for sure, it was just something I considered might help. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If none of this works, or you've already tried it--apologies! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Holly&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 05:36:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-points-to-line-tool-in-modelbuilder/m-p/662102#M22051</guid>
      <dc:creator>HollyGolvach</dc:creator>
      <dc:date>2013-09-06T05:36:00Z</dc:date>
    </item>
  </channel>
</rss>

