tool: New tool to copy parameter values of selected parameters to another one#2792
tool: New tool to copy parameter values of selected parameters to another one#2792
Conversation
There was a problem hiding this comment.
PR Summary:
This PR introduces a new tool for copying parameter values from multiple source parameters to a target parameter within selected Revit element categories. The tool features a WPF interface with internationalization support for 5 languages, category selection, multi-parameter source selection, and concatenation logic with "-" separator.
Review Summary:
Overall well-structured implementation with good separation of concerns and comprehensive internationalization. However, identified critical compatibility and functional issues that need addressing. Review focused on IronPython-specific requirements from the repository's validation standards and potential data handling bugs that could affect tool reliability.
Follow-up suggestions:
@devloai fix the identified critical issues with encoding and parameter handling logic
....tab/Modify.panel/edit3.stack/Edit.pulldown/ParametersValuesToParameter.pushbutton/script.py
Outdated
Show resolved
Hide resolved
....tab/Modify.panel/edit3.stack/Edit.pulldown/ParametersValuesToParameter.pushbutton/script.py
Outdated
Show resolved
Hide resolved
....tab/Modify.panel/edit3.stack/Edit.pulldown/ParametersValuesToParameter.pushbutton/script.py
Outdated
Show resolved
Hide resolved
…t3.stack/Edit.pulldown/ParametersValuesToParameter.pushbutton/script.py Co-authored-by: devloai[bot] <168258904+devloai[bot]@users.noreply.github.com>
… localization updates. Added support for handling specific exceptions and updated UI messages for failed updates in multiple languages.
…vitlabs/pyRevit into tool/params-values-to-param
There was a problem hiding this comment.
Pull Request Overview
This PR adds a new tool to copy parameter values from selected source parameters to a target parameter for elements in a selected category. The tool provides a multi-language XAML-based user interface that allows users to select a category, choose multiple source parameters, and specify a single target parameter to copy values to.
Key Changes
- Implements a parameter copying tool with multi-language support (English, French, German, Spanish, Russian)
- Provides a XAML-based GUI for category and parameter selection
- Allows concatenation of multiple source parameter values into a single target parameter
Reviewed Changes
Copilot reviewed 3 out of 5 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| ui.xaml | XAML interface with category selection, source/target parameter lists, and action buttons |
| script.py | Main implementation with localization, UI handling, and parameter copying logic |
| bundle.yaml | Multilingual metadata for the tool button including titles and tooltips |
....tab/Modify.panel/edit3.stack/Edit.pulldown/ParametersValuesToParameter.pushbutton/script.py
Show resolved
Hide resolved
....tab/Modify.panel/edit3.stack/Edit.pulldown/ParametersValuesToParameter.pushbutton/script.py
Show resolved
Hide resolved
....tab/Modify.panel/edit3.stack/Edit.pulldown/ParametersValuesToParameter.pushbutton/script.py
Show resolved
Hide resolved
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25248+0948-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25251+0758-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25251+0805-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25251+0824-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25252+1659-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25255+0644-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25255+0911-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25256+0727-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25258+1448-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25265+1047-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25266+0803-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25268+1757-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25269+1336-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25269+1431-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25269+1436-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25269+1822-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25271+1719-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25280+0218-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25280+1054-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25280+1057-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25282+1656-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25283+0140-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25286+1022-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25287+0905-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25287+1000-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25288+0613-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25293+0755-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25293+0828-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25293+1113-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25293+1234-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25295+0707-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25296+0824-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25296+0837-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25296+0923-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25300+1037-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25301+1412-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25301+1521-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25302+0921-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25302+0949-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25302+1503-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25307+1644-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25307+1935-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25307+2011-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25307+2045-wip |
|
📦 New work-in-progress (wip) builds are available for 5.3.0.25307+2237-wip |
|
📦 New work-in-progress (wip) builds are available for 5.3.0.25308+0721-wip |
|
📦 New public release are available for 5.3.0.25307+2146 |
Description
New tool to copy parameter values of selected parameters to another one
Checklist
Before submitting your pull request, ensure the following requirements are met:
pipenv run black {source_file_or_directory}