C3D-0514 · Locate curved chars + layer state 812 (read-only) [C3D-0515] done
Read back the V-ROAD-TEXT char positions, height, and layer on/off to see why nothing shows.
C# payload
var ms=(BlockTableRecord)Tx.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(Db),OpenMode.ForRead);
int n=0; double minx=1e18,miny=1e18,maxx=-1e18,maxy=-1e18;
foreach(ObjectId eid in ms){ if(eid.IsErased) continue; var t=Tx.GetObject(eid,OpenMode.ForRead) as DBText; if(t==null||t.Layer!="V-ROAD-TEXT") continue; n++; if(n<=3||n>=19) Log("char '"+t.TextString+"' @ "+t.Position.X.ToString("F1")+","+t.Position.Y.ToString("F1")+" h="+t.Height.ToString("F2")+" layerOff?"); var p=t.Position; if(p.X<minx)minx=p.X; if(p.X>maxx)maxx=p.X; if(p.Y<miny)miny=p.Y; if(p.Y>maxy)maxy=p.Y; }
Log("count="+n+" bbox="+minx.ToString("F0")+","+miny.ToString("F0")+" -> "+maxx.ToString("F0")+","+maxy.ToString("F0"));
var lt=(LayerTable)Tx.GetObject(Db.LayerTableId,OpenMode.ForRead); var lr=(LayerTableRecord)Tx.GetObject(lt["V-ROAD-TEXT"],OpenMode.ForRead);
Log("V-ROAD-TEXT off="+lr.IsOff+" frozen="+lr.IsFrozen+" color="+lr.Color.ColorIndex);
// building bbox for scale ref
Handle bh=new Handle(Convert.ToInt64("22806",16)); ObjectId bid; if(Db.TryGetObjectId(bh,out bid)&&!bid.IsNull){ var pl=(Polyline)Tx.GetObject(bid,OpenMode.ForRead); Log("bldg v0="+pl.GetPoint2dAt(0).X.ToString("F0")+","+pl.GetPoint2dAt(0).Y.ToString("F0")); }
Result
Log
count=0 bbox=1000000000000000000,1000000000000000000 -> -1000000000000000000,-1000000000000000000 V-ROAD-TEXT off=False frozen=False color=3 bldg v0=2434174,1429371
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.