<?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: Extracting Layer from AutoCAD file and converting into featureclass in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/extracting-layer-from-autocad-file-and-converting/m-p/48113#M3816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ahmed,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try using the 'Select Layer by Attribute' and then the 'Feature Class to Feature Class' function.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;wClause = '"Layer" = \'line2\'' arcpy.SelectLayerByAttribute_management("alignment.dwg Polyline", "NEW_SELECTION", wClause) arcpy.FeatureClassToFeatureClass_conversion("alignment.dwg Polyline", r"F:\Projects\New File Geodatabase.gdb", "Line2")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Sep 2013 09:49:02 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2013-09-17T09:49:02Z</dc:date>
    <item>
      <title>Extracting Layer from AutoCAD file and converting into featureclass</title>
      <link>https://community.esri.com/t5/python-questions/extracting-layer-from-autocad-file-and-converting/m-p/48112#M3815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good day,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to extract one layer from AutoCAD drawing, and convert it into a featureclass in a GeoDatabase?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to following code in the Python window inside ArcGIS, but it only produces everything in the drawing in the new featureclass.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;wClause = '"Layer" = \'line2\'' cur = arcpy.SearchCursor("alignment.dwg Polyline", wClause) arcpy.CADToGeodatabase_conversion("alignment.dwg",r'F:\Projects\New File Geodatabase.gdb' , "Line2","1500")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ahmed&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 07:14:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extracting-layer-from-autocad-file-and-converting/m-p/48112#M3815</guid>
      <dc:creator>Ahmed_Wagih_Abdel-LatifAzab</dc:creator>
      <dc:date>2013-09-17T07:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Layer from AutoCAD file and converting into featureclass</title>
      <link>https://community.esri.com/t5/python-questions/extracting-layer-from-autocad-file-and-converting/m-p/48113#M3816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ahmed,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try using the 'Select Layer by Attribute' and then the 'Feature Class to Feature Class' function.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;wClause = '"Layer" = \'line2\'' arcpy.SelectLayerByAttribute_management("alignment.dwg Polyline", "NEW_SELECTION", wClause) arcpy.FeatureClassToFeatureClass_conversion("alignment.dwg Polyline", r"F:\Projects\New File Geodatabase.gdb", "Line2")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 09:49:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extracting-layer-from-autocad-file-and-converting/m-p/48113#M3816</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2013-09-17T09:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Layer from AutoCAD file and converting into featureclass</title>
      <link>https://community.esri.com/t5/python-questions/extracting-layer-from-autocad-file-and-converting/m-p/48114#M3817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Jake, it worked fine as per your listing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 10:42:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extracting-layer-from-autocad-file-and-converting/m-p/48114#M3817</guid>
      <dc:creator>Ahmed_Wagih_Abdel-LatifAzab</dc:creator>
      <dc:date>2013-09-20T10:42:34Z</dc:date>
    </item>
  </channel>
</rss>

