← Inbox

C3D-0516 · Place ONE test char 812 [C3D-0517] done

Place a single TEST-X DBText h20 at the frontage with SetDatabaseDefaults to confirm it persists.

Script file
C3D-0516.cs
Target
812 Christmas Ave.dwg · model space
Author
claude
Approved
yes · auto-auth
Timeout
60s

C# payload


var ms=(BlockTableRecord)Tx.GetObject(SymbolUtilityServices.GetBlockModelSpaceId(Db),OpenMode.ForWrite);
var t=new DBText();
t.SetDatabaseDefaults();
t.TextString="TEST-X";
t.Height=20.0;
t.Position=new Point3d(2433980.0,1429480.0,0);
t.Layer="V-ROAD-TEXT";
ms.AppendEntity(t); Tx.AddNewlyCreatedDBObject(t,true);
Log("placed test h="+t.Handle+" pos="+t.Position.X.ToString("F1")+","+t.Position.Y.ToString("F1"));
Ed.Regen();

Result

Status
success
Drawing file
C:\Users\sanja\OneDrive\_SurveyDisco\260903 - 812 Christmas Ave, Bethlehem, GA 30620, USA\812 Christmas Ave.dwg
Message
Executed C3D-0516 (0 entities touched).
Entities
—
Duration
410 ms
Civil 3D
25.0.0.0

Log

placed test h=22B83 pos=2433980.0,1429480.0

Notes

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

No notes yet.