C3D-0226 · 260714 Huckaby: verify the driveway hatch done
READ-ONLY. Lists every model-space hatch to confirm 20D66 is present on X-DRIV-CONC and that the failed probes left no orphans.
C# payload
// READ-ONLY: confirm exactly one new hatch survives on X-DRIV-CONC and nothing was orphaned.
var ms = (BlockTableRecord)Tx.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(Db), OpenMode.ForRead);
int n = 0;
foreach (ObjectId id in ms) {
Autodesk.AutoCAD.DatabaseServices.DBObject o;
try { o = Tx.GetObject(id, OpenMode.ForRead); } catch { continue; }
var h = o as Hatch;
if (h == null) continue;
n++;
Log(string.Format("HATCH [{0}] {1} scale={2:F3} loops={3} area={4:F0} layer={5}",
h.Handle, h.PatternName, h.PatternScale, h.NumberOfLoops, h.Area, h.Layer));
}
Log("model-space hatches: " + n);
Result
Log
HATCH [20D01] AR-CONC scale=0.610 loops=1 area=29 layer=X-DRIV-CONC HATCH [20D66] AR-CONC scale=0.610 loops=1 area=3491 layer=X-DRIV-CONC model-space hatches: 2
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.