← Inbox

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.

Script file
C3D-0226.cs
Target
260714 - 285 Huckaby Rd.dwg · model space
Author
claude
Approved
yes · auto-auth
Timeout
60s

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

Status
success
Drawing file
C:\Users\sanja\OneDrive\_SurveyDisco\260714 - 285 Huckaby Rd, Brooks, GA 30205, USA\260714 - 285 Huckaby Rd.dwg
Message
Executed C3D-0226 (0 entities touched).
Entities
Duration
363 ms
Civil 3D
25.0.0.0

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.