C3D-FEATPTS · Locate manhole + water feature points (read-only) done
Coords for SSMH points and water points 1130-1139 to place HCWA symbols.
C# payload
// READ-ONLY: locate the CogoPoints for sewer manholes (SSMH A-1..A-6, 100-102, 1112-1114, 106) and
// the kept water points (1130-1139) so we can place HCWA symbols at the right coords.
using System;
using System.Linq;
using Autodesk.Civil.ApplicationServices;
using Autodesk.Civil.DatabaseServices;
using Autodesk.AutoCAD.DatabaseServices;
var db = Db;
var cdoc = CivilDocument.GetCivilDocument(db);
var wanted = new HashSet<int>{ 100,101,102,106,1112,1113,1114, 1130,1131,1132,1133,1134,1135,1136,1137,1138,1139 };
using (var tr = db.TransactionManager.StartTransaction())
{
foreach (ObjectId id in cdoc.CogoPoints)
{
var cp = tr.GetObject(id, OpenMode.ForRead) as CogoPoint;
if (cp == null) continue;
int n = (int)cp.PointNumber;
if (!wanted.Contains(n)) continue;
Log($"{n},{cp.Easting:0.0000},{cp.Northing:0.0000},{cp.Elevation:0.0000},{cp.RawDescription}");
}
tr.Commit();
}
Result
Log
100,2296827.2655,1280096.0701,722.6730,SSMH MD 10.3 101,2296877.7357,1280034.3199,721.4290,SSMH MD 21.95 102,2296981.3901,1279913.2870,691.2420,SSMH MD 13.96 WATER 106,2297424.6081,1279599.1940,686.3720,SSMH BOLTED 1112,2297249.7444,1279675.1510,682.7687,SSMH INV 9.62 1113,2297269.0497,1279597.6937,688.4282,SSMH INV 15.27 1114,2297422.9283,1279618.6975,687.0220,SSMH INV 15.0
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.