[GUIDE] Step by step: your own extension / flavor of pyRevit but without the pyRevit tab

A question that keeps coming up:

How can I have my own tools + some of the pyrevit tools under one toolbar?


This is a WIP, feel free to comment and I will add the meaningful comments to the guide to consolidate it


:warning: Assumption is that you don’t have pyrevit or its CLI installed

Install pyRevit without its toolbar

  1. Install the pyrevit CLI: this can be done with the CLI installer or through a command line script or using chocolatey

  2. Start the command line: type cmd in the windows search box and press enter

  3. Run the following command:

    pyrevit clone NameOfYourClone core --dest="C:\\path where you want to save your clone of pyrevit"
    
    • core is the deployment name, it does not contain any of the tools of the pyRevit regular UI, so no extensions folder
    • add --branch=develop if you want the WIP version of the codebase

    :bulb:More info about it here: pyRevit Deployments

  4. Attach your clone to Revit:
    pyrevit attach NameOfYourClone default --installed --allusers

:warning: If you start Revit, you won’t see any pyRevit tab


:rocket: You now have pyRevit installed but without any of its UI tools


Create your own toolbar Extension

Let’s be extremly lazy and create a few tool with https://builder.pyrevitlabs.io/

  1. go to https://builder.pyrevitlabs.io/
  2. create a few buttons without worrying about the code and then download the extension
  3. unzip in a proper location
  4. in the command line, add the extension path to the config file:
  5. pyrevit extensions paths add “C:\PathToYourExtensions”

Now you can start Revit and your extension tab should appear

Alternative way to create your extension manually:


or

  • Download the this folder and remix its content anyway you want respecting the tree logic shown above
  • then apply steps 4 and 5


Plenty of other ways and ressources:

7 Likes

Nicely done!

Just a quick note: --branch=develop will download the WIP version of PyRevit. stick to master (or just omit the --branch option, if I remember correctly) for the stable version.

1 Like