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
Esempio n. 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
Esempio n. 3
0
 def __getitem__(self, builtin_enum):
     """ Retrieves Built In Parameter. """
     if isinstance(builtin_enum, str):
         builtin_enum = BipEnum.get(builtin_enum)
     parameter = self._revit_object.get_Parameter(builtin_enum)
     if not parameter:
         raise RpwParameterNotFound(self._revit_object, builtin_enum)
     return Parameter(parameter)
Esempio n. 4
0
 def __getitem__(self, builtin_enum):
     """ Retrieves Built In Parameter. """
     if isinstance(builtin_enum, str):
         builtin_enum = BipEnum.get(builtin_enum)
     parameter = self._revit_object.get_Parameter(builtin_enum)
     if not parameter:
         raise RpwParameterNotFound(self._revit_object, builtin_enum)
     return Parameter(parameter)
Esempio n. 5
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
Esempio n. 6
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
Esempio n. 7
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
Esempio n. 8
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