示例#1
0
 public void Clear()
 {
     PointsX.Clear();
     PointsY.Clear();
     if (PointObjectIds.Any())
     {
         Acad.DeleteObjects(PointObjectIds);
     }
 }
示例#2
0
 public void Clear()
 {
     PointsX.Clear();
     PointsY.Clear();
     if (PointObjectIds.Any())
     {
         Acad.DeleteObjects(PointObjectIds);
     }
     PointObjectIds = Array.Empty <ObjectId>();
 }
示例#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);
            }
        }
示例#4
0
 public override void Teardown()
 {
     Acad.DeleteObjects(PointObjectIds);
     base.Teardown();
 }
示例#5
0
 public virtual void Teardown()
 {
     Acad.DeleteObjects(OriginObject);
     TechOperations.ForEach(to => to.Teardown());
 }