C3DO-0871 · 260714: read pin points (IPF NS, CP, WALL ELEV) + boundary vertices (read-only) [C3D-SOREAD3] done
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()){ ObjectId pid; try{ pid=civ.CogoPoints.GetPointByPointNumber(n); }catch{ Log(" "+n+" MISSING"); continue; } var cp=(Autodesk.Civil.DatabaseServices.CogoPoint)Tx.GetObject(pid,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 529 MISSING 537 MISSING 536 MISSING 538,1207204.9631,2205758.8488,854.290,IPS | 0 539,1207212.9126,2206376.5057,854.290,IPS | 0 == IPF NS 364,1207312.9316,2206379.5725,854.295,IPF | 0 500,1207293.3588,2203443.1687,823.243,IPF | SS-0-FRAME 510,1206809.8163,2203438.7211,837.370,IPF 4" POST | 0 406,1207293.5077,2203443.1704,823.301,OTP | 0 520,1206709.9971,2203439.2944,854.290,IPS | 0 521,1206719.6631,2205253.5086,854.290,IPF | SS-BOUNDARY CYAN 050 522,1206798.9689,2205255.8347,854.290,IPF | SS-BOUNDARY CYAN 050 523,1206809.1899,2206344.7867,854.290,IPF | SS-0-FRAME 525,1206717.3657,2204844.8382,854.290,IPF | 0 526,1206967.3546,2204842.4917,854.290,IPF | 0 527,1206969.7050,2205260.7851,854.290,IPF | 0 528,1206948.9038,2205260.1811,854.290,IPF | 0 2003,1206955.1745,2206368.6028,862.841,IPF | 0 531,1206959.1830,2206348.8637,854.290,IPF LD | SS-0-FRAME == WALL ELEV 143,1207110.6431,2206284.5273,861.623,SW | 0 159,1207143.5102,2206224.1414,859.965,HC | 0 175,1207050.1513,2206399.6042,857.397,DWY | 0 158,1207128.7679,2206224.5187,858.107,CON COR | 0 140,1207108.8927,2206277.5286,862.213,SW STEP | 0 139,1207100.8526,2206277.6702,862.298,SW STEP | 0 PL 21237 [SS-BOUNDARY MAG FULL] 2203439.776,1207293.677 2203439.294,1206709.997 2205253.509,1206719.663 2205255.835,1206798.969 2206344.787,1206809.19 2206379.573,1207312.932 PL 213CD [SS-BOUNDARY CYAN 050] 2206355.144,1206959.183 2205260.181,1206948.904 2205260.785,1206969.705 2204842.492,1206967.355 2204844.838,1206717.366 2205253.532,1206719.662 2205255.835,1206798.969 2206344.787,1206809.19 PL 214A5 [SS-BOUNDARY AREAS] 2206379.573,1207312.932 2203439.776,1207293.677 2203439.294,1206709.997 2204844.837,1206717.486 2204842.492,1206967.355 2205260.785,1206969.705 2205758.849,1207204.963 2206376.506,1207212.913 PL 217EF [SS-BOUNDARY RED] 2206359.265,1207313.675 2206343.895,1206809.869 2205254.932,1206800.929 2205252.513,1206721.626 2203438.288,1206714.093 2203439.456,1207297.772 2206379.273,1207313.57 PL 22572 [SS-BOUNDARY AREAS] 2206376.506,1207212.913 2205758.849,1207204.963 2205260.785,1206969.705 2205260.181,1206948.904 2206368.603,1206955.175 PL 24903 [SS-BOUNDARY] 2206376.506,1207212.913 2206379.573,1207312.932 2203439.776,1207293.677 2203439.294,1206709.997 2204844.837,1206717.486 2204842.492,1206967.355 2205260.785,1206969.705 PL 24904 [SS-BOUNDARY] 2205260.785,1206969.705 2205260.181,1206948.904 2206368.603,1206955.175 2206376.506,1207212.913 PL 24905 [SS-BOUNDARY PROPOSED] 2205260.785,1206969.705 2205758.849,1207204.963 2206376.506,1207212.913
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.