Пример #1
0
        private void bObjects_Click(object sender, EventArgs e)
        {
            Acad.SelectObjectIds();
            Interaction.SetActiveDocFocus();
            var ids = Interaction.GetSelection("\nВыберите объекты распиловки", $"{AcadObjectNames.Line},{AcadObjectNames.Arc},{AcadObjectNames.Lwpolyline}");

            if (ids.Length == 0)
            {
                return;
            }
            Acad.DeleteExtraObjects();
            _techProcess.CreateExtraObjects(ids);
            tbObjects.Text = _techProcess.ProcessingArea.GetDesc();
        }
Пример #2
0
        private void bObject_Click(object sender, System.EventArgs e)
        {
            Acad.SelectObjectIds();
            Interaction.SetActiveDocFocus();
            var ids = Interaction.GetSelection("\nВыберите объект", $"{AcadObjectNames.Line},{AcadObjectNames.Arc},{AcadObjectNames.Lwpolyline}");

            if (ids.Length == 0)
            {
                return;
            }
            Acad.DeleteExtraObjects();
            _techOperation.ProcessingArea = null;
            var border = ((SawingTechProcess)_techOperation.TechProcess).CreateExtraObjects(ids[0])[0];

            _techOperation.SetFromBorder(border);
            tbObject.Text = _techOperation.ProcessingArea.GetDesc();
            sawingTechOperationBindingSource.ResetBindings(false);
            sawingModesView.sawingModesBindingSource.DataSource = _techOperation.SawingModes;
        }