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() ]
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() ]
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() ]
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() ]
def views(self): views = Collector(of_class='View').wrapped_elements return [ view for view in views if view.view_type.unwrap() == self.unwrap() ]