<?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 Export Feature Set using Model Builder in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/export-feature-set-using-model-builder/m-p/829152#M2769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a model in Model Builder that utilizes the ESRI Ready-To-Use Service called "Trace Downstream". This takes an input point file or an input feature set (created by clicking on the map) and performs some trace downstream functions. When viewed in the model, the output is a "Trace Line" that is a type Feature Set. Once the tool runs and the output shows in the Table of Contents, the data type is "InMemory Feature Class". I have been trying to figure out a way to take this output Feature Set and export it or convert it into a local piece of data using Model Builder. I have tried Copy&amp;nbsp;Features, Make Feature&amp;nbsp;Layer, Feature Class to Feature Class, etc. and none of them will accept the Feature Set as the input feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do a manual "Data &amp;gt; Export Data" I am able to take the resulting InMemory Feature Class&amp;nbsp;and export it as a local Feature Class, but I want to do this within the Model Builder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Nov 2016 16:22:55 GMT</pubDate>
    <dc:creator>MattColwin</dc:creator>
    <dc:date>2016-11-01T16:22:55Z</dc:date>
    <item>
      <title>Export Feature Set using Model Builder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/export-feature-set-using-model-builder/m-p/829152#M2769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a model in Model Builder that utilizes the ESRI Ready-To-Use Service called "Trace Downstream". This takes an input point file or an input feature set (created by clicking on the map) and performs some trace downstream functions. When viewed in the model, the output is a "Trace Line" that is a type Feature Set. Once the tool runs and the output shows in the Table of Contents, the data type is "InMemory Feature Class". I have been trying to figure out a way to take this output Feature Set and export it or convert it into a local piece of data using Model Builder. I have tried Copy&amp;nbsp;Features, Make Feature&amp;nbsp;Layer, Feature Class to Feature Class, etc. and none of them will accept the Feature Set as the input feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do a manual "Data &amp;gt; Export Data" I am able to take the resulting InMemory Feature Class&amp;nbsp;and export it as a local Feature Class, but I want to do this within the Model Builder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 16:22:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/export-feature-set-using-model-builder/m-p/829152#M2769</guid>
      <dc:creator>MattColwin</dc:creator>
      <dc:date>2016-11-01T16:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Export Feature Set using Model Builder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/export-feature-set-using-model-builder/m-p/829153#M2770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried running Copy Features within a Calculate Value tool?&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;cf&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"%Trace output%"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Code Block&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;cf&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;trace&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CopyFeatures_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;trace&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"in_memory\\trace_feat"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"in_memory\\trace_feat"&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data type:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feature class&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:00:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/export-feature-set-using-model-builder/m-p/829153#M2770</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-12T10:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Export Feature Set using Model Builder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/export-feature-set-using-model-builder/m-p/829154#M2771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked great, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 13:10:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/export-feature-set-using-model-builder/m-p/829154#M2771</guid>
      <dc:creator>MattColwin</dc:creator>
      <dc:date>2016-11-02T13:10:53Z</dc:date>
    </item>
  </channel>
</rss>

