← Inbox

C3D-0096 · READ-ONLY: current SEWER_LINE_TEXT label contents [RD-SEWER-LBL] done

Lists every MText on SEWER_LINE_TEXT with its exact contents so the 8 inch PVC suffix can be appended in the format already applied to the A16 to A14 label. No changes.

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

C# payload

// READ-ONLY. Every MText on SEWER_LINE_TEXT with its exact contents, so the 8" PVC suffix can be
// appended to the length labels in the format the user already applied to A16->A14.
var ms = (BlockTableRecord)Tx.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(Db), OpenMode.ForRead);
var rows = new List<string>();
foreach (ObjectId id in ms) {
    var mt = Tx.GetObject(id, OpenMode.ForRead) as MText;
    if (mt == null || mt.Layer != "SEWER_LINE_TEXT") continue;
    rows.Add(String.Format("[{0}]  {1}", mt.Handle, mt.Contents));
}
rows.Sort();
foreach (var r in rows) Log(r);
Log("total: " + rows.Count);

Result

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

Log

[2EF4E]  12.07'
[2EF4F]  132.52' - 8" PVC
[2EF50]  133.21'
[2EF51]  55.14'
[2EF52]  86.31'
[2EF53]  30.97'
[2EF54]  133.46'
[2EF55]  80.46'
[2EF56]  161.58'
[2EF57]  359.02'
[2EF58]  80.02'
[2EF59]  155.37'
[2EF5A]  19.54'
[2EF5B]  8.66'
[2EF5D]  15.66%
[2EF5E]  2.81%
[2EF60]  0.59%
[2EF61]  8.89%
[2EF62]  1.29%
[2EF63]  15.60%
[2EF64]  12.37%
[2EF65]  1.16%
[2EF66]  0.50%
[2EF67]  0.60%
[2EF68]  2.41%
[2EF69]  2.25%
total: 26

Notes

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

No notes yet.