← Inbox

C3D-REGENTEST · Verify host auto-regen done

Adds and erases a stub entity with NO Ed.Regen() in the script, to confirm the rebuilt ScriptRunner regens automatically after commit.

Script file
C3D-REGENTEST.cs
Target
active document · paper space
Author
claude
Approved
yes · auto-auth
Timeout
60s

C# payload

// Verify the rebuilt host auto-regens: draw a tiny throwaway line in paper space, then erase
// it in the same run. If the host regen is in place the viewport repaints with no click and
// no Ed.Regen() in this script.
var pl = new Polyline();
pl.AddVertexAt(0, new Point2d(0.1, 0.1), 0, 0, 0);
pl.AddVertexAt(1, new Point2d(0.2, 0.2), 0, 0, 0);
ModelSpace.AppendEntity(pl);
Tx.AddNewlyCreatedDBObject(pl, true);
pl.Erase();
Log("Touched the drawing (added+erased a stub). No Ed.Regen() in this script - host should regen.");

Result

Status
success
Drawing file
C:\Users\sanja\OneDrive\_SurveyDisco\260619 - 3625 Stonewall Tell Rd, Atlanta, GA 30349, USA\260619 - 3625 Stonewall Tell Rd ROTATE.dwg
Message
Executed C3D-REGENTEST (0 entities touched).
Entities
Duration
1727 ms
Civil 3D
25.0.0.0

Log

Touched the drawing (added+erased a stub). No Ed.Regen() in this script - host should regen.

Notes

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

No notes yet.