pyRevit for Teams

Hi all :wave:,
In our company we are currently running an custom enterprise installer for our users that is following the guidelines of pyRevit for Teams. This allows us to customize the configuration of the deployments.

We noticed there is now also an admin installer of pyRevit in the latest release.

We were wondering when this installer is meant to be used? Does it still allow for custom configuration on deployment? Is the pyRevit for Teams guidance page still up to date? We have some issues with running the powershell script installer, e.g. that there is no uninstaller.

2 Likes

Using this pyRevit for Teams guide, I am now having issues registering/cloning pyRevit it seems. Running the orchestrated powershell script without errors, but pyRevit clones return nothing, as seen in below snip. What might cause this? I am worried for running unsuccesful deployments with these results.

Hi @GooseG
What does the pyrevit env command returns?

Microsoft Windows [Version 10.0.19044.2006]
(c) Microsoft Corporation. All rights reserved.

C:\Users\Guus.Gooskens>pyrevit env
==> Registered Clones (full git repos)
==> Registered Clones (deployed from archive/image)
==> Attachments
Unknown | Product: "Autodesk Revit 2022" | Manifest: "C:\ProgramData\Autodesk\Revit\Addins\2022\pyRevit.addin"
Unknown | Product: "Autodesk Revit 2021" | Manifest: "C:\ProgramData\Autodesk\Revit\Addins\2021\pyRevit.addin"
==> Installed Extensions
==> Default Extension Search Path
C:\Users\Guus.Gooskens\AppData\Roaming\pyRevit\Extensions
==> Extension Search Paths
==> Extension Sources - Default
https://github.com/eirannejad/pyRevit/raw/master/extensions/extensions.json
==> Extension Sources - Additional
\\global\systems\Software\PyRevit Config\extensions.json
==> Installed Revits
Autodesk Revit 2022 | Version: 22.1.30.34 | Build: 20220520_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2022\"
Autodesk Revit 2021 | Version: 21.1.70.21 | Build: 20220517_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2021\"
==> Running Revit Instances
==> User Environment
Microsoft Windows 10 [Version 10.0.19044]
Executing User: GLOBAL\Guus.Gooskens
Active User:
Admin Access: No
%APPDATA%: "C:\Users\Guus.Gooskens\AppData\Roaming"
Latest Installed .Net Framework: 4.8
No .Net Target Packs are installed.
No .Ne-Core Target Packs are installed.
pyRevit CLI v4.8.12.22247+0031

C:\Users\Guus.Gooskens>

weird, you had pyrevit pre-installed on your computer? If so, did you removed everything before launching the script itself? It feels like it is not using the right pyrevit_config.ini file or not generating it

Good question. The install script should remove previous installs. I included some more remove scripts, like pyrevit doctor purge-installs, but that returns this. Maybe because there are no previous installs?

Purging old installs...

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at pyRevitDoctor.PurgeInstalls.PurgeOldInstalls(Boolean dryrun)
   at pyRevitDoctor.Program.Main(String[] args)

Anyway, this new script didn’t seem to have registered the new pyrevit clone. It did however register the new attachments:

==> Registered Clones (full git repos)
==> Registered Clones (deployed from archive/image)
base | Deploy: "base" | Branch: "master" | Version: "4.8.12.22247+0031" | Path: "C:\ProgramData\pyRevit\base"
==> Attachments
base | Product: "Autodesk Revit 2022" | Engine: DEFAULT (2711) | Path: "C:\ProgramData\pyRevit\base" | AllUsers
base | Product: "Autodesk Revit 2021" | Engine: DEFAULT (2711) | Path: "C:\ProgramData\pyRevit\base" | AllUsers
==> Installed Extensions
==> Default Extension Search Path
C:\Users\Guus.Gooskens\AppData\Roaming\pyRevit\Extensions
==> Extension Search Paths
==> Extension Sources - Default
https://github.com/eirannejad/pyRevit/raw/master/extensions/extensions.json
==> Extension Sources - Additional
\\global\systems\Software\PyRevit Config\extensions.json
==> Installed Revits
Autodesk Revit 2022 | Version: 22.1.30.34 | Build: 20220520_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2022\"
Autodesk Revit 2021 | Version: 21.1.70.21 | Build: 20220517_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2021\"
==> Running Revit Instances
==> User Environment
Microsoft Windows 10 [Version 10.0.19044]
Executing User: GLOBAL\Guus.Gooskens
Active User:
Admin Access: Yes
%APPDATA%: "C:\Users\Guus.Gooskens\AppData\Roaming"
Latest Installed .Net Framework: 4.8
No .Net Target Packs are installed.
No .Ne-Core Target Packs are installed.
pyRevit CLI v4.8.12.22247+0031

pyRevit seems also to run fine. Should I have any worry not getting any registered clones with pyrevit clones?

not really if you do not plan on using the pyrevit clones command

1 Like

you might be able to register it properly

I haven’t had the case, so I cannot really try it

1 Like