def areas(self):
     """ Returns all Area Instances of this Area Scheme """
     bip = BipEnum.get_id('AREA_SCHEME_ID')
     param_filter = rpw.db.Collector.ParameterFilter(bip, equals=self._revit_object.Id)
     collector = rpw.db.Collector(parameter_filter=param_filter,
                               **Area._collector_params)
     return collector.wrapped_elements
Beispiel #2
0
 def areas(self):
     """ Returns all Area Instances of this Area Scheme """
     bip = BipEnum.get_id('AREA_SCHEME_ID')
     param_filter = rpw.db.Collector.ParameterFilter(bip, equals=self._revit_object.Id)
     collector = rpw.db.Collector(parameter_filter=param_filter,
                                  **Area._collector_params)
     return collector.wrapped_elements
Beispiel #3
0
 def coerce_param_reference(self, parameter_reference):
     if isinstance(parameter_reference, str):
         param_id = BipEnum.get_id(parameter_reference)
     elif isinstance(parameter_reference, DB.ElementId):
         param_id = parameter_reference
     else:
         RpwCoerceError(parameter_reference, ElementId)
     return param_id
 def coerce_param_reference(self, parameter_reference):
     if isinstance(parameter_reference, str):
         param_id = BipEnum.get_id(parameter_reference)
     elif isinstance(parameter_reference, DB.ElementId):
         param_id = parameter_reference
     else:
         RpwCoerceError(parameter_reference, ElementId)
     return param_id
Beispiel #5
0
 def get_instances(self, wrapped=True):
     """ Returns all Instances of this Wall Types """
     bip = BipEnum.get_id('SYMBOL_NAME_PARAM')
     param_filter = rpw.db.ParameterFilter(bip, equals=self.name)
     return rpw.db.Collector(parameter_filter=param_filter,
                             **Wall._collector_params).wrapped_elements
Beispiel #6
0
 def instances(self):
     """ Returns all Instances of this Wall Types """
     bip = BipEnum.get_id('SYMBOL_NAME_PARAM')
     param_filter = rpw.db.ParameterFilter(bip, equals=self.name)
     return rpw.db.Collector(parameter_filter=param_filter,
                             **Wall._collector_params).wrapped_elements