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