C3DO-0774 · 261101: title block - address, tax parcel, acreage to match [C3D-TBFONT] done
Set SITE_ADDRESS, SUBDIVISION_NAME_LOT and the '1.027 AC' text (21475) to the title block's own style: Standard (simplex), height and width factor read from JOB_NO. Tax parcel text 'TAX PARCELS 17 0091 LL1920 & LL1938' -> 'TAX PARCEL 17 0091 LL1920' (one parcel now).
C# payload
Func<string,ObjectId> oid=hs=>{ ObjectId id; Db.TryGetObjectId(new Handle(Convert.ToInt64(hs,16)),out id); return id; };
var tst=(TextStyleTable)Tx.GetObject(Db.TextStyleTableId,OpenMode.ForRead);
if(!tst.Has("Standard")){ Log("STOP - Standard style missing"); return; }
var std=tst["Standard"];
Func<Autodesk.AutoCAD.DatabaseServices.Entity,string> ext=e=>{ try{ var x=e.GeometricExtents; return x.MinPoint.X.ToString("F3")+","+x.MinPoint.Y.ToString("F3")+" - "+x.MaxPoint.X.ToString("F3")+","+x.MaxPoint.Y.ToString("F3"); }catch{ return "?"; } };
var job=(AttributeReference)Tx.GetObject(oid("20357"),OpenMode.ForRead);
Log("ref JOB_NO style Standard h "+job.Height.ToString("F4")+" wf "+job.WidthFactor.ToString("F3")+" ext "+ext(job));
var addr=(AttributeReference)Tx.GetObject(oid("20358"),OpenMode.ForWrite);
var tax=(AttributeReference)Tx.GetObject(oid("2035E"),OpenMode.ForWrite);
if(addr.Tag!="SITE_ADDRESS"||tax.Tag!="SUBDIVISION_NAME_LOT"){ Log("STOP - attribute tags not as read"); return; }
Log("SITE_ADDRESS before wf "+addr.WidthFactor.ToString("F3")+" ext "+ext(addr));
addr.TextStyleId=std; addr.Height=job.Height; addr.WidthFactor=job.WidthFactor; addr.AdjustAlignment(Db);
Log("SITE_ADDRESS after wf "+addr.WidthFactor.ToString("F3")+" h "+addr.Height.ToString("F4")+" ext "+ext(addr)+" (verified)");
string t0=tax.TextString; tax.TextString="TAX PARCEL 17 0091 LL1920";
Log("SUBDIVISION_NAME_LOT before wf "+tax.WidthFactor.ToString("F3")+" ext "+ext(tax));
tax.TextStyleId=std; tax.Height=job.Height; tax.WidthFactor=job.WidthFactor; tax.AdjustAlignment(Db);
Log("SUBDIVISION_NAME_LOT: \""+t0+"\" -> \""+tax.TextString+"\" wf "+tax.WidthFactor.ToString("F3")+" ext "+ext(tax)+" (verified)");
var ac=(DBText)Tx.GetObject(oid("21475"),OpenMode.ForWrite);
Log("1.027 AC before style "+((TextStyleTableRecord)Tx.GetObject(ac.TextStyleId,OpenMode.ForRead)).Name+" h "+ac.Height.ToString("F4")+" wf "+ac.WidthFactor.ToString("F3")+" ext "+ext(ac));
ac.TextStyleId=std; ac.Height=job.Height; ac.WidthFactor=job.WidthFactor; ac.AdjustAlignment(Db);
Log("1.027 AC after style "+((TextStyleTableRecord)Tx.GetObject(ac.TextStyleId,OpenMode.ForRead)).Name+" h "+ac.Height.ToString("F4")+" wf "+ac.WidthFactor.ToString("F3")+" ext "+ext(ac)+" (verified)");
Ed.Regen();
Result
Log
ref JOB_NO style Standard h 0.1167 wf 1.000 ext 5.718,1.352 - 7.179,1.468 SITE_ADDRESS before wf 0.567 ext 0.679,2.118 - 3.100,2.274 SITE_ADDRESS after wf 1.000 h 0.1167 ext 0.679,2.118 - 4.945,2.274 (verified) SUBDIVISION_NAME_LOT before wf 0.687 ext 5.753,2.139 - 7.559,2.256 SUBDIVISION_NAME_LOT: "TAX PARCELS 17 0091 LL1920 & LL1938" -> "TAX PARCEL 17 0091 LL1920" wf 1.000 ext 5.753,2.139 - 8.381,2.256 (verified) 1.027 AC before style SIMPLEX h 0.1000 wf 0.535 ext 0.708,1.890 - 1.072,1.990 1.027 AC after style Standard h 0.1167 wf 1.000 ext 0.700,1.890 - 1.489,2.007 (verified)
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.