← Inbox

C3D-RDNAMES · Add Demoney + Newborn road names done

Road name labels with R/W note at best-guess positions

Script file
C3D-RDNAMES.cs
Target
active document · model space
Author
claude
Approved
yes · claude (session)
Timeout
60s

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

Status
success
Drawing file
C:\Users\sanja\OneDrive\_SurveyDisco\260619 - 3625 Stonewall Tell Rd, Atlanta, GA 30349, USA\260619 - 3625 Stonewall Tell Rd.dwg
Message
Executed C3D-RDNAMES (0 entities touched).
Entities
Duration
417 ms
Civil 3D
25.0.0.0

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.