Counting Room Components
Provides step-by-step instructions on how to count room components in your MEP model using the Count Room Components function.
Before you begin
You want to count selected room components in your model and store the count of each room component in a user-defined parameter for each room, e.g., for output in Revit component lists.
Requirements
- You have created a Shared Parameter for counting components and added it to your project as a Project Parameter, for example, a parameter named NumberOfToilets. This parameter must be of type Number or Integer.
- You have created spaces in your model.
- The building services equipment families in the model are correctly parameterized.
- The components are located in the spaces.
You can clearly assign components to spaces using the Room Allocation function, which you can find in the Revit ribbon on the LINEAR| Tools tab.
Navigate to
Procedure
- In the Target Parameters section, click
Add New Target Parameter. The Select parameters: dialog: MEP Rooms / Number opens.

- Select a parameter from the list and confirm your selection by clicking OK.
The dialog closes, and the parameter is added to the list of target parameters.

- In the area Filter:, click
Revit Categories.... The Select Categories dialog opens.

- Select the categories from the list of Revit categories that match the components to be counted, and confirm by clicking OK. The dialog closes, and the selected categories are listed in the area Revit Categories....
- Click
Add Component Class above the table for component classes. The dialog Select Classification: MepClasses 1.0 opens.

- Optional: Repeat the previous step to select additional component classes, such as Water.Terminal.ToiletWithFlushingValve in addition to Water.Terminal.ToiletWithCistern.
- Select the classifications to which the components to be counted belong, and confirm your selection by clicking OK.
The dialog closes and the selected component class is added to the table.

- In the Room Assignment: drop-down list, choose between the modes Room Name/Room Number on Component and Revit Calculation to assign components to a room.
- Close the dialog with a click on OK.
Results
The target parameter(s) was/were saved in the space, and the components mapped to the target parameter were counted. The number of room components entered in the parameter is now displayed in the Properties window of Revit.
