Skip to content

Update & Fix Color Splasher #2627

Merged
jmcouffin merged 8 commits intopyrevitlabs:developfrom
tay0thman:patch-15
Apr 4, 2025
Merged

Update & Fix Color Splasher #2627
jmcouffin merged 8 commits intopyrevitlabs:developfrom
tay0thman:patch-15

Conversation

@tay0thman
Copy link
Copy Markdown
Contributor

@tay0thman tay0thman commented Apr 3, 2025

Tested on 2024, 2025 and 2026

#2626 (comment)

Color Splasher - line 131 DB.ElementId.InvalidElementId (in versions 2024 and earlier) this is ignored and keep default, I get exception thrown for 2025 and 2026, since I don't think we need to change the line pattern, I am proposing to eliminate this line.

Color Splasher - Filter Name separator between cat and param name, added a space in line 364

Color Splasher - Create Legend not working, Fixed the conditional statement,

pyrevitlabs#2626 (comment)

Color Splasher - line 131 DB.ElementId.InvalidElementId (in versions 2024 and earlier) this is ignored and keep default, I get exception thrown for 2025 and 2026, since I don't think we need to change the line pattern, I am proposing to eliminate this line.

Color Splasher - Filter Name separator between cat and param name, added a space in line 364

Color Splasher - Create Legend not working, Fixed the conditional statement,
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 addresses three issues with the Color Splasher extension:

  1. Removes line that sets projection line pattern ID, which causes exceptions in Revit 2025 and 2026
  2. Fixes a logical error in the legend creation condition (length check)
  3. Improves filter name format by using a space instead of a forward slash as separator

These changes enhance compatibility with newer Revit versions (2024-2026) and improve the UI readability.

Review Summary:

The PR addresses compatibility issues with newer Revit versions and makes some UI improvements. However, there's a critical syntax error in the updated condition check that needs to be fixed before merging. Your feedback on this review would be valuable for improving future reviews.

Follow-up suggestions:

@devloai fix the syntax error on line 200 by replacing = with ==

@jmcouffin
Copy link
Copy Markdown
Contributor

@tay0thman great, thanks for the elbow oil!
Can you add devlo mods, they make sense IMHO

@jmcouffin
Copy link
Copy Markdown
Contributor

jmcouffin commented Apr 3, 2025

Typo?
filter_name = sel_cat.name + '/" " + sel_par.name + " - " + item.value
the '/" " seems weird

@tay0thman
Copy link
Copy Markdown
Contributor Author

Yup, it should be " "

@tay0thman
Copy link
Copy Markdown
Contributor Author

Okay I updated the syntax

jmcouffin
jmcouffin previously approved these changes Apr 4, 2025
@jmcouffin
Copy link
Copy Markdown
Contributor

@tay0thman thanks for the help
I fixed the legend creation properly.
this one should be fine.

@jmcouffin jmcouffin merged commit a4aa903 into pyrevitlabs:develop Apr 4, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 4, 2025

📦 New work-in-progress (wip) builds are available for 5.0.1.25094+0800-wip

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 4, 2025

📦 New work-in-progress (wip) builds are available for 5.0.1.25094+0926-wip

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 4, 2025

📦 New work-in-progress (wip) builds are available for 5.1.0.25094+0940-wip

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 4, 2025

📦 New public release are available for 5.1.0.25094+1133

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 4, 2025

📦 New public release are available for 5.1.0.25094+1133

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 4, 2025

📦 New public release are available for 5.1.0.25094+1133

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants