How to import DXF files in ArcMap?

I would like the Arcpy code to do it and the menu methodology to import it in the desktop also.

I have tried with this code:

import arcpy
arcpy.env.workspace = "C:\Users\User\Desktop\kj" 
for fc in arcpy.ListFeatureClasses(): 
    arcpy.CopyFeatures_management(fc, fc[:-4] + "n")      
    arcpy.Snap_edit(fc, [[fc, "EDGE", 0.5]])

In the path are dxf files which the script just runs with no error but no outcome either.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.