: In software like Map 3D or Civil 3D, use the command MAPCSASSIGN .
AutoCAD provides a built-in feature to export KML files directly from DXF. Here's how: dxf to kml autocad
Before you can convert any file, your AutoCAD drawing must be georeferenced. KML files use a specific coordinate system——whereas most CAD drawings use local grids or UTM systems. : In software like Map 3D or Civil