<?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: Question on FeatureclassToFeatureclass tool.. in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/question-on-featureclasstofeatureclass-tool/m-p/120807#M4178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Convert the path string to a list, and extract out the last items which is the feature class name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like this in Python...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TheShapefile = "C:/Temp/myshapefile.shp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ThePathAsAList = TheShapefile.split("/")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TheFileName = ThePathAsAList.pop()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print TheFileName&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then use TheFileName to reconstruct a new string that is the full path to the newly created data.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Sep 2010 19:55:38 GMT</pubDate>
    <dc:creator>GerryGabrisch</dc:creator>
    <dc:date>2010-09-27T19:55:38Z</dc:date>
    <item>
      <title>Question on FeatureclassToFeatureclass tool..</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/question-on-featureclasstofeatureclass-tool/m-p/120806#M4177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In my attached script, I simply let the user choose which layer from table of contents they want to do a SelectbyAttributes and then do a FeatureclasstoFeatureclass so they can have a shapefile of the query results.&amp;nbsp; My problem is that one of the required parameters for FeatureclasstoFeatureclass requires a Name for the output shapefile.&amp;nbsp; So how can I get which layer the user chose as the Name of the output shapefile??&amp;nbsp; If I can't do this through my model and I export my model to python, how can I accomplish this through python instead?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 19:46:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/question-on-featureclasstofeatureclass-tool/m-p/120806#M4177</guid>
      <dc:creator>JoshV</dc:creator>
      <dc:date>2010-09-27T19:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Question on FeatureclassToFeatureclass tool..</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/question-on-featureclasstofeatureclass-tool/m-p/120807#M4178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Convert the path string to a list, and extract out the last items which is the feature class name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like this in Python...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TheShapefile = "C:/Temp/myshapefile.shp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ThePathAsAList = TheShapefile.split("/")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TheFileName = ThePathAsAList.pop()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print TheFileName&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then use TheFileName to reconstruct a new string that is the full path to the newly created data.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 19:55:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/question-on-featureclasstofeatureclass-tool/m-p/120807#M4178</guid>
      <dc:creator>GerryGabrisch</dc:creator>
      <dc:date>2010-09-27T19:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Question on FeatureclassToFeatureclass tool..</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/question-on-featureclasstofeatureclass-tool/m-p/120808#M4179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Gerry-&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attached is my python script.&amp;nbsp; Could you give me an idea of where to put your code and what basic changes I need to implement?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 20:07:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/question-on-featureclasstofeatureclass-tool/m-p/120808#M4179</guid>
      <dc:creator>JoshV</dc:creator>
      <dc:date>2010-09-27T20:07:12Z</dc:date>
    </item>
  </channel>
</rss>

