To Autocad Civil 3d 2018 Better | Import Kml

COGO Point:

Document doc = Application.DocumentManager.MdiActiveDocument; Database db = doc.Database; Editor ed = doc.Editor; // File selection string filename = SelectKMLFile(); if (string.IsNullOrEmpty(filename)) return; import kml to autocad civil 3d 2018

public ObjectId Create3DPolyline(Point3dCollection points, Database db, Transaction tr) COGO Point: Document doc = Application

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; Database db = doc.Database