Lock Parameter – Excluding Elements from Execution
The Lock Parameter lets you exclude individual elements from rule execution without modifying the rule itself or manually adjusting the selection.
How the Lock Parameter works
In Settings, you choose any Yes/No parameter from the current Revit project as the Lock Parameter. If an element has this parameter set to Yes, the MultiPushTool skips it during execution — no parameter value is written to that element.
Logic
| Lock Parameter value on element | Behavior during execution |
|---|---|
| Yes (1) | Element is skipped — no parameter is written |
| No (0) | Element is processed normally |
| Parameter not present on element | Element is processed normally (no lock = not locked) |
Setting up the Lock Parameter
A new "Lock Parameter" dropdown appears under General. It lists all Yes/No parameters in the current project.
- Open Settings via the gear icon.
- Select the desired parameter from the "Lock Parameter" dropdown.
- Confirm with OK.
- Elements with this parameter set to Yes are skipped on every execution from now on.
To disable, select the first empty entry in the dropdown.
Which parameters appear in the list?
Only Yes/No parameters (YesNo type) existing as project or shared parameters, sorted alphabetically. Built-in Revit Yes/No parameters and family-only parameters are not shown.
Typical use cases
| Scenario | Parameter example |
|---|---|
| Mark elements as "checked/done" and exclude from further batch changes |
MPT_Locked, Checked
|
| Protect elements being edited by other disciplines |
Do_Not_Edit
|
| Define exceptions within a large rule set |
MPT_Exception
|
MPT_Locked) bound to all relevant categories. This lets you
lock and unlock individual elements directly from within the tool.
Execution log behavior
Skipped (locked) elements are not listed separately in the log — they are excluded from the count. The "Y parameters set (of Z)" figure reflects only elements actually processed.
Comments
0 comments
Please sign in to leave a comment.