C3D-ALLPTS2 · List all point families rejected
Read-only: groups all COGO points by description prefix (fixed compile errors)
C# payload
// READ-ONLY: dump every CogoPoint with description, group by description prefix
using System;
using System.Linq;
using System.Collections.Generic;
using Autodesk.Civil.ApplicationServices;
using Autodesk.Civil.DatabaseServices;
using Autodesk.AutoCAD.DatabaseServices;
var db = Db;
var cdoc = CivilDocument.GetCivilDocument(db);
using (var tr = Tx) {
var pts = cdoc.CogoPoints;
var byDesc = new Dictionary<string, List<uint>>();
foreach (var ptId in pts) {
var pt = tr.GetObject(ptId, OpenMode.ForRead) as CogoPoint;
if (pt == null) continue;
string desc = pt.RawDescription ?? "";
string prefix = desc.Length > 0 ? desc.Split()[0] : "(none)";
if (!byDesc.ContainsKey(prefix))
byDesc[prefix] = new List<uint>();
byDesc[prefix].Add(pt.PointNumber);
}
Log($"Point families found:");
foreach (var kv in byDesc.OrderBy(x => x.Key)) {
Log($" {kv.Key:20} {kv.Value.Count:3} points #{kv.Value.Min()}-{kv.Value.Max()}");
}
}
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.