C3DO-0778 · 261101 text along north line (read-only) [C3D-NORTHWIN] done
Read-only: every entity with text (labels exploded in memory) in a window along the north boundary line.
C# payload
var ms=(BlockTableRecord)Tx.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(Db),OpenMode.ForRead);
Func<Autodesk.AutoCAD.DatabaseServices.Entity,string> txt=null;
txt=en=>{ if(en is MText) return ((MText)en).Contents; if(en is DBText) return ((DBText)en).TextString;
string s=""; try{ var c=new DBObjectCollection(); en.Explode(c); foreach(Autodesk.AutoCAD.DatabaseServices.DBObject o in c){ var e2=o as Autodesk.AutoCAD.DatabaseServices.Entity; if(e2!=null){ var t=txt(e2); if(t!="") s+="["+t+"]"; } o.Dispose(); } }catch{} return s; };
foreach(ObjectId e in ms){ var en=Tx.GetObject(e,OpenMode.ForRead) as Autodesk.AutoCAD.DatabaseServices.Entity; if(en==null) continue;
Extents3d x; try{ x=en.GeometricExtents; }catch{ continue; }
if(x.MaxPoint.X<2232380||x.MinPoint.X>2232560||x.MaxPoint.Y<1420625||x.MinPoint.Y>1420680) continue;
if(x.MaxPoint.X-x.MinPoint.X>400) continue;
string t=txt(en); if(t=="") continue;
string f=""; var lb=en as Autodesk.Civil.DatabaseServices.Label; if(lb!=null) f=" feat "+lb.FeatureId.Handle;
Log(e.Handle+" "+en.GetType().Name+" "+en.Layer+f+" ["+x.MinPoint.X.ToString("F1")+","+x.MinPoint.Y.ToString("F1")+" - "+x.MaxPoint.X.ToString("F1")+","+x.MaxPoint.Y.ToString("F1")+"] | "+t); }
Result
Log
20F73 CogoPoint 0 [2232463.2,1420624.8 - 2232476.5,1420631.1] | [[[[A\\C]]]] 20F74 CogoPoint 0 [2232420.0,1420623.4 - 2232452.4,1420628.4] | [[[[POWER METER]]]] 2100E CogoPoint 0 [2232413.3,1420623.6 - 2232420.8,1420633.6] | [[[GM]]] 21267 DBText V-DEED-TEXT [2232364.4,1420635.6 - 2232396.0,1420640.7] | N85°37'35"E 99.81' 21270 DBText V-DEED-TEXT [2232488.0,1420647.0 - 2232539.2,1420654.5] | N85°37'35"E 168.23' (TO OTP) 21312 DBText V-TOPO-TEXT [2232466.5,1420634.1 - 2232473.2,1420636.1] | 1040 2131B DBText V-TOPO-TEXT [2232428.5,1420643.1 - 2232435.2,1420645.1] | 1035 213AC DBText V-SKCH-UTIL [2232408.9,1420626.5 - 2232418.9,1420627.7] | GAS METER 213B4 DBText V-SKCH-UTIL [2232457.7,1420633.8 - 2232462.1,1420634.8] | 2x AC 213BB DBText SS-0-FRAME [2232343.1,1420658.2 - 2232586.6,1420661.6] | R2 11/2026: FIELD SKETCH (L. DUNCAN) PLACED TO SCALE ON GIS FOOTPRINTS + DEED LINES - V-SKCH-* APPROXIMATE, NOT MEASURED 21495 MText C-ANNO [2232416.1,1420666.3 - 2232505.3,1420688.4] | N/F CLIFFORD J. & JANE E. STEELE\P5505 ROSWELL RD - 17 0091 LL1847\PDB 9347/451 2185A Parcel C-PROP [2232331.6,1420451.4 - 2232597.6,1420644.4] | [17 0091 LL1920\P44740.08 SQ FT\P1.03 ACRES] 21BD3 BlockReference C-PROP-LINE-TEXT [2232427.5,1420634.7 - 2232497.5,1420658.7] | [N86\U+00B0 06' 35"E][268.04']
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.