Esempio n. 1
0
 def views(self):
     """ Collect All Views of the same ViewFamily """
     views = Collector(of_class='View').wrapped_elements
     return [
         view for view in views if getattr(
             view.view_family, '_revit_object', None) == self.unwrap()
     ]
Esempio n. 2
0
 def views(self):
     """ Collect All Views of the same ViewFamilyType """
     views = Collector(of_class='View').get_elements(wrapped=True)
     return [
         view for view in views if getattr(
             view.view_family_type, '_revit_object', None) == self.unwrap()
     ]
Esempio n. 3
0
 def views(self):
     # Collect All Views, Compare view_family of each view with self
     views = Collector(of_class='View').wrapped_elements
     return [
         view for view in views if getattr(
             view.view_family, '_revit_object', None) == self.unwrap()
     ]
Esempio n. 4
0
 def views(self):
     """ Collect All Views of the same ViewType """
     views = Collector(of_class='View').wrapped_elements
     return [
         view for view in views if view.view_type.unwrap() == self.unwrap()
     ]
Esempio n. 5
0
 def views(self):
     views = Collector(of_class='View').wrapped_elements
     return [
         view for view in views if view.view_type.unwrap() == self.unwrap()
     ]