C3DO-0881 · 251205: 3 points on the southern 330.14' PL (575 IPP -> 573 IPF) [C3D-SOPL1205] done
Adds COGO points 579/580/581 'PL' at 82.54' / 165.07' / 247.61' from 575 along the south line to 573 (330.14'). Elevation interpolated. Skips any number that already exists.
C# payload
var civ=CivilDoc;
double[][] P={ new double[]{579,1434821.0588,2350569.9869,1063.410}, new double[]{580,1434860.8723,2350642.2845,1065.309}, new double[]{581,1434900.6859,2350714.5821,1067.209} };
foreach(var p in P){
uint want=(uint)p[0]; bool exists=false;
foreach(ObjectId pid in civ.CogoPoints){ var c=(Autodesk.Civil.DatabaseServices.CogoPoint)Tx.GetObject(pid,OpenMode.ForRead);
if(c.PointNumber==want){ exists=true; Log("point "+want+" already exists ("+c.RawDescription+" at "+c.Northing.ToString("0.0000")+","+c.Easting.ToString("0.0000")+") - skipped"); break; } }
if(exists) continue;
var id=civ.CogoPoints.Add(new Point3d(p[2],p[1],p[3]),"PL",true);
var cp=(Autodesk.Civil.DatabaseServices.CogoPoint)Tx.GetObject(id,OpenMode.ForWrite);
if(cp.PointNumber!=want){ uint got=cp.PointNumber; cp.PointNumber=want; Log("renumbered "+got+" -> "+cp.PointNumber); }
Log("added "+cp.PointNumber+","+cp.Northing.ToString("0.0000")+","+cp.Easting.ToString("0.0000")+","+cp.Elevation.ToString("0.000")+","+cp.RawDescription+(cp.PointNumber==want?" (verified)":" WRONG NUMBER"));
}
Ed.Regen();
Result
Log
added 579,1434821.0588,2350569.9869,1063.410,PL (verified) added 580,1434860.8723,2350642.2845,1065.309,PL (verified) added 581,1434900.6859,2350714.5821,1067.209,PL (verified)
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.