<?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: Trying to parse out part of a SDE feature class name to be copied into new GDB in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/trying-to-parse-out-part-of-a-sde-feature-class/m-p/422212#M2826</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I copy SDE feature classes into file GDB's using a script I generated with Model Builder and all the SDE nomenclature is automatically dropped. You could try generating a snip it using feature class to feature class in Model Builder and use it in your script. I don't generally script from scratch but I know this has worked for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jul 2015 18:26:09 GMT</pubDate>
    <dc:creator>ZachMahan</dc:creator>
    <dc:date>2015-07-09T18:26:09Z</dc:date>
    <item>
      <title>Trying to parse out part of a SDE feature class name to be copied into new GDB</title>
      <link>https://community.esri.com/t5/developers-questions/trying-to-parse-out-part-of-a-sde-feature-class/m-p/422211#M2825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. I'm working on a script that (among other things) needs to parse out all the SDE-like text of a feature class name to leave just the individual fc name at the end of the fullname (i.e. Database Connections\Connection to blahblah.sde\SampleDB.SDE.Communications\SampleDB.SDE.Cameras needs to called Cameras).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been searching ArcGIS Resources and find ways to edit field names, but could use some help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 17:57:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/trying-to-parse-out-part-of-a-sde-feature-class/m-p/422211#M2825</guid>
      <dc:creator>NicoleFrankenfield</dc:creator>
      <dc:date>2015-07-09T17:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to parse out part of a SDE feature class name to be copied into new GDB</title>
      <link>https://community.esri.com/t5/developers-questions/trying-to-parse-out-part-of-a-sde-feature-class/m-p/422212#M2826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I copy SDE feature classes into file GDB's using a script I generated with Model Builder and all the SDE nomenclature is automatically dropped. You could try generating a snip it using feature class to feature class in Model Builder and use it in your script. I don't generally script from scratch but I know this has worked for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 18:26:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/trying-to-parse-out-part-of-a-sde-feature-class/m-p/422212#M2826</guid>
      <dc:creator>ZachMahan</dc:creator>
      <dc:date>2015-07-09T18:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to parse out part of a SDE feature class name to be copied into new GDB</title>
      <link>https://community.esri.com/t5/developers-questions/trying-to-parse-out-part-of-a-sde-feature-class/m-p/422213#M2827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might try something like this:&lt;/P&gt;&lt;P&gt;import arcpy,os&lt;/P&gt;&lt;P&gt;wksp = # your SDE connection&lt;/P&gt;&lt;P&gt;arcpy.env.workspace = wksp&lt;/P&gt;&lt;P&gt;output = # your output geodatabase or folder&lt;/P&gt;&lt;P&gt;fc = # feature class to convert&lt;/P&gt;&lt;P&gt;base = os.path.basename(fc)&lt;/P&gt;&lt;P&gt;b = base.split(".")&amp;nbsp; # splits on the periods&lt;/P&gt;&lt;P&gt;b1 = len(b)&lt;/P&gt;&lt;P&gt;b2= b[b1 - 1] # gets the last string which should be the name you want)&lt;/P&gt;&lt;P&gt;arcpy.FeatureClassToFeatureClass_conversion(fc,output,b2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 19:42:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/trying-to-parse-out-part-of-a-sde-feature-class/m-p/422213#M2827</guid>
      <dc:creator>DavidStockdale</dc:creator>
      <dc:date>2015-07-09T19:42:14Z</dc:date>
    </item>
  </channel>
</rss>

