Exemplo n.º 1
0
        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());
            });
        }
Exemplo n.º 2
0
        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();
                }
            }
        }