Whadup whadup whadup!
Worked really hard this passed two weeks to get pyRevit v4.5-beta ready for y’all. I’m only posting about it here though since this is a beta version and not everyone should install this since it’s a developer test release.
Watch this video here. I’ll take you through this long article in the video to make it simpler:
https://www.youtube.com/watch?v=Szci9_WxDaU
The purpose of this release is to allow (you) developers to test the new pyRevit core (watch this). There are some changes that might affect your scripts if you have used any of the revitutils
or scriptutils
modules from pyRevit.
IF you have developed your own python scripts that run under pyRevit, you need to install this beta version and start modifying and adjusting your scripts.
ELSE IF you want to deploy pyRevit in your company DO NOT USE this version since it’s just a beta release. I’ll let you know when v4.5 final release is here.
ELSE you don’t develop scripts and want to use the pyRevit standard tools, I’d suggest waiting for the v4.5 final release, although you can install this and test it out. Just don’t get mad if something breaks.
Okay here is a quick list of the major changes. I’ll explain each one in detail:
revitutils
and scriptutils
have been removed (Read this). There is a single module for pyRevit now and it’s pyrevit
. The functionality of revitutils
and scriptutils
modules have been moved inside the main pyrevit
module. This is related to the changes required to make the Rocket mode work correctly.unicode
changes specifically if you deal with unicode characters.__fullframeengine__ = True
in your script to request a FullFrame engine for your script. This is usually completely unnecessary unless you’re using complex modules like requests
that require a FullFrame enginerequests
is shipped with pyRevit now.pylib
. Starting with version 4.5 they’ve been moved to a zip file that is attached to the executing IronPython engine and pylib
doesn’t exist anymore. This has two benefits:
lib
folder inside pyRevit that include third-party modules that I ship with pyRevit, is now renamed to site_packages
to match the standard python folder for third-party packages.