private void RunTest() { var selectedObjects = AutocadUtils.GetAllCurves(); if (selectedObjects == null || !Tools.Any()) { return; } ProcessObjectFactory.Create(selectedObjects.FindAll(p => p.GetLength() > 100), Tools.Where(p => p.No == 2)); /* * SectionCurves.AddRange(selectedObjects.FindAll(p => p.GetLength() < 100).Cast<Curve>().ToList()); * var points = SectionCurves.Select(p => p.StartPoint.Y).Concat(SectionCurves.Select(p => p.EndPoint.Y)); * Settings.GetInstance().HeightMax = points.Max(); * Settings.GetInstance().HeightMin = points.Min(); * SettingForm.RefreshForm(); * */ Calculate(); ObjectForm.RefreshList(); }