var kmlFile = KmlFile.Load(stream); var root = kmlFile.Root as Kml; if (root?.Feature is Placemark placemark)
Use CoordinateSystemService from Civil 3D API: import kml to autocad civil 3d 2018
If you frequently work with Google Earth data, dedicated plugins automate the process for older AutoCAD versions. var kmlFile = KmlFile
var pl = new Polyline3d(Poly3dType.SimplePoly, points, false); var bt = tr.GetObject(db.CurrentSpaceId, OpenMode.ForWrite) as BlockTableRecord; var plId = bt.AppendEntity(pl); tr.AddNewlyCreatedDBObject(pl, true); return plId; var kmlFile = KmlFile.Load(stream)