C3D-0488 · Find R/W label 260904 (read-only) [C3D-0490] done
Locate the 60 R/W text to relabel VARIABLE PUBLIC R/W.
C# payload
var lmgr=LayoutManager.Current;
foreach(string ln in new[]{"11X17"}){ var lay=(Layout)Tx.GetObject(lmgr.GetLayoutId(ln),OpenMode.ForRead); var ps=(BlockTableRecord)Tx.GetObject(lay.BlockTableRecordId,OpenMode.ForRead);
foreach(ObjectId eid in ps){ var e=Tx.GetObject(eid,OpenMode.ForRead) as Autodesk.AutoCAD.DatabaseServices.Entity; string s=null; if(e is DBText t) s=t.TextString; else if(e is MText m) s=m.Contents; if(s!=null && (s.Contains("R/W")||s.ToUpper().Contains("60"))) Log(ln+" "+e.GetType().Name+" h="+e.Handle+" '"+s+"'"); }
}
// also model space (label may be in model, shown thru viewport)
var ms=(BlockTableRecord)Tx.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(Db),OpenMode.ForRead);
foreach(ObjectId eid in ms){ var e=Tx.GetObject(eid,OpenMode.ForRead) as Autodesk.AutoCAD.DatabaseServices.Entity; string s=null; if(e is DBText t) s=t.TextString; else if(e is MText m) s=m.Contents; if(s!=null && s.Contains("R/W")) Log("MODEL "+e.GetType().Name+" h="+e.Handle+" '"+s+"'"); }
Result
Log
MODEL MText h=21152 '{\fSimplex|b0|i1|c0|p2;W SANDTOWN RD SW\P 60' R/W}'
MODEL MText h=2115C 'WOLFCREEK R/W'Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.