Rapid Application Development (RAD) Environment for Autodesk Revit®
GPL-3.0 License
Bot releases are hidden (Show)
Published by eirannejad over 3 years ago
Published by eirannejad over 3 years ago
Published by eirannejad over 3 years ago
pyRevit engines now manually load their own DLLs into Revit to ensure that pyRevit is running on its own engine assemblies. This resolved import wpf
errors when another Revit addon would load IronPython 277 (e.g RevitPythonShell) before pyRevit loaded and it would cause a conflict. All engine versions were tested against Revit 2017-2021 and they all load
Minor changes have been added to fix wpf
and sqlite3
imports under the new load mechanism.
pyRevit installer now switched to Admin mode when ran "As Administrator" (privileged mode). So the new behavior is:
When ran as a normal user, it defaults to %APPDATA%\pyRevit-Master
for installation and attaches itself to installed Revits for current user only (%APPDATA%\Autodesk\Revit\Addins
)
When ran as a Admin in privileged mode, it defaults to %PROGRAMFILES%\pyRevit-Master
for installation and attaches itself to installed Revits for all users (%PROGRAMDATA%\Autodesk\Revit\Addins
)
Support for dockable panels were added to the forms
module. The mechanism follows the Dockable panel design in Revit API. See this Extension startup script example that registers a dockable panel on Revit startup:
class DockableExample(forms.WPFPanel):
panel_title = "pyRevit Dockable Panel Title"
panel_id = "3110e336-f81c-4927-87da-4e0d30d4d64a"
panel_source = op.join(op.dirname(__file__), "DockableExample.xaml")
def do_something(self, sender, args):
forms.alert("Voila!!!")
forms.register_dockable_panel(DockableExample)
and this pyRevit script that requests opening a previously registered panel
from pyrevit import forms
test_panel_uuid = "3110e336-f81c-4927-87da-4e0d30d4d64a"
forms.open_dockable_panel(test_panel_uuid)
Published by eirannejad over 3 years ago
previt clones add this <clone_name>
%PROGRAMDATA%\pyRevit
Published by eirannejad over 3 years ago
Tool context has been modified to include more options e.g. Document contexts doc-project
, doc-workshared
, doc-family
and compound conditions with any
, all
, except
, not_any
, etc.
query
functions)forms.ask_for_color()
)pyRevitDev
extension)Published by eirannejad over 3 years ago
pyRevit CLI now supports using access tokens with the new --token=
option on the command line
Misc bug fixes
Published by eirannejad over 3 years ago
Preflight Checks: pyRevit Extensions can now include a checks/
directory with python scripts engine in *_check.py
and implementing a Preflight Check type. These checks will automatically show up in the new Preflight Checks tool
Custom IronPython Engine: pyRevit now includes a custom IronPython engine. This engine is NOT the default for this release, so we have a chance to get it tested, but it will be the default soon. All previous engines are still supported. The custom engine provides a solution to all the IronPython conflicts and import wpf
errors hopefully. To use this, go to pyRevit settings and switch the IronPython engine under Core Settings to this new custom engine, or use the pyRevit CLI to attach using this engine pyrevit attach master default --installed
Added New doc-updater
hook: This hook is executed every time a model is updated. See example here this example hook, automatically updates the height of new walls to 5 when they are created
Added New Tool (#883: Tool to Clear BIM360 Collaboration Cache): Find under Wipe tools
Added ReKey buttons to Keynote Manager (#701: Keynote Manager Needs Keynote-Edit-KEY Button): Both categories and keynotes can be rekeyed now
.run
extensions anymore. Run script can now be included inside any extension under the commands/
directory and ending in *_command.py
. pyRevit CLI when batch processing using pyrevit run
can find these commands. See example here
If you are upgrading from pyRevit 4.7.* see these release notes as well:
Published by eirannejad over 3 years ago
clone delete
now detaches the existing firstPublished by eirannejad almost 4 years ago
pyRevit now has a discourse group
Select TitleBlocks on Sheets
into this toolpyrevit doctor
commandPublished by eirannejad almost 4 years ago
InstallPath
is relativereleases
and version checkerPublished by eirannejad almost 4 years ago
Published by eirannejad almost 4 years ago
pyrevit doctor
command line option to fix pyRevit installation issuesPublished by eirannejad about 4 years ago
Published by eirannejad about 4 years ago
Misc improvements
Published by eirannejad about 4 years ago
raw_input
(IronPython 2.x) and input
(cpython 3.x) It also works in C# and VB.Net using Console.ReadLine()
pyRevitLabs.Emojis.dll
now. No more 2800 png files in the bin/emoji
. This means easier installationPublished by eirannejad about 4 years ago
Published by eirannejad about 4 years ago
.pdf
(#767: Failure to Print to PDF) (#887: Print Sheets Revit 2021)0.25
and now is 4.8
matching pyRevit itself)Roslyn
. pyRevit runtime now compiles itself on this new compiler, and all the pyRevit C# bundles can now use the C# v8 version of the language (previously the max version was v5). An example of a new language feature is the interpolated strings e.g. $"UserName={username}"
or lambda methods e.g. void GetResponse() => 42;
3.8.5
and 3.7.8
3.6.*
was removed since the embedded binaries are not provided by python.org anymorerjm
module to 1.4
Published by eirannejad about 4 years ago
CLI version now matches the pyRevit version. Last CLI version was 0.25
and this one is 4.8
. This makes it easier for me to detect pyRevit versions from env reports. It was also confusing for the users why there are two version numbers associated with pyRevit and the CLI. This makes updating the cli a bit harder since it needs to match pyRevit version but CLI gets updated less that pyRevit itself usually.
Published by eirannejad over 4 years ago
rsparam
updated to 0.1.15Published by eirannejad over 4 years ago