示例#1
0
        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);
            }
        }
示例#2
0
        private void OnSelected(object sender, RoutedEventArgs e)
        {
            int id = Int32.Parse(Clashes.SelectedItem.ToString());

            RevitTools.Focus(id);
        }