C3D-HCPTS · Read house/deck/step points (read-only) done
Dump HC/DECK/STEP/FF/CON COR points with coords, ordered by number, to trace the footprint
C# payload
// Read-only: dump the house/deck/step structure points (HC = house corner, DECK, STEP, FF, CON COR)
// with number + coords, ordered by point number, so we can trace the footprint from real geometry.
var cd = CivilDoc; var cps = cd.CogoPoints;
var want = new [] { "HC", "DECK", "STEP", "FF", "CON COR" };
var hits = new List<(uint num, string raw, double e, double n, double z)>();
foreach (ObjectId id in cps) {
var cp = (Autodesk.Civil.DatabaseServices.CogoPoint)Tx.GetObject(id, OpenMode.ForRead);
var raw = (cp.RawDescription ?? "").Trim();
var u = raw.ToUpperInvariant();
bool match = false;
foreach (var w in want) if (u == w || u.StartsWith(w + " ") || u.EndsWith(" " + w) || u.Contains(" " + w + " ") || u.Contains(w)) { match = true; break; }
if (match) hits.Add((cp.PointNumber, raw, cp.Easting, cp.Northing, cp.Elevation));
}
foreach (var h in hits.OrderBy(x => x.num))
Log($"#{h.num,-4} '{h.raw,-14}' E={h.e:F2} N={h.n:F2} Z={h.z:F2}");
Log($"structure points: {hits.Count}");
Result
Log
#100 'CON COR ' E=2225351.43 N=1346137.33 Z=932.97 #101 'STEP ' E=2225352.47 N=1346136.02 Z=933.08 #102 'CON COR ' E=2225355.28 N=1346133.32 Z=933.49 #103 'DECK STEP ' E=2225355.06 N=1346134.29 Z=933.47 #104 'DECK STEP ' E=2225358.93 N=1346138.32 Z=933.55 #105 'CON COR ' E=2225360.32 N=1346138.05 Z=933.61 #106 'STEP ' E=2225357.27 N=1346140.95 Z=933.18 #107 'CON COR ' E=2225357.28 N=1346143.46 Z=933.00 #108 'CON COR ' E=2225359.73 N=1346141.03 Z=933.19 #109 'CON COR ' E=2225358.48 N=1346139.71 Z=933.19 #110 'DECK STEP ' E=2225360.71 N=1346129.42 Z=938.89 #111 'DECK STEP ' E=2225364.40 N=1346133.31 Z=938.77 #112 'HC ' E=2225362.86 N=1346127.24 Z=939.00 #113 'HC ' E=2225363.88 N=1346126.47 Z=938.81 #114 'DECK COR ' E=2225364.79 N=1346133.69 Z=933.86 #115 'HC ' E=2225376.51 N=1346141.63 Z=933.94 #124 'HC ' E=2225413.08 N=1346106.97 Z=937.18 #131 'HC SW ' E=2225418.09 N=1346095.36 Z=937.91 #132 'SW AT DECK ' E=2225412.78 N=1346095.08 Z=939.16 #134 'HC DWY COR ' E=2225438.73 N=1346076.02 Z=938.25 #138 'HC ' E=2225422.48 N=1346058.91 Z=938.03 #144 'HC DECK COR ' E=2225357.51 N=1346119.84 Z=934.13 #145 'DECK COR ' E=2225354.25 N=1346122.82 Z=933.72 #175 'FF ' E=2225364.73 N=1346128.75 Z=938.95 structure points: 24
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.