Type Rules
Type Rules let you automatically assign floor or ceiling types to many rooms at once — based on a room parameter. Instead of selecting the type room by room, you define rules such as: "If Department = Office → Floor type Hardwood + Ceiling type Acoustic Ceiling".
Opening the Dialog
Click Type Rules in the ribbon (next to Parameter Mapping). This opens the "Edit Type Rules" dialog.
Dialog Layout
The dialog has three areas:
-
Rule table (center) — Define your rules here. Each row is a rule with the following columns:
- Active — Checkbox: Only active rules are evaluated.
- Room parameter — The parameter to check against (e.g. Department, Name, Number).
- Comparison — The comparison operator (see below).
- Value — The comparison value (e.g. "Office").
- Floor type — The type to assign, or "Do not change".
- Ceiling type — The type to assign, or "Do not change".
- Rooms — Shows in real time how many rooms this rule actually assigns.
-
Buttons (bottom left):
- + (Ctrl+N) — Add a new rule
- − (Del) — Delete the selected rule
- ↑ (Alt+↑) — Move rule up
- ↓ (Alt+↓) — Move rule down
- Templates — Load, save or manage rule sets
- Summary (bottom right) — Displays: X rooms total · Y covered by rules · Z without a matching rule.
Comparison Operators
The available operators depend on the type of the selected parameter:
| Parameter type | Available operators |
|---|---|
| Text | equals, not equals, contains, does not contain, starts with, does not start with, ends with, does not end with, has a value, has no value |
| Number | equals, not equals, greater than, greater or equal, less than, less or equal, has a value, has no value |
| Yes/No | equals, not equals, has a value, has no value |
Evaluation Logic
Rules are evaluated from top to bottom — the first matching active rule wins. Once a room is covered by a higher rule, it is no longer counted for subsequent rules. Inactive or incomplete rules are skipped.
Tip: Rule order matters. Move specific rules to the top and general catch-all rules to the bottom.
The "Rooms" column updates live with every change, showing how many rooms each rule actually assigns — taking all higher rules into account.
Option: Only assign types that are not yet selected
When this option is enabled, Rubia skips rooms that already have a floor or ceiling type assigned. This lets you fill in only the remaining rooms without overwriting existing assignments.
Apply
Click Apply to write the type assignments into the room list. Rubia first validates:
- Is a room parameter selected?
- Is the comparison operator valid?
- Is at least one target type set?
The message shows: "X rooms checked, Y matching rooms, Z type assignments changed."
Important: Apply only changes the assignments in the room list — no elements are created in the model yet. To create them, click Apply in the main window as usual.
Templates
Rule sets can be saved as templates and reused across projects:
- Save — Saves the current rules under a name of your choice.
- Load — Loads a saved rule set. Rubia automatically resolves references (types, parameters) in the target project. If a type or parameter cannot be matched, the rule is flagged and a warning is shown.
- Manage — Rename or delete templates.
Templates are independent of the project and the Revit version. They are stored under %APPDATA%\Planworks\Rubia\TypeRuleTemplates.
Example
Suppose you want to assign floor coverings by usage in an office building:
| Active | Parameter | Comparison | Value | Floor type | Ceiling type |
|---|---|---|---|---|---|
| ✓ | Department | equals | Bathroom | Tiles 10 mm | Do not change |
| ✓ | Department | equals | Office | Hardwood 15 mm | Acoustic Ceiling A |
| ✓ | Name | contains | Corridor | Linoleum 3 mm | Do not change |
Order: Bathrooms get tiles first. Then offices get hardwood and an acoustic ceiling. Finally, all corridors get linoleum. A room with "Office" as department and "Corridor" in its name would get hardwood (rule 2 matches first).
Comments
0 comments
Please sign in to leave a comment.