Add “Pick Elements by Parameter Value” tool#3200
Add “Pick Elements by Parameter Value” tool#3200jmcouffin merged 6 commits intopyrevitlabs:developfrom
Conversation
- show value of param on element - helper to build paramdef
|
Unable to trigger custom agent "Code Reviewer". You have run out of credits 😔 |
There was a problem hiding this comment.
Pull request overview
Adds a new “Pick Elements by Parameter Value” selection tool and enhances the parameter selection UI to display current parameter values and updated tooltip metadata.
Changes:
- Extend
forms.select_parametersto include current value + richer parameter metadata for display/tooltips. - Update parameter list item XAML to show a value badge and fix tooltip bindings post-API changes.
- Add a new selection tool (rectangle pick) that filters elements by matching parameter values (any-match vs shift/all-match).
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| pyrevitlib/pyrevit/forms/_ipy.py | Extends ParamDef, adds _make_param_def, and updates select_parameters to populate new UI fields. |
| pyrevitlib/pyrevit/forms/ParameterItemStyle.xaml | Updates template to show a value badge and fixes tooltip bindings using new ParamDef fields. |
| extensions/pyRevitTools.extension/pyRevit.tab/Selection.panel/Pick.splitpushbutton/bundle.yaml | Adds the new tool entry to the Pick split button layout. |
| extensions/pyRevitTools.extension/.../Pick Elements by Parametervalue.pushbutton/script.py | Implements rectangle-based selection filter matching parameter values with any/all behavior. |
| extensions/pyRevitTools.extension/.../Pick Elements by Parametervalue.pushbutton/bundle.yaml | Adds localized title/tooltip metadata for the new tool. |
...ab/Selection.panel/Pick.splitpushbutton/Pick Elements by Parametervalue.pushbutton/script.py
Show resolved
Hide resolved
...ab/Selection.panel/Pick.splitpushbutton/Pick Elements by Parametervalue.pushbutton/script.py
Show resolved
Hide resolved
...ab/Selection.panel/Pick.splitpushbutton/Pick Elements by Parametervalue.pushbutton/script.py
Show resolved
Hide resolved
...ab/Selection.panel/Pick.splitpushbutton/Pick Elements by Parametervalue.pushbutton/script.py
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
great tool idea! |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26090+1536-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26090+1540-wip |
|
📦 New work-in-progress (wip) builds are available for 6.1.0.26090+1556-wip |
|
📦 New public release are available for 6.2.0.26090+1754 |
Description
Introduces a selection tool that filters elements based on matching parameter values from a reference element. Users can select one or multiple parameters to drive the selection.
Improves selection precision and speeds up model auditing and QA workflows.
Additionally:
Checklist
Before submitting your pull request, ensure the following requirements are met:
pipenv run black {source_file_or_directory}