Conversation
…_all_check.py - Updated the spelling of "PressureLossReport" to "PresureLossReport" to match API naming. - ntroduced a base list of valid view types and conditionally included optional view types based on their availability in the current Revit version. - Adjusted calculations for view counts to account for the optional nature of certain view types.I
There was a problem hiding this comment.
Pull request overview
This PR makes minor compatibility and documentation adjustments for Revit 2027, focusing on optional view types and aligning naming with the Revit API. It ensures the audit check script remains loadable and accurate across Revit versions where certain view types may be removed.
Changes:
- Clarified the
ViewFamilydocstring to note the API’sPresureLossReportspelling. - Refactored the
audit_all_checkview-type lists to use a stable base set and conditionally includePresureLossReportandSystemsAnalysisReportonly when available on the running Revit version. - Updated view count calculations to reference optional view types through guarded module-level variables, avoiding attribute errors on newer versions where those types are absent.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pyrevitlib/rpw/db/view.py | Updates ViewFamily documentation to explicitly reflect the API’s PresureLossReport spelling while clarifying its meaning. |
| extensions/pyRevitTools.extension/checks/audit_all_check.py | Makes PresureLossReport and SystemsAnalysisReport optional via getattr guards and updates VALID/INVALID view-type handling and view count calculations for cross-version compatibility. |
|
📦 New work-in-progress (wip) builds are available for 5.3.1.26032+1743-wip |
|
📦 New work-in-progress (wip) builds are available for 5.3.1.26032+1829-wip |
|
📦 New work-in-progress (wip) builds are available for 5.3.1.26032+1937-wip |
|
📦 New work-in-progress (wip) builds are available for 6.0.0.26032+1956-wip |
|
📦 New work-in-progress (wip) builds are available for 6.0.0.26032+2005-wip |
|
📦 New work-in-progress (wip) builds are available for 6.0.0.26032+2008-wip |
|
📦 New public release are available for 6.0.0.26032+2040 |
|
📦 New public release are available for 6.0.0.26032+2040 |
... keeping this open for future fixes