C3D-PKRECON · Find the 4 parking lines (read-only) done
Dump newest lines to identify parking rows
C# payload
// Read-only: dump the newest Line entities (by handle) to find the 4 parking lines the user added.
var bt = (BlockTable)Tx.GetObject(Db.BlockTableId, OpenMode.ForRead);
var ms = (BlockTableRecord)Tx.GetObject(bt[BlockTableRecord.ModelSpace], OpenMode.ForRead);
var lines = new List<(long h, string handle, string layer, Point3d s, Point3d e, double len)>();
foreach (ObjectId id in ms) {
var o = Tx.GetObject(id, OpenMode.ForRead);
if (o is Line ln) lines.Add((System.Convert.ToInt64(ln.Handle.ToString(), 16), ln.Handle.ToString(), ln.Layer, ln.StartPoint, ln.EndPoint, ln.Length));
}
foreach (var l in lines.OrderByDescending(x => x.h).Take(16))
Log($"h={l.handle} '{l.layer}' ({l.s.X:F2},{l.s.Y:F2})->({l.e.X:F2},{l.e.Y:F2}) len={l.len:F2}");
Log("Parking recon complete (read-only).");
Result
Log
h=20C41 'SS-V-ROAD-CURB' (2166721.05,1330369.27)->(2166739.66,1330363.70) len=19.42 h=20C40 'SS-V-ROAD-CURB' (2166783.73,1330351.30)->(2166763.33,1330356.02) len=20.94 h=20C3F 'SS-V-ROAD-CURB' (2166765.54,1330365.66)->(2166785.97,1330361.31) len=20.89 h=20C3E 'SS-V-ROAD-CURB' (2166724.22,1330378.59)->(2166743.42,1330373.43) len=19.88 h=20C3D 'C-PROP-LINE' (2166872.29,1330718.97)->(2166698.41,1330004.97) len=734.86 h=20C3A 'C-PROP-LINE' (2166606.42,1330722.79)->(2166662.31,1330721.98) len=55.89 h=20C37 'C-PROP-LINE' (2166609.13,1330752.55)->(2166606.42,1330722.79) len=29.89 h=20C1F 'PARCEL' (2166200.70,1330425.09)->(2166325.70,1330424.88) len=125.00 h=20C1B 'PARCEL' (2165920.21,1330427.03)->(2166200.70,1330425.09) len=280.50 h=20C17 'PARCEL' (2165972.26,1330640.78)->(2165920.21,1330427.03) len=220.00 h=20C13 'PARCEL' (2166259.15,1330784.13)->(2166059.45,1330795.09) len=200.00 h=20C0B 'C-PROP-LINE' (2166534.36,1330760.93)->(2166609.13,1330752.55) len=75.23 h=20C07 'C-PROP-LINE' (2166508.66,1330060.42)->(2166534.36,1330760.93) len=700.98 h=20C03 'C-PROP-LINE' (2166493.93,1329658.69)->(2166508.66,1330060.42) len=402.00 h=20BD8 'SS-BOUNDARY MAG' (2166732.60,1329945.99)->(2166723.31,1329905.74) len=41.31 h=20BD7 'SS-BOUNDARY MAG' (2166737.96,1329969.55)->(2166732.60,1329945.99) len=24.16 Parking recon complete (read-only).
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.