← Inbox

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.

Script file
C3DO-0881.cs
Target
251205 - 157 Scenic Hwy N.dwg · model space
Author
claude
Approved
yes · auto-auth
Timeout
60s

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

Status
success
Drawing file
C:\Users\sanja\OneDrive\_SurveyDisco\251205 - 157 Scenic Hwy N, Lawrenceville, GA 30046, USA\251205 - 157 Scenic Hwy N.dwg
Message
Executed C3DO-0881 (0 entities touched).
Entities
—
Duration
594 ms
Civil 3D
25.0.0.0

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.