public void ShouldProject() { DwgTest.ExecuteActionsInDwg(KnownValues.Notches1.DrawingPath, (db, tx) => { var projector = KnownValues.Notches1.ToProjector(db, tx); var targetNotches = projector.Project(); AcadHelpers.GeneratePoints(db, tx, targetNotches); AcadHelpers.ConfigurePointsToBeVisible(db); return(KnownValues.Notches1.GenerateSnapshotDrawingPath()); }); }
public void UpdateDestinationNotches() { UpdateProjectorFromParams(); var document = Application.DocumentManager.MdiActiveDocument; using (document.LockDocument()) { using (var tx = document.TransactionManager.StartTransaction()) { var db = document.Database; var targetNotches = projector.Project(); AcadHelpers.GeneratePoints(db, tx, targetNotches); AcadHelpers.ConfigurePointsToBeVisible(db); tx.Commit(); } } }