public static void SelectByLayer() { var options = DbHelper.GetAllLayerNames(); var opt = Gui.GetChoices("Specify layers", options); if (opt.Length < 1) { return; } var ids = QuickSelection.SelectAll().QWhere(x => opt.Contains(x.Layer)).ToArray(); Interaction.SetPickSet(ids); }
public static void SelectByLayer() { var availableLayerNames = DbHelper.GetAllLayerNames(); var selectedLayerNames = Gui.GetChoices("Specify layers", availableLayerNames); if (selectedLayerNames.Length < 1) { return; } var ids = QuickSelection .SelectAll(FilterList.Create().Layer(selectedLayerNames)) .ToArray(); Interaction.SetPickSet(ids); }