C3D-RDNAMES · Add Demoney + Newborn road names done
Road name labels with R/W note at best-guess positions
C# payload
// Add the two other road names (name + R/W note per the road-text rule), best-guess positions:
// Demoney Road at the north end, Newborn Drive SW at the south end. On C-ANNO; user re-positions.
var bt = (BlockTable)Tx.GetObject(Db.BlockTableId, OpenMode.ForRead);
var ms = (BlockTableRecord)Tx.GetObject(bt[BlockTableRecord.ModelSpace], OpenMode.ForWrite);
EnsureLayer("C-ANNO");
void RoadText(string contents, double e, double n) {
var mt = new MText { Location = new Point3d(e, n, 0), Contents = contents, TextHeight = 8, Attachment = AttachmentPoint.MiddleCenter };
mt.Layer = "C-ANNO"; ms.AppendEntity(mt); Tx.AddNewlyCreatedDBObject(mt, true);
Log($"placed '{contents.Replace("\\P", " / ")}' at ({e:F1},{n:F1})");
}
RoadText("DEMONEY ROAD\\P(R/W VARIES)", 2166600, 1331000); // north, above Stonewall Tell top
RoadText("NEWBORN DRIVE SW\\P(R/W VARIES)", 2166600, 1329820); // south, near the SW road points
Log("Road name labels added.");
Result
Log
placed 'DEMONEY ROAD / (R/W VARIES)' at (2166600.0,1331000.0) placed 'NEWBORN DRIVE SW / (R/W VARIES)' at (2166600.0,1329820.0) Road name labels added.
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.