Пример #1
0
        // Set an update method. When the target object is modified in
        // Revit, this will cause the sub-elements to be modified.
        protected override IEnumerable <Element> ExtractSelectionResults(DividedSurface selection)
        {
            IEnumerable <Element> result;

            try
            {
                result = RevitElementSelectionHelper <DividedSurface> .GetFamilyInstancesFromDividedSurface(
                    selection).ToList();
            }
            catch
            {
                result = new List <Element>();
            }

            return(result);
        }
Пример #2
0
 // Set an update method. When the target object is modified in
 // Revit, this will cause the sub-elements to be modified.
 protected override IEnumerable <Element> ExtractSelectionResults(DividedSurface selection)
 {
     return
         (RevitElementSelectionHelper <DividedSurface> .GetFamilyInstancesFromDividedSurface(
              selection));
 }