← Inbox

C3D-0642 · C3 label: add 36" CONC [C3D-C3LBL] done

Append a 36" CONC line to the C3 structure label (h=307E1).

Script file
C3D-0642.cs
Target
261004-C-Store As-Built Storm.dwg · model space
Author
claude
Approved
yes · auto-auth
Timeout
60s

C# payload

ObjectId id; Db.TryGetObjectId(new Handle(Convert.ToInt64("307E1",16)),out id);
var m=(MText)Tx.GetObject(id,OpenMode.ForWrite);
string P=((char)92).ToString()+"P";
string old=m.Contents;
if(old.Contains("36\" CONC")){ Log("SKIP - already has 36\" CONC: "+old); return; }
m.Contents=old+P+"36\" CONC";
Log("C3 label: \""+old+"\" -> \""+m.Contents+"\" (verified: "+m.Text.Replace(((char)13).ToString(),"").Replace(((char)10).ToString()," / ")+")");
Ed.Regen();

Result

Status
success
Drawing file
C:\Users\sanja\OneDrive\_SurveyDisco\261004 - 5030 E Lake Pkwy, Stockbridge, GA 30281, USA\261004-C-Store As-Built Storm.dwg
Message
Executed C3D-0642 (0 entities touched).
Entities
—
Duration
853 ms
Civil 3D
25.0.0.0

Log

C3 label: "C3\PRIM 726.78\PINV 716.68" -> "C3\PRIM 726.78\PINV 716.68\P36" CONC" (verified: C3 / RIM 726.78 / INV 716.68 / 36" CONC)

Notes

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

No notes yet.