-
-
Notifications
You must be signed in to change notification settings - Fork 332
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
CLI Launches the wrong version of Revit [Bug]: #2267
Comments
I also just tried the second from the latest installer and I am getting the same result. Revit is also installed on a secondary drive (not my c: drive) I am not sure if this could be messing with anything. |
Hi @scubaman120 , I'm sorry you experienced this problem. The Also, can you please post the output of the |
I must not have copied all of it, sorry about that. pyrevit run "tool.py" "filePath.rvt" --revit=2023 --debug I was surprised so I kept testing and pick my container file that I use when running large batch process and it did not work. I have confirmed that this file is 2023. I tried to upload the container file that it could not detect the version year but .rvt are not allowed. I will post it to the pyrevit forum page linked in my op in case anyone would like to take a look. pyrevit env below: ==> Registered Clones (full git repos) |
The pyRevit forum does not allow for .rvt files either. I changed the file extension to .txt so it will upload. If you want to take a look at it just change the extension back to .rvt. |
I created a new container file and it seems to be working. The old file opens fine in revit but maybe something got corrupt. |
My container file lasted a few days but is now opening again in 2024. How does pyRevit determine the version year? I have a tool that reads the file as text and it still thinks the file is in 2023. |
HI @scubaman120, I finally got the time to investigate this. The version of a revit model is taken form the "Build" information embedded in the file. These are the helpful lines in the debug log for the failing file:
That particular build version is missing from the You should be able to make it work by adding that build to the file (and make a PR for everyone to profit, while you're at it 😉 ) The interesting thing is that there is also the "Format" info:
But it is ignored. |
✈ Pre-Flight checks
🐞 Describe the bug
Hi, I am using the following CLI command to launch a script to be run on Revit 2023 but it opens 2024 instead. If I manually launch 2023 and run the script everything works fine.
CLI input: pyrevit run “Tool Path.py” “File Path.rvt” --revit=2023 --purge
PyRevit:
pyRevit_4.8.16.24121_signed
Revit 2023:
23.1.30.97
20230828_1515(x64)
2023.1.3
Revit 2024:
24.2.10.64
20240408_1515(x64)
2024.2.1
I have also posted to the forum here.
https://discourse.pyrevitlabs.io/t/cli-booting-2024-when-it-should-be-2023/3084
⌨ Error/Debug Message
I have uninstalled and reinstalled pyRevit. I have uninstalled Revit 2024 and the command worked as expected. When I reinstalled 2024 the problem came back.
♻️ To Reproduce
No response
⏲️ Expected behavior
I expected Revit 2023 to be opened when specifying --revit=2023
🖥️ Hardware and Software Setup (please complete the following information)
Additional context
No response
The text was updated successfully, but these errors were encountered: