-
-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full audit #2503
base: develop
Are you sure you want to change the base?
Full audit #2503
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick first review, I didn't check the query module yet.
Just thinking out loud: I get that you wanted to separate the data collection from the output, but since the logic is already in the query module, wouldn't it be better to group the the data variables to the related frame and then split each group to its own function?
extensions/pyRevitTools.extension/checks/modelchecker_new_check.py
Outdated
Show resolved
Hide resolved
extensions/pyRevitTools.extension/checks/modelchecker_new_check.py
Outdated
Show resolved
Hide resolved
extensions/pyRevitTools.extension/checks/modelchecker_new_check.py
Outdated
Show resolved
Hide resolved
extensions/pyRevitTools.extension/checks/modelchecker_new_check.py
Outdated
Show resolved
Hide resolved
extensions/pyRevitTools.extension/checks/modelchecker_new_check.py
Outdated
Show resolved
Hide resolved
extensions/pyRevitTools.extension/checks/modelchecker_new_check.py
Outdated
Show resolved
Hide resolved
extensions/pyRevitTools.extension/checks/modelchecker_new_check.py
Outdated
Show resolved
Hide resolved
extensions/pyRevitTools.extension/checks/modelchecker_new_check.py
Outdated
Show resolved
Hide resolved
extensions/pyRevitTools.extension/checks/modelchecker_new_check.py
Outdated
Show resolved
Hide resolved
extensions/pyRevitTools.extension/checks/modelchecker_new_check.py
Outdated
Show resolved
Hide resolved
I still need to review the numbers outputed and maybe get to solve why the document is not properly stored / cached |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's time to roast the config module 😅
...sions/pyRevitTools.extension/pyRevit.tab/Project.panel/Preflight Checks.pushbutton/config.py
Show resolved
Hide resolved
...sions/pyRevitTools.extension/pyRevit.tab/Project.panel/Preflight Checks.pushbutton/config.py
Outdated
Show resolved
Hide resolved
...sions/pyRevitTools.extension/pyRevit.tab/Project.panel/Preflight Checks.pushbutton/config.py
Outdated
Show resolved
Hide resolved
...sions/pyRevitTools.extension/pyRevit.tab/Project.panel/Preflight Checks.pushbutton/config.py
Outdated
Show resolved
Hide resolved
...sions/pyRevitTools.extension/pyRevit.tab/Project.panel/Preflight Checks.pushbutton/config.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another quick go at the main script.
Since this is a new file, I would start to enforce a bit of formatting rules.
black has good defaults and it is already installed in the pipenv, so you just need to
pipenv run black extensions/pyRevitTools.extension/checks/audit_all_check.py
Co-authored-by: Andrea Ghensi <andrea.ghensi@gmail.com>
Co-authored-by: Andrea Ghensi <andrea.ghensi@gmail.com>
…eflight Checks.pushbutton/config.py Co-authored-by: Andrea Ghensi <andrea.ghensi@gmail.com>
…eflight Checks.pushbutton/config.py Co-authored-by: Andrea Ghensi <andrea.ghensi@gmail.com>
…eflight Checks.pushbutton/config.py Co-authored-by: Andrea Ghensi <andrea.ghensi@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few comments on the query, but this is because it's late...
In general, I have a few points to make:
- why return a list of item and it's count instead of using len(items) where it is needed?
- the
ToElement()
should never be None, at most it is an empty list, so all theis None
checks are useless. Or am I missing something? - use pyrevit.revit.db.query module more 😉 like
get_elements_by_class
... and if there are missing functionality, add it there
Co-authored-by: Andrea Ghensi <andrea.ghensi@gmail.com>
Co-authored-by: Andrea Ghensi <andrea.ghensi@gmail.com>
Co-authored-by: Andrea Ghensi <andrea.ghensi@gmail.com>
Co-authored-by: Andrea Ghensi <andrea.ghensi@gmail.com>
This reverts commit 3c93462.
And this is how, once again, you made my day. |
I get it why you want to make it part of the CI actions! |
Preflight audit of all models, including linked models.
This QC tools returns the following data: