C3DO-0865 · 261103: read POB, boundary vertices, annotation text styles (read-only) [C3D-POBREAD] error
Read-only: POB/IP points, boundary polyline vertices, C-ANNO text heights/styles, leaders and note labels.
C# payload
string F(double v)=>v.ToString("0.###");
var bt=(BlockTable)Tx.GetObject(Db.BlockTableId,OpenMode.ForRead);
var ms=(BlockTableRecord)Tx.GetObject(bt[BlockTableRecord.ModelSpace],OpenMode.ForRead);
foreach(ObjectId pid in CivilDoc.CogoPoints){ var cp=(Autodesk.Civil.DatabaseServices.CogoPoint)Tx.GetObject(pid,OpenMode.ForRead); if((cp.RawDescription??"").ToUpper().Contains("POB")||(cp.RawDescription??"").ToUpper().StartsWith("IP")) Log("PT "+cp.PointNumber+" "+cp.RawDescription+" E "+F(cp.Easting)+" N "+F(cp.Northing)+" ["+cp.Layer+"]"); }
foreach(ObjectId id in ms){ var o=Tx.GetObject(id,OpenMode.ForRead);
if(o is Polyline p && (p.Layer=="SS-BOUNDARY"||p.Layer.StartsWith("C-PROP"))){ string s=""; for(int i=0;i<p.NumberOfVertices;i++){ var v=p.GetPoint2dAt(i); s+=F(v.X)+","+F(v.Y)+" "; } Log("PL "+p.Handle+" ["+p.Layer+"] closed="+p.Closed+" "+s); }
if(o is MText m && (m.Layer=="C-ANNO"||m.Layer=="00_WORK"||m.Layer=="C-PROP-LINE-TEXT")) Log("MT "+m.Handle+" ["+m.Layer+"] h="+F(m.TextHeight)+" style="+((TextStyleTableRecord)Tx.GetObject(m.TextStyleId,OpenMode.ForRead)).Name+" rot="+F(m.Rotation*180/Math.PI)+" at "+F(m.Location.X)+","+F(m.Location.Y)+" | "+m.Contents.Replace("\P"," / ").Substring(0,Math.Min(60,m.Contents.Length)));
if(o is MLeader ml) Log("ML "+ml.Handle+" ["+ml.Layer+"]");
if(o is Leader ld) Log("LD "+ld.Handle+" ["+ld.Layer+"]");
if(o is Autodesk.Civil.DatabaseServices.NoteLabel nl) Log("NL "+nl.Handle+" ["+nl.Layer+"] at "+F(nl.LabelLocation.X)+","+F(nl.LabelLocation.Y)+" style "+((Autodesk.Civil.DatabaseServices.Styles.LabelStyle)Tx.GetObject(nl.StyleId,OpenMode.ForRead)).Name);
}
Log("CANNOSCALE "+Db.Cannoscale.Name);
Result
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.