Skip to content

Color Splasher : Wrong Revit API Class invocation#2691

Merged
jmcouffin merged 1 commit intodevelopfrom
fix/2684
Jun 3, 2025
Merged

Color Splasher : Wrong Revit API Class invocation#2691
jmcouffin merged 1 commit intodevelopfrom
fix/2684

Conversation

@jmcouffin
Copy link
Copy Markdown
Contributor

Description

fixes properly #2684 (and #2690 I was too quick on the button 😄 )


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:

@jmcouffin jmcouffin self-assigned this Jun 3, 2025
@jmcouffin jmcouffin added the Tools Issues related to pyRevit commands [subsystem] label Jun 3, 2025
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:

• Fixes Color Splasher tool not detecting MEP spaces and HVAC zones in recent versions
• Corrects string comparison from is to == for reliable IronPython behavior
• Replaces incorrect BuiltInCategoryFillScheme with proper ColorFillScheme API class
• Resolves issue #2684 where fewer elements were being detected compared to v4.8.16.24121

Review Summary:

Both fixes are correctly implemented and address the core issues identified in #2684. The string comparison fix ensures reliable behavior in IronPython, while the API class correction restores proper element detection for spaces and zones. Used repository knowledge about IronPython string handling and Revit API compatibility requirements. Please provide feedback on this review for future improvements.

@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]: Latest version of Color Splasher detects less elements, including but not limited to MEP spaces and HVAC Zones..

1 participant