Review: PR #2915 - Minor tools fixes (bug fixes, security, slope feature) #2920
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Review: PR #2915 - Minor tools fixes
Description
Comprehensive review of PR #2915 by @Wurschdhaud, which was merged on 2025-11-08. The PR fixes critical bugs, removes security vulnerabilities, improves code consistency, and adds slope calculation to the 3D Measure tool.
Review Findings
Critical Bug Fixes (2)
curviewvariable in Orient Section Box/View To Face toolsNameErrorat runtime, breaking both 3D orientation featuresSecurity Improvement
script.load_data/store_datapatternCode Consistency (5 files)
revit.query.get_elements_by_class()vs directFilteredElementCollectorrevit.get_selection().set_to()vsuidoc.Selection.SetElementIds()New Feature
Minor Issues Identified (3 - Non-blocking)
{:>15}alignment, diagonal/slope don'tReview Documentation
Created comprehensive analysis in
/tmp/:README_PR_2915_REVIEW.md- Navigation guidepr_2915_quick_summary.txt- Visual summarypr_2915_review.md- File-by-file analysispr_2915_review_summary.md- Executive summarypr_2915_bug_fixes_showcase.md- Bug fix deep diveOverall Assessment: ⭐⭐⭐⭐½ (4.5/5) - Excellent contribution
Checklist
Related Issues
Review of PR:
Additional Notes
Recommendation: No action required. PR #2915 is approved as merged. The minor issues are non-blocking and can be addressed in future polish passes if desired.
Quality Scores:
Thank you for contributing to pyRevit! 🎉
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.