AnsweredAssumed Answered

Extracting Layer from AutoCAD file and converting into featureclass

Question asked by awagih on Sep 17, 2013
Latest reply on Sep 20, 2013 by awagih
Good day,

Is there a way to extract one layer from AutoCAD drawing, and convert it into a featureclass in a GeoDatabase?

I'm trying to following code in the Python window inside ArcGIS, but it only produces everything in the drawing in the new featureclass.

wClause = '"Layer" = \'line2\'' cur = arcpy.SearchCursor("alignment.dwg Polyline", wClause) arcpy.CADToGeodatabase_conversion("alignment.dwg",r'F:\Projects\New File Geodatabase.gdb' , "Line2","1500")


Regards,
Ahmed

Outcomes