Example #1
0
        public void SetFromBorder(Border border)
        {
            ProcessingArea = AcadObject.Create(border.ObjectId);
            var par = ((SawingTechProcess)TechProcess).SawingTechProcessParams;

            if (SawingModes == null)
            {
                SawingModes = (border.ObjectId.IsLine() ? par.SawingLineModes : par.SawingCurveModes).ConvertAll(x => x.Clone());
            }
            OuterSide      = border.OuterSide;
            IsExactlyBegin = border.IsExactlyBegin;
            IsExactlyEnd   = border.IsExactlyEnd;
        }
        private void bRail_Click(object sender, EventArgs e)
        {
            Interaction.SetActiveDocFocus();
            Acad.SelectObjectIds();
            var ids = Interaction.GetSelection("\nВыберите направляющую [Отрезок]", AcadObjectNames.Line);

            if (ids.Length == 1)
            {
                _techProcess.Rail = AcadObject.Create(ids[0]);
                tbRail.Text       = _techProcess.Rail.GetDesc();
                Acad.SelectObjectIds(ids);
            }
            else
            {
                _techProcess.Rail = null;
                tbRail.Text       = "";
            }
        }