Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Extracting Layer from AutoCAD file and converting into featureclass

$
0
0
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.

Code:

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

Viewing all articles
Browse latest Browse all 2485

Latest Images

Trending Articles


Telangana Ration Card Online Status Ahara Bhadratha Card Online Status


CalCen


Waves Complete v2019.02.14 Incl Emulator-R2R


[RELEASE THREAD]--_A-Team_--Cricket_Dream_5G


MCGEE, SAMUEL O., DECEASED, OF...


WordPress: Reverse Shell


GPGT - chio bu back from market kym


Ondonga king dragged to court


Justin Guy Ballou, III


Krupt Biography, Death, Songs, Photo, Video



Latest Images