C3DO-0870 · 260714: read pin points (IPF NS, CP, WALL ELEV) + boundary vertices (read-only) [C3D-SOREAD2] error
Read-only: members of IPF NS, CP, WALL ELEV with PNEZD; boundary polyline vertices.
C# payload
string F(double v)=>v.ToString("0.###");
var civ=CivilDoc;
foreach(ObjectId id in civ.PointGroups){ var g=(Autodesk.Civil.DatabaseServices.PointGroup)Tx.GetObject(id,OpenMode.ForRead); if(g.Name!="IPF NS"&&g.Name!="CP"&&g.Name!="WALL ELEV") continue;
Log("== "+g.Name);
foreach(uint n in g.GetPointNumbers()){ var cp=(Autodesk.Civil.DatabaseServices.CogoPoint)Tx.GetObject(civ.CogoPoints.GetPointByPointNumber(n),OpenMode.ForRead);
Log(" "+cp.PointNumber+","+cp.Northing.ToString("0.0000")+","+cp.Easting.ToString("0.0000")+","+cp.Elevation.ToString("0.000")+","+cp.RawDescription+" | "+cp.Layer); } }
// boundary-ish polylines on SS-BOUNDARY / C-PROP
var bt=(BlockTable)Tx.GetObject(Db.BlockTableId,OpenMode.ForRead);
var ms=(BlockTableRecord)Tx.GetObject(bt[BlockTableRecord.ModelSpace],OpenMode.ForRead);
foreach(ObjectId id in ms){ var p=Tx.GetObject(id,OpenMode.ForRead) as Polyline; if(p==null||!(p.Layer.Contains("BOUNDARY")||p.Layer.StartsWith("C-PROP"))) continue; string s=""; for(int k=0;k<p.NumberOfVertices;k++){ var v=p.GetPoint2dAt(k); s+=F(v.X)+","+F(v.Y)+" "; } Log("PL "+p.Handle+" ["+p.Layer+"] "+s); }
Result
Log
== CP 524,1206809.3083,2206364.0576,854.290,CP | SS-0-FRAME
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.