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.
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
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.