private static List <ObjectId> GetSelection() { var sel = Ed.SelectImplied(); if (sel.Status == PromptStatus.OK) { return(sel.Value.GetObjectIds().ToList()); } return(Ed.SelectBlRefs("Выбор блоков")); }