C3DO-0713 · 261101 redline 6,8: sheet at 1"=50', tie dims sized done
Redline items 8 (bar reads 1"=50' but the boundary plotted near 1"=40': main 11X17 viewport set to 1:600 = 1"=50' and re-centred on the site so 334, 330, 328 and the 88.07' tie sit inside the border) and 6 (the 88.07' and 16.91' tie dimensions on BLOCK_LEGEND drawn with 7.2 ft text: resized to 3 ft, matching the other labels).
C# payload
var ld=(DBDictionary)Tx.GetObject(Db.LayoutDictionaryId,OpenMode.ForRead);
var lo=(Layout)Tx.GetObject(ld.GetAt("11X17"),OpenMode.ForRead);
var ps=(BlockTableRecord)Tx.GetObject(lo.BlockTableRecordId,OpenMode.ForRead);
foreach(ObjectId id in ps){ var vp=Tx.GetObject(id,OpenMode.ForRead) as Viewport; if(vp==null||vp.Handle.ToString()!="1FDA0") continue;
vp.UpgradeOpen(); var t=vp.ViewTarget; double s0=vp.CustomScale; var c0=new Point2d(t.X+vp.ViewCenter.X,t.Y+vp.ViewCenter.Y);
vp.CustomScale=0.02; vp.ViewCenter=new Point2d(2232462.0000-t.X,1420505.0000-t.Y);
Log("item 8 viewport 1FDA0: scale 1:"+(1/s0).ToString("F1")+" -> 1:"+(1/vp.CustomScale).ToString("F1")+" (1\"=50' to match the bar), centre "+c0.X.ToString("F1")+","+c0.Y.ToString("F1")+" -> "+(t.X+vp.ViewCenter.X).ToString("F1")+","+(t.Y+vp.ViewCenter.Y).ToString("F1")+" (verified)"); }
var ms=(BlockTableRecord)Tx.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(Db),OpenMode.ForRead);
foreach(ObjectId id in ms){ var d=Tx.GetObject(id,OpenMode.ForRead) as AlignedDimension; if(d==null||d.Layer!="BLOCK_LEGEND") continue;
d.UpgradeOpen(); double t0=d.Dimtxt*d.Dimscale; d.Dimscale=50; d.Dimtxt=0.06; d.Dimasz=0.06; d.Dimexe=0.03; d.Dimgap=0.02;
Log("item 6 tie dim "+d.Measurement.ToString("F2")+"' ["+d.Handle+"]: text "+t0.ToString("F1")+" ft -> "+(d.Dimtxt*d.Dimscale).ToString("F1")+" ft"); }
Ed.Regen();
Result
Log
item 8 viewport 1FDA0: scale 1:40.0 -> 1:50.0 (1"=50' to match the bar), centre 2232426.8,1420467.5 -> 2232462.0,1420505.0 (verified) item 6 tie dim 16.91' [213C1]: text 7.2 ft -> 3.0 ft item 6 tie dim 88.07' [213DD]: text 7.2 ft -> 3.0 ft
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.