In this topic, we will know about what is an extension, why, and how we can install extension to pyRevit.
We have 2 types of extensions
Registered extensions
Outside extensions
source: https://pyrevit1.readthedocs.io/en/latest/creatingexts.html
pyRevit extensions are a type of pyRevit Bundle. Their name ends in .extension
Extension bundle, are basically groups of other bundles (mostly command bundles). pyRevit has been designed to find these extensions when starting up Revit, and create buttons and other user interface components for the bundles inside the extension.
pyRevit’s extensions system has evolved again to be more flexible and easier to work with.
Besides, by creating a separate extension, you’ll have all your precious scripts and tools in a safe place and away from the changes being made to the core pyRevit. They can even live somewhere on your company shared drives and be shared between your teams.
Use the Extensions tool under pyRevit panel and install third-party extensions as you wish.
The Extensions window, shows all the registered extensions that you can install on your machine.
To install an extension, select the extension that you want, take a look at the information about that extension and the website, then click on the Install Extension button and select the destination (By default there is only one destination)
pyRevit will install the extension and will reload automatically.
Most extensions will add their own tab in Revit UI with their tools inside.
For example
MEOS Extension This is my extension which is described in python Add-ins
pyrevitscripts Structure support from Hoang Thanh Long
EF-Tools Support tools from Erik Frits
We have 2 ways to install outside extensions to pyRevit
Way 1: Custom user extension
Launch Revit, go to pyRevit tab, and open the pyRevit Settings
Add the extension path to the list of Custom User Extensions
STRENGTHS
In this way, we can select folder links from the server so all the team can use the same extensions
Easy to update for all team
WEAKNESS
Not secure code, code can be changed accidentally and affect to all team members
Way 2: Copy extensions to pyRevit source
Keep Alt and click on the icon of pyRevit, File Explorer will open icon's path
Copy your extension to pyRevit source
STRENGTHS
Individual code
WEAKNESS
Each team member will have a different version so it will be hard to control and update
Thank you for your reading. If you need any further information, please contact me!