-
-
Notifications
You must be signed in to change notification settings - Fork 345
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
Settings - Automated Versions Listing #2498
base: develop
Are you sure you want to change the base?
Settings - Automated Versions Listing #2498
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.
Sorry for the delay... This looks promising, I ask you to go that extra mile and implement the next steps already instead of leaving todo comments 😉
extensions/pyRevitCore.extension/pyRevit.tab/pyRevit.panel/Settings.smartbutton/script.py
Outdated
Show resolved
Hide resolved
extensions/pyRevitCore.extension/pyRevit.tab/pyRevit.panel/Settings.smartbutton/script.py
Outdated
Show resolved
Hide resolved
extensions/pyRevitCore.extension/pyRevit.tab/pyRevit.panel/Settings.smartbutton/script.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.
Some personal style preferences comments, feel free to ignore them (unless @jmcouffin wants to enforce them)
extensions/pyRevitCore.extension/pyRevit.tab/pyRevit.panel/Settings.smartbutton/script.py
Outdated
Show resolved
Hide resolved
extensions/pyRevitCore.extension/pyRevit.tab/pyRevit.panel/Settings.smartbutton/script.py
Outdated
Show resolved
Hide resolved
extensions/pyRevitCore.extension/pyRevit.tab/pyRevit.panel/Settings.smartbutton/script.py
Outdated
Show resolved
Hide resolved
Deleted Revit {} to avoid passing the version number (not necessarry)
Deleted Revit {} to avoid passing the version number (not necessarry)
Deleted Revit {} to avoid passing the version number (not necessarry)
I change th logic order to avoid for checkbox in self.supported_revit_versions_CB:
#checkbox.IsEnabled and checkbox.IsChecked are False by default
if checkbox.Version not in installed_revits:
checkbox.Content += self.get_locale_string("RevitAttachment.NotInstalled") #Change local string to avoid passing the version! already in checkbox class
continue Doing that, i manage to use only one time the product = installed_revits[checkbox.Version]
checkbox.Content += ' | {} | {}({}) '.format(product.Name,product.BuildNumber,product.BuildTarget) i used += to add some note, eg : checkbox.Content += self.get_locale_string("RevitAttachment.NotAttached") I change the local String |
Ouroboro situation. I tried, local build. But I think it reads the data located in the %appdata% whereas my local build is sitting somewhere else, so... impossible to test. |
That seems to work for me. I'm using this branch on my actual version of pyrevit |
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.
last round 😉
extensions/pyRevitCore.extension/pyRevit.tab/pyRevit.panel/Settings.smartbutton/script.py
Outdated
Show resolved
Hide resolved
extensions/pyRevitCore.extension/pyRevit.tab/pyRevit.panel/Settings.smartbutton/script.py
Outdated
Show resolved
Hide resolved
extensions/pyRevitCore.extension/pyRevit.tab/pyRevit.panel/Settings.smartbutton/script.py
Outdated
Show resolved
Hide resolved
…tings.smartbutton/script.py Co-authored-by: Andrea Ghensi <[email protected]>
…tings.smartbutton/script.py Co-authored-by: Andrea Ghensi <[email protected]>
…tings.smartbutton/script.py Co-authored-by: Andrea Ghensi <[email protected]>
i approve all the change ! |
sorry for the delay, as stated in the developer guide you have to install pipenv on a python 3.10 environment and initialize the pipenv environment, then you can run the script |
I am about to push the release button and would like to include this one in the release. |
Close issue #2390
More details on what i add in (#2390 (comment))
Tell me if it's ok to remove the
_addinfiles_cboxes
dictionary and use theSupportedRevitVersions_CB
object list directly in both_setup_addinfiles
andupdate_addinfiles
functions.Or should I leave it as it is to make the least changes possible?