<?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: Creating a feature class within a feature dataset crashes ArcCatalog in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/creating-a-feature-class-within-a-feature-dataset/m-p/159587#M12223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Just seeing if I can refresh this post, and see if anyone out there knows why ArcCatalog crashes with my code.&amp;nbsp; I'm basically trying to use Python script to create a linear feature within an existing feature dataset, and using an existing feature class as a template.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Solution!:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I needed to resolve the spaces that were in the connection paths by placing an 'r' (MUST be lower case!) in front of each path.&amp;nbsp; This code worked (I made a variable, 'Path', for the above path name to make deployment of this code more efficient):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.CreateFeatureclass_management(Path, r"Exposures_Platte_Line_Test2", "POLYLINE", Path +"\BASE.BASE.Exposures_Platte")&amp;nbsp; &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 May 2012 19:15:03 GMT</pubDate>
    <dc:creator>MatthewWalker1</dc:creator>
    <dc:date>2012-05-18T19:15:03Z</dc:date>
    <item>
      <title>Creating a feature class within a feature dataset crashes ArcCatalog</title>
      <link>https://community.esri.com/t5/python-questions/creating-a-feature-class-within-a-feature-dataset/m-p/159585#M12221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to copy an existing feature class that is within a feature dataset and paste in a new feature class (this same schema, but a linear feature instead of a point feature-i.e. using the existing point feature class as a template for the new linear feature class) into that same feature dataset, using this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy from arcpy import env env.workspace = r"database connections\connection to BASE.sde"&amp;nbsp; #Use existing Feature class (point) feature (&amp;lt;Featureclass_Name&amp;gt;) as template to create new linear Feature class arcpy.CreateFeatureclass_management("database connections/connection to KMC-BASE.sde", "BASE.BASE.KMC.Exposures_Platte_Line",&amp;nbsp; "POLYLINE", "BASE.BASE.Exposures_Platte", "ENABLED", "ENABLED")&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;and ArcCatalog crashes after about a minute of thinking, no error thrown. Any ideas on this issue?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 13:27:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-a-feature-class-within-a-feature-dataset/m-p/159585#M12221</guid>
      <dc:creator>MatthewWalker1</dc:creator>
      <dc:date>2012-05-04T13:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a feature class within a feature dataset crashes ArcCatalog</title>
      <link>https://community.esri.com/t5/python-questions/creating-a-feature-class-within-a-feature-dataset/m-p/159586#M12222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am trying to copy an existing feature class that is within a feature dataset and paste in a new feature class (this same schema, but a linear feature instead of a point feature-i.e. using the existing point feature class as a template for the new linear feature class) into that same feature dataset, using this code:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy
from arcpy import env
env.workspace = r"database connections\connection to BASE.sde"

#Use existing Feature class (point) feature (&amp;lt;Featureclass_Name&amp;gt;) as template to create new linear Feature class
arcpy.CreateFeatureclass_management("database connections/connection to KMC-BASE.sde", "BASE.BASE.KMC.Exposures_Platte_Line", 
"POLYLINE", "BASE.BASE.Exposures_Platte", "ENABLED", "ENABLED")
&lt;/PRE&gt;&lt;BR /&gt;and ArcCatalog crashes after about a minute of thinking, no error thrown. Any ideas on this issue?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just seeing if I can refresh this post, and see if anyone out there knows why ArcCatalog crashes with my code.&amp;nbsp; I'm basically trying to use Python script to create a linear feature within an existing feature dataset, and using an existing feature class as a template.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:24:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-a-feature-class-within-a-feature-dataset/m-p/159586#M12222</guid>
      <dc:creator>MatthewWalker1</dc:creator>
      <dc:date>2021-12-11T08:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a feature class within a feature dataset crashes ArcCatalog</title>
      <link>https://community.esri.com/t5/python-questions/creating-a-feature-class-within-a-feature-dataset/m-p/159587#M12223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Just seeing if I can refresh this post, and see if anyone out there knows why ArcCatalog crashes with my code.&amp;nbsp; I'm basically trying to use Python script to create a linear feature within an existing feature dataset, and using an existing feature class as a template.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Solution!:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I needed to resolve the spaces that were in the connection paths by placing an 'r' (MUST be lower case!) in front of each path.&amp;nbsp; This code worked (I made a variable, 'Path', for the above path name to make deployment of this code more efficient):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.CreateFeatureclass_management(Path, r"Exposures_Platte_Line_Test2", "POLYLINE", Path +"\BASE.BASE.Exposures_Platte")&amp;nbsp; &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2012 19:15:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-a-feature-class-within-a-feature-dataset/m-p/159587#M12223</guid>
      <dc:creator>MatthewWalker1</dc:creator>
      <dc:date>2012-05-18T19:15:03Z</dc:date>
    </item>
  </channel>
</rss>

