C3D-BOLDB035 · Fix TRACT B hero bold to 0.35mm done
Set SS-BOUNDARY TRACT B polyline lineweight to 0.35mm (hero standard). Nothing else touched.
C# payload
// Correct the TRACT B hero bold to 0.35mm (was set to 0.70). Only the SS-BOUNDARY TRACT B polyline.
// Nothing else touched.
using System;
using Autodesk.AutoCAD.DatabaseServices;
var db = Db;
int n=0;
using (var tr = db.TransactionManager.StartTransaction())
{
var ms=(BlockTableRecord)tr.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(db),OpenMode.ForRead);
foreach(ObjectId id in ms)
{
var e=tr.GetObject(id,OpenMode.ForRead) as Autodesk.AutoCAD.DatabaseServices.Entity;
if(e is Polyline && string.Equals(e.Layer,"SS-BOUNDARY TRACT B",StringComparison.OrdinalIgnoreCase))
{
var w=(Polyline)tr.GetObject(id,OpenMode.ForWrite);
w.LineWeight = LineWeight.LineWeight035; // hero bold standard = 0.35mm
n++;
}
}
tr.Commit();
}
Log($"Set SS-BOUNDARY TRACT B polyline to 0.35mm hero bold. count={n}. Nothing else touched.");
Result
Log
Set SS-BOUNDARY TRACT B polyline to 0.35mm hero bold. count=1. Nothing else touched.
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.