Skip to content

Add "Associated to Others" to Wipe Family Parameters button#2644

Merged
jmcouffin merged 4 commits intopyrevitlabs:developfrom
nodatasheet:2476
Apr 14, 2025
Merged

Add "Associated to Others" to Wipe Family Parameters button#2644
jmcouffin merged 4 commits intopyrevitlabs:developfrom
nodatasheet:2476

Conversation

@nodatasheet
Copy link
Copy Markdown
Contributor

@nodatasheet nodatasheet commented Apr 12, 2025

Add "Associated to Others" to Wipe Family Parameters button

Description

  • Added include_associated to forms.select_family_parameters. Now it is possible to filter parameters that are associated to others.
  • Tag "Associated to Others" is now visible in selection form and in Parameter Filters dropdown

Checklist

Before submitting your pull request, ensure the following requirements are met:

  • Code follows the PEP 8 style guide.
  • Code has been formatted with Black using the command:
    pipenv run black {source_file_or_directory}
  • Changes are tested and verified to work as expected.

Related Issues

If applicable, link the issues resolved by this pull request:


Additional Notes

assosiated_to_others_tag
assosiated_to_others_filter


Thank you for contributing to pyRevit! 🎉

@nodatasheet
Copy link
Copy Markdown
Contributor Author

Ah, I haven't noticed another pending PR to pyrevitlib/pyrevit/forms/__init__.py. Will it make merge conflict @jmcouffin?

@jmcouffin
Copy link
Copy Markdown
Contributor

This should be fine. Let me review that on Monday.

@jmcouffin
Copy link
Copy Markdown
Contributor

@devloai please review pr

@jmcouffin jmcouffin requested a review from Copilot April 12, 2025 14:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • pyrevitlib/pyrevit/forms/FamilyParameterItemStyle.xaml: Language not supported
Comments suppressed due to low confidence (1)

pyrevitlib/pyrevit/forms/init.py:2042

  • [nitpick] Consider renaming 'isassociated' to 'is_associated' to improve readability and follow common Python naming conventions.
self.isassociated = associated

Copy link
Copy Markdown
Contributor

@devloai devloai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary:

This PR adds functionality to identify and filter parameters that are associated with other elements (such as connectors) in the "Wipe Family Parameters" tool. It adds a new include_associated parameter to forms.select_family_parameters(), makes the "Associated to Others" tag visible in the selection form, and adds it to the Parameter Filters dropdown. This addresses issue #2476 where users could accidentally delete parameters used by connectors.

Review Summary:

The implementation is clean and consistent with the existing codebase patterns. The code correctly identifies associated parameters using AssociatedParameters.IsEmpty and adds appropriate UI elements. My minor comments suggest documentation improvements to clarify what "associated parameters" means in this context. Feel free to provide feedback on this review for future improvements.

Follow-up suggestions:

@nodatasheet verify this works with your specific connector parameter use case

@jmcouffin jmcouffin merged commit cf7ad19 into pyrevitlabs:develop Apr 14, 2025
@jmcouffin
Copy link
Copy Markdown
Contributor

Nice work @nodatasheet
thank you

@jmcouffin jmcouffin added the Tools Issues related to pyRevit commands [subsystem] label Apr 14, 2025
@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25104+1041-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25104+1127-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25105+0957-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25106+0734-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25106+1252-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25106+1322-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25106+1408-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25107+0621-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25116+1412-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25118+1113-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25119+1928-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25133+1246-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25136+0631-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25136+0639-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25140+1615-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25141+1904-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25143+0904-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25146+0559-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25149+1012-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25149+1943-wip

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jun 2, 2025

📦 New work-in-progress (wip) builds are available for 5.1.0.25153+1459-wip

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jun 3, 2025

📦 New work-in-progress (wip) builds are available for 5.1.0.25154+0858-wip

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jun 3, 2025

📦 New work-in-progress (wip) builds are available for 5.1.0.25154+0920-wip

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jun 4, 2025

📦 New work-in-progress (wip) builds are available for 5.1.0.25155+0904-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25162+1125-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25162+1306-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25162+2030-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25164+0700-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25164+1347-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25164+1420-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25164+1830-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25171+0757-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.2.0.25181+1313-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New public release are available for 5.2.0.25181+1425

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Tools Issues related to pyRevit commands [subsystem]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Purge Shared Parameter

3 participants