MIRALTO
FRENFollow the Lab
← The Lab

Building your Revit toolbar with Claude

A Revit tab of your own, with a button for every repetitive task. You describe the button, Claude writes the code, pyRevit puts it in your tab. In 5 steps, without writing code.

Live session · Nov 19, 2026 · 12:30 pm CET (UTC+1) · in FrenchSave my seat →

A Revit tab of your own, with a button for every repetitive task. You describe the button in plain language, Claude Code writes the code, pyRevit puts it in your tab. First example: cutting walls on a faceted facade, where "Attach Top/Base" is not enough and, by hand, you would have to edit the profile of each wall.

Animated tutorial
The screens in this video are redrawn to be readable. The steps and the prompt are the ones to follow. To go further and ask your questions: the live session.

What you need

  • Revit 2021 to 2027, the versions supported by pyRevit 7.
  • pyRevit 7, the open add-in that lets you add your own Python buttons to Revit.
  • Claude Desktop, signed in to your account: its Code tab is Claude Code.

The 5 steps

  1. Install pyRevit 7 from its GitHub page, with Revit closed. The non-"admin" version installs without administrator rights.
  2. Create the folder in %APPDATA%\pyRevit\Extensions (a hidden folder: show hidden items). The suffixes matter, they are what pyRevit reads: MIRALTO.extension › MIRALTO.tab › Walls.panel.
  3. Open Claude Code in Claude Desktop (Code tab), pick the .extension folder and describe the button.
  4. Reload pyRevit: pyRevit tab › Reload. No need to restart Revit.
  5. Test the button: pick the walls, then the faceted facade.

The prompt for the first button

In MIRALTO.tab\Walls.panel, create a pyRevit button "Trim Facade". I select walls, then the faceted façade (a closed volume: mass or generic model). For each wall, edit its profile (like "Edit Profile") to keep only the part inside the volume, cut exactly along the facets. Skip walls that don't touch the façade, do everything in one transaction, and show how many walls were cut at the end.

Be precise: what gets selected, the method (here, editing the wall profile, so it stays a normal wall) and what happens when a wall doesn't touch the façade. Claude asks before writing to your disk, then creates two files: bundle.yaml (the button's name and tooltip) and script.py (the code).

More buttons

The same method works for every task that comes back. In the video:

  • Split floors with a mass
  • One 3D view per level
  • Renumber rooms by click

And whatever you need, for example: "Align every tag in the view", "Create sheets from an Excel list", "Check every door has a number", "Rename views to our naming standard".

Test on a copy of the project first. The script works inside a transaction: a single Ctrl+Z undoes everything.

Live

This tutorial shows the short version of the method. The online session "Build your own Revit toolbar" does it again live, with more buttons and your questions. See the sessions.

Followthe Lab.

Newly tested methods, the tools that matter and invitations to the online sessions, in one e-mail when there is something worth sharing. No spam, unsubscribe at any time.

contact@miralto.fr