← Inbox

C3D-0016 · Read points 378 and 675 [TIE-PTS] done

Read-only: coordinates and descriptions for points 378 and 675, to compute the tie bearing and distance.

Script file
C3D-0016.cs
Target
260612 · model space
Author
claude
Approved
yes · reviewer
Timeout
120s

C# payload

// READ-ONLY: points 378 and 675 - coordinates and descriptions, for the tie line.
var cd = CivilDoc;
foreach (ObjectId id in cd.CogoPoints) {
    var cp = Tx.GetObject(id, OpenMode.ForRead) as CogoPoint;
    if (cp == null) continue;
    if (cp.PointNumber != 378 && cp.PointNumber != 675) continue;
    Log("pt " + cp.PointNumber + "  E=" + cp.Easting.ToString("F3") + "  N=" + cp.Northing.ToString("F3") +
        "  Z=" + cp.Elevation.ToString("F2") + "  '" + (cp.RawDescription ?? "") + "'  layer='" + cp.Layer + "'");
}

Result

Status
success
Drawing file
C:\Users\sanja\OneDrive\_SurveyDisco\260613 - 5030 E Lake Pkwy, Stockbridge, GA 30281, USA\260612 - CSTORE WATER ABS BOUNDARY.dwg
Message
Executed C3D-0016 (0 entities touched).
Entities
Duration
419 ms
Civil 3D
25.0.0.0

Log

pt 378  E=2296827.248  N=1280095.994  Z=724.78  'SSMH A6'  layer='SEWER_MANHOLE'
pt 675  E=2303522.780  N=1273042.370  Z=826.24  'HC07-06'  layer='0'

Notes

What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.

No notes yet.