Example #1
0
 public void Clear()
 {
     PointsX.Clear();
     PointsY.Clear();
     if (PointObjectIds.Any())
     {
         Acad.DeleteObjects(PointObjectIds);
     }
 }
Example #2
0
 public void Clear()
 {
     PointsX.Clear();
     PointsY.Clear();
     if (PointObjectIds.Any())
     {
         Acad.DeleteObjects(PointObjectIds);
     }
     PointObjectIds = Array.Empty <ObjectId>();
 }
Example #3
0
        private void bOrigin_Click(object sender, EventArgs e)
        {
            Interaction.SetActiveDocFocus();
            var point = Interaction.GetPoint("\nВыберите точку начала координат");

            if (!point.IsNull())
            {
                _techProcess.OriginX = point.X.Round(3);
                _techProcess.OriginY = point.Y.Round(3);
                tbOrigin.Text        = $"{{{_techProcess.OriginX}, {_techProcess.OriginY}}}";
                if (_techProcess.OriginObject != null)
                {
                    Acad.DeleteObjects(_techProcess.OriginObject);
                }
                _techProcess.OriginObject = Acad.CreateOriginObject(point);
            }
        }
Example #4
0
 public override void Teardown()
 {
     Acad.DeleteObjects(PointObjectIds);
     base.Teardown();
 }
Example #5
0
 public virtual void Teardown()
 {
     Acad.DeleteObjects(OriginObject);
     TechOperations.ForEach(to => to.Teardown());
 }