C3D-0485 · Redline #1: DATE to 09/15/26 [C3D-0487] done
Fix title block DATE from 09/15/25 to 09/15/26 (job 260904 is 2026).
C# payload
var bt=(BlockTable)Tx.GetObject(Db.BlockTableId,OpenMode.ForRead);
int changed=0;
foreach(ObjectId btrId in bt){ var space=(BlockTableRecord)Tx.GetObject(btrId,OpenMode.ForRead); foreach(ObjectId eid in space){ var br=Tx.GetObject(eid,OpenMode.ForRead) as BlockReference; if(br==null) continue; var bd=(BlockTableRecord)Tx.GetObject(br.BlockTableRecord,OpenMode.ForRead); if(bd.Name.IndexOf("SS_BLOCK_11X17",StringComparison.OrdinalIgnoreCase)<0) continue; foreach(ObjectId arId in br.AttributeCollection){ var ar=Tx.GetObject(arId,OpenMode.ForRead) as AttributeReference; if(ar==null||ar.Tag!="DATE") continue; var w=(AttributeReference)Tx.GetObject(arId,OpenMode.ForWrite); string old=w.TextString; w.TextString="DATE: 09/15/26"; changed++; Log("DATE: '"+old+"' -> '"+w.TextString+"'"); } }}
Log("changed="+changed);
Ed.Regen();
Result
Log
DATE: 'DATE: 09/15/25' -> 'DATE: 09/15/26' changed=1
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.