I can volunteer to write something - I haven’t/aren’t skilled enough (yet) to contribute to the code so I’ll see if I can help out this way. Will post something in the next 24 hours.
@InkRF_WasTooShort
Thanks for the offer
@jpitts did write something I need to review. That was fast. I will post ASAP
I’ve written a console app that will install pyrevit-4 and pyrevit-5 side by side, and will handle all of the console commands for attaching pyRevit-5 to 2025 and pyRevit-4 to 2020-2024.
Looking for a volunteer to confirm this works before I make this available.
This will delete “C:\pyRevit-Master” directory if it exists and use this location for the installation, and existing pyRevit installations in other directories will need to be manually re-added to the list of clones and re-attached after running this if necessary.
The included versions are:
pyRevit-4: 4.8.16.24121
pyRevit-5: 5.0.0.24325-WIP
All of the commands that are executed are shown below:
@jpitts This is probably extremely good work. Not a coder, so I wouldn’t know, I’m sorry. But I’m a bit confused now. Are there parts that are still not working with the WIP 5.0.0.24325 in all versions? I’m running it on all versions and the parts that I need to use are all working fine in all versions… or seem to be at least.
If I knew which parts weren’t working correctly I might try this route, but as it is, I think the WIP is working? Is it not. I’m not getting any errors upon starting any versions of Revit at least and the parts of pyRevit that I’ve tried are working.
It does work, although the topic of this specific thread was regarding using both pyrevit 4 and pyrevit 5 side by side, and setting up this way requires using the correct pyrevit.exe for each version (CLI does not work for pyrevit 5 yet). The process to do this correctly is not documented anywhere other than in a response to this thread.
This just provides an easy way to get both installed without needing to download both installers and manually entering the commands. It could easy be updated to install pyrevit 5 for all versions as well though.
@jpitts Oh, OK. I get it now. For those folks that want or need to do it that way. That makes sense. Thank you!
Looking forward to this! Maybe a silly question to some, but only 4.8.16 is mentioned here and I’ve looked all over the place and still not sure how to get my paws on the most stable version of pyRevit that currently works with R25 so I can start testing our apps that currently work with R24 + 4.8.13. If anyone can point me to the best option at this point, I’d appreciate it.
The wip installers on the website www.pyrevitlabs.io
Is 2025 and below friendly
. . . . . . Thank you!
Hi @jpitts I would be willing to be a guinea pig for this.
Having said that, my earliest availability is Tuesday the 3rd.
Cool thanks Andrew.
PM me or respond here whenever you ready and I’ll send you the link for the installer.
Sorry, a day late, but I’m ready to give this a try. @jpitts
OK here is a link for the installer if anybody wants to try it out. Its a simple C# console app that will install pyRevit 4 and 5 (installers are bundled) and then execute the necessary terminal commands to attach to Revit.
You can choose to install the latest pyRevit 4 for Revit 2020 - 2024 and pyRevit 5 for 2025, or pyRevit 5 for 2020-2025. You could just use the pyRevit 5 installer directly if you wanted to use for every version, but I figured I’d make it an available option anyways because it allows you to easily switch between pyRevit 5 only and both 4 and 5 side by side.