# Purpose: To Export to an AutoCad file, with each layer being created from the Name field in the feature class. # Create the Geoprocessor object import arcgisscripting, os gp = arcgisscripting.create() # Local variables... data_DXF = "//<path>/togo23.dxf" try: # Process: Export to CAD... gp.ExportCAD_conversion("'//<path>/varna_gp_gdb.gdb/cadaster'", "DXF_R2007", data_DXF, "Use_Filenames_in_Tables", "Overwrite_Existing_Files", "") except: # If an error occurs while running a tool print the message print gp.GetMessages()
I know this is a really old thread, but did you ever figure out a solution. I am experiencing the same issue when trying to export to a dwg or dxf. However exporting to FGDB's and Shapefiles works perfectly.