Import Kml To Autocad Civil 3d 2018 [extra Quality] -
return geometries; Use CoordinateSystemService from Civil 3D API:
var sourceCs = "LL84"; // EPSG:4326 alias in Civil 3D var transform = CoordinateSystemService.CreateTransform(sourceCs, targetCsCode); double x, y; transform.TransformPoint(lon, lat, out x, out y); // note: lon → X, lat → Y return new Point2d(x, y); import kml to autocad civil 3d 2018
// Coordinate system (optional: prompt user) string targetCsCode = GetDrawingCoordinateSystemCode(db); // note: lon → X
var pt = new AeccPoint(); pt.Northing = northing; pt.Easting = easting; pt.Elevation = elevation; // Add to block table record var bt = tr.GetObject(db.CurrentSpaceId, OpenMode.ForWrite) as BlockTableRecord; var ptId = bt.AppendEntity(pt); tr.AddNewlyCreatedDBObject(pt, true); return ptId; lat → Y return new Point2d(x


