← Inbox

C3D-0497 · Road name lineweight ByLayer 260904 [C3D-0498] done

Set the W Sandtown Rd name MText (21152) lineweight to ByLayer so it inherits X-BOUNDARY 0.35mm.

Script file
C3D-0497.cs
Target
260904 - 920 W Sandtown Rd SW.dwg · model space
Author
claude
Approved
yes · auto-auth
Timeout
60s

C# payload


Handle h=new Handle(Convert.ToInt64("21152",16));
ObjectId id; if(!Db.TryGetObjectId(h,out id)||id.IsNull){ Log("not found"); return; }
var m=(MText)Tx.GetObject(id,OpenMode.ForWrite);
var old=m.LineWeight;
m.LineWeight=LineWeight.ByLayer;
Log("road name lw: "+old+" -> "+m.LineWeight+" (layer X-BOUNDARY=0.35)");
Ed.Regen();

Result

Status
success
Drawing file
C:\Users\sanja\OneDrive\_SurveyDisco\260904 - 920 W Sandtown Rd SW, Marietta, GA 30064, USA\260904 - 920 W Sandtown Rd SW.dwg
Message
Executed C3D-0497 (0 entities touched).
Entities
Duration
401 ms
Civil 3D
25.0.0.0

Log

road name lw: ByLineWeightDefault -> ByLayer (layer X-BOUNDARY=0.35)

Notes

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

No notes yet.