public static void Execute(Document doc) { if (!MainUserControl._Reset) { var clashing = Clash.clashingElements(RevitTools.Doc, RevitTools.App); foreach (var item in clashing) { MainUserControl.elementsClashingA.Add(item); } RevitTools.OverrideInView(clashing, RevitTools.Doc); } else { RevitTools.OverrideInView(new List <Element>(), RevitTools.Doc); } }
private void OnSelected(object sender, RoutedEventArgs e) { int id = Int32.Parse(Clashes.SelectedItem.ToString()); RevitTools.Focus(id); }