Can ChatGPT make a Revit plugin? It can write the C#: ChatGPT, Claude or Codex will draft the add-in, but you still build it, place a manifest in Revit’s Addins folder and match the .NET runtime of your Revit year. Can ChatGPT connect to Revit? Not by itself. A live link needs an MCP server running beside Revit; Autodesk’s own Revit Public MCP Server is a Technical Preview supported only on Revit 2027.2, and its setup page names Claude Desktop and Cursor, not ChatGPT.
I’m an architect who moved into software development, and most weeks someone asks me for a small Revit add-in. The hard part of that request is no longer the C#. An AI assistant will happily write a plugin that Revit then refuses to load. This guide covers both routes, connecting and building, with the Revit-specific facts to hand the AI up front, a minimal add-in you can copy, and a checklist for the day it does not appear.

ChatGPT and Revit: connect to the model, or build an add-in?
Three different things get called a “ChatGPT Revit plugin”. They differ in what touches your model, and only one of them needs you to write an add-in.
| Route | What the AI does | What you need | Limit |
|---|---|---|---|
| Chat only | Explains an error, drafts a Dynamo or Python script, or C# you paste in | Nothing installed | The conversation alone does not change your .rvt file; generated scripts may need edits |
| Coding agent builds an add-in | Edits a project on your machine, runs the build, writes the .addin manifest |
.NET SDK or Visual Studio, your Revit year | You own loading, versions and testing |
| MCP connection | Calls tools inside the open Revit model | An MCP server for your Revit version and a client that runs local MCP servers | Version-bound; the Autodesk server is a preview; write tools can edit the model |
Connecting ChatGPT to Revit with MCP
MCP (Model Context Protocol) is the standard that lets an AI client call tools in another program. Autodesk puts it this way: the Revit Public MCP Servers “allow supported AI clients to communicate with Revit using a standardized protocol”. Four facts from Autodesk’s pages decide whether this route is open to you:
- Version: the servers are “supported only on Autodesk Revit 2027.2 during the Technical Preview”. On Revit 2026 or earlier there is no Autodesk server to install.
- Modes: Read queries and reports without changing anything; Write adds tools that modify the model; Experimental adds more. Autodesk advises a backup before write operations.
- Stability: “Features, supported tools, and behavior may change before the General Availability (GA) release”, and the servers may update automatically.
- Clients: the setup page covers Claude Desktop and Cursor and says the same pattern “generally applies to other AI clients that support local MCP servers”. ChatGPT is not named.
On the OpenAI side, the documentation says the ChatGPT desktop app, the Codex CLI and the Codex IDE extension share one MCP configuration, that local servers are started by a command, and that ChatGPT on the web does not read local configuration files. So ChatGPT on the desktop is a plausible client for Autodesk’s server on Revit 2027.2, but neither vendor documents that pairing, and I have not tested it.
If you try it, use Autodesk’s own connection test: start Revit 2027.2 with a model open, connect the client, and ask “List the available Revit MCP tools.” Autodesk’s troubleshooting notes cover the usual failures: invalid JSON in the client’s config file (a single backslash in a Windows path or a trailing comma stops it loading), a client that needs a restart, and Cursor not accepting executable paths that contain spaces.
For older Revit versions, the open-source revit-mcp project shows the architecture: a Node.js server (Node 18 or later) for the AI client, plus a separate plugin inside Revit that talks to it over a socket. Its repository was archived by its owner on February 25, 2026 and is read-only, and its README says AI-written code execution “may not be successful”. Treat it as a reference, not a dependency.
What an AI coding tool can do on your machine
A browser chat window is the wrong shape for building an add-in, because you end up copying files by hand. The tools that work are the agentic ones that run where your code is. Anthropic describes Claude Code as a tool that “reads your codebase, edits files, runs commands, and integrates with your development tools”, available in the terminal, IDE, desktop app and browser. OpenAI’s Codex CLI runs “against your local repository” and lets you “make edits, and run the tools already installed on your machine”, with a /permissions command to set “when Codex can edit files or run commands without asking”.
That is the entire setup: one of those, a folder, and a Revit install. The bottleneck is never code generation. It is that the Revit API is pinned to the Revit version, while the model’s training data blends six years of mutually incompatible samples. Everything below is the context that closes that gap.
One check before you start, because it saves most people the project entirely: if what you want is a bulk parameter editor, a sheet renamer or a room-data cleanup, a finished add-in for that job already exists. The closing section below says which one, and what it does not cover. Build your own only for the part no tool handles.
Four facts to give the AI before it writes a line
1. Your Revit version decides the .NET runtime
Autodesk’s Development Requirements page for Revit 2024 says “The Autodesk Revit API requires the Microsoft .NET Framework 4.8.” The same page for Revit 2026 says “The Autodesk Revit API requires Microsoft .NET 8.0.” And Revit 2027 “has been updated to use the final .NET 10 runtime for running Revit and building add-ins”, with SDK 10.0.100 to install.
- Revit 2022–2024 →
net48(.NET Framework 4.8) - Revit 2025–2026 →
net8.0-windows - Revit 2027 →
net10.0-windows
Autodesk’s migration page is blunt: “legacy Revit add-ins need to be recompiled for .NET 8”. A DLL built for the wrong line is the first suspect when the ribbon button never appears. The fix is one project property: set <TargetFramework>net8.0-windows</TargetFramework>, and add <UseWPF>true</UseWPF> if your add-in shows a WPF window. Say your Revit year in the first sentence of your prompt and the AI has no reason to guess.
2. Reference the two Revit assemblies — and do not copy them
Autodesk’s Hello World walkthrough tells you to reference RevitAPI.dll and RevitAPIUI.dll from the Revit installation folder, then to set the “Copy Local property of RevitAPI.dll and RevitAPIUI.dll to No”. Spell that out to the AI. If Copy Local stays on, your output folder ships its own copy of the Revit API, which then loads alongside the one Revit already has — the source of cast errors that read like nonsense (“cannot convert type X to type X”).
There is a lazier route the AI will not propose on its own: reference-assembly NuGet packages that mirror the Revit API. A build machine then needs no Revit installed at all, and the same trick works in CI.
3. A transaction attribute is mandatory and has no default
Autodesk is blunt about it: the attribute Autodesk.Revit.Attributes.TransactionMode “must be applied to your implementation class of the IExternalCommand interface”, and “There is no default for this option.” Two values matter in practice: Manual for anything that changes the model, ReadOnly for anything that only reads it.
That is separate from the transaction itself. The Developer Guide states that “Any change to a document can only be made while there is an active transaction open for that document” and “Attempting to change the document outside of a transaction will throw an exception”. Changes “do not become a part of the model until the active transaction is committed”, and “Only one transaction per document can be open at any given time”. The transaction’s name is what the user later sees on Revit’s Undo menu.
4. Where the .addin manifest goes
An add-in is a compiled DLL plus a small XML manifest with the .addin extension. Revit reads manifests from two folders: a per-user one, %AppData%\Autodesk\Revit\Addins\<year>\, and an all-users one. The all-users folder moved: Autodesk’s pages for Revit 2026 and earlier give C:\ProgramData\Autodesk\Revit\Addins\<year>\, while the Revit 2027 pages give C:\Program Files\Autodesk\Revit\Addins\<year>\. Files in both locations are read at startup and loaded in alphabetical order; if both folders hold a manifest with the same file name, the all-users one is ignored. You do not need an MSI to test anything — dropping one XML file in the per-user folder is the whole install, and it needs no admin rights.
A minimal Revit add-in, end to end
Three files. Give the AI this shape and it will fill in your actual logic instead of inventing a project layout.
The project file (Welcome.csproj), targeting Revit 2026:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
<UseWPF>true</UseWPF>
</PropertyGroup>
<ItemGroup>
<Reference Include="RevitAPI">
<HintPath>C:\Program Files\Autodesk\Revit 2026\RevitAPI.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="RevitAPIUI">
<HintPath>C:\Program Files\Autodesk\Revit 2026\RevitAPIUI.dll</HintPath>
<Private>false</Private>
</Reference>
</ItemGroup>
</Project>
<Private>false</Private> is MSBuild’s name for Copy Local = No.
The command (TagSelectionCommand.cs). It writes into the Comments parameter of whatever is selected, which is enough to exercise a real transaction:
using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
namespace Welcome
{
[Transaction(TransactionMode.Manual)]
public class TagSelectionCommand : IExternalCommand
{
public Result Execute(ExternalCommandData commandData,
ref string message,
ElementSet elements)
{
var uiDocument = commandData.Application.ActiveUIDocument;
var document = uiDocument.Document;
var selected = uiDocument.Selection.GetElementIds();
if (selected.Count == 0)
{
message = "Select at least one element first.";
return Result.Cancelled;
}
// The transaction name is what appears on Revit's Undo menu.
using (var transaction = new Transaction(document, "Tag selection"))
{
transaction.Start();
foreach (var id in selected)
{
var parameter = document.GetElement(id).LookupParameter("Comments");
// Revit 2024+: ElementId.Value is a 64-bit long.
// On Revit 2022-2023 this line is id.IntegerValue instead.
parameter?.Set("Tagged " + id.Value);
}
transaction.Commit();
}
TaskDialog.Show("Welcome", selected.Count + " element(s) updated.");
return Result.Succeeded;
}
}
}
The manifest (Welcome.addin). Generate a fresh GUID for AddInId — two add-ins sharing one id is a real conflict, not a formality:
<?xml version="1.0" encoding="utf-8"?>
<RevitAddIns>
<AddIn Type="Command">
<Text>Tag Selection</Text>
<Assembly>D:\welcome\bin\Debug\net8.0-windows\Welcome.dll</Assembly>
<AddInId>f1a2b3c4-1111-4222-8333-abcdef123456</AddInId>
<FullClassName>Welcome.TagSelectionCommand</FullClassName>
<VendorId>com.yourcompany</VendorId>
<VendorDescription>Your Company, yourcompany.com</VendorDescription>
</AddIn>
</RevitAddIns>
Autodesk marks Assembly (a full path), FullClassName and AddInId as required for commands and applications; Text is optional and defaults to “External Tool”. VendorId should be unique, and Autodesk suggests a reversed domain name such as com.autodesk. Use Type="Application" with a Name element when you implement IExternalApplication, which is what you need to add your own ribbon tab and buttons.
Install in ten seconds, debug in twenty
Copy Welcome.addin to %AppData%\Autodesk\Revit\Addins\2026\ and start Revit (Autodesk’s Revit 2026 walkthrough saves its manifest under Addins\2026). The command appears under Add-Ins > External Tools. Because the manifest points at your build output by absolute path, every rebuild is live on the next Revit launch — no installer, no copy step, which is the difference between a two-minute iteration and a twenty-second one.
For debugging, Autodesk’s instruction is the simple one: launch Revit first, then in Visual Studio choose Debug > Attach To Process and pick Revit.exe. Breakpoints in your command then hit normally. Autodesk lists Visual Studio 2022 Professional or Community as the requirement for C# and VB.NET, and notes that Express editions do not support DLL debugging. There is no separate purchase: the Revit API ships with Revit.
Revit will not load your add-in: 8 checks, in order
Searchers type “revit add in not loading” and “revit add in not showing” for a reason: the failure is often quiet. Autodesk’s own troubleshooting list says that when a path or class name is wrong Revit shows an error dialog on startup, but that an add-in “may fail to load without any message” if it was compiled with a different RevitAPI version, if the manifest is not found, or if the manifest is malformed. Work down this list; each item is something Autodesk’s pages state.
- The manifest is in a folder this Revit reads. Per-user
%AppData%\Autodesk\Revit\Addins\<year>\is the safe choice; for the all-users folder see fact 4 above. The file name ends in.addin(“Save the file as HelloWorld.addin”). - The XML is well formed. Autodesk’s specific warning: no leading spaces before the outermost tag. Check it after pasting a manifest from a chat window.
Assemblyis a full path to a DLL that exists. The registration page gives only absolute paths. If Revit cannot find the file it shows an error on startup.FullClassNameis namespace plus class, and the class implementsIExternalCommand. A name that does not resolve, or a class that does not inherit the interface, also raises an error dialog.AddInIdis a GUID nobody else uses. Autodesk: “Revit will refuse to load two addins with the same identifier”. A manifest copied from a tutorial or an AI answer carries the GUID of whoever wrote the example.- The DLL matches your Revit year. Same RevitAPI generation, same runtime line (fact 1). Autodesk lists a different RevitAPI version as a silent cause.
- You answered the security prompt. Revit expects add-ins to be signed; for an unsigned one it says the publisher cannot be verified, and Autodesk’s answer is to select Always Load or Load Once to continue.
- It loads, but the command fails. Autodesk: this “is most often caused by an exception in the code”, and Revit shows a dialog with the exception. For commands you hand to other people, wrap
Executeintry/catchso the exception does not reach Revit unhandled.
When you go back to the AI with a failure, paste the exact dialog text, your Revit year and the TargetFramework line. A plain “it doesn’t work” gets you a rewrite of the same wrong guess. By default Revit also loads a newly added manifest without a restart (the AllowLoadIntoExistingSession flag turns that off), but restarting costs little when a test is inconclusive.
Five mistakes AI assistants make in Revit add-in code
These are the ones worth pasting into your prompt as constraints, because every one of them produces a plugin that looks finished and is not.
ElementId.IntegerValueinstead ofElementId.Value. Revit 2024 widened ElementId’s internal storage from 32-bit to 64-bit.IntegerValueis deprecated and “will throw an exception if called on an ElementId whose value is high enough to need more than 32 bits to describe it”, and the constructor now takesSystem.Int64. Most public Revit sample code predates that change, so this is the most likely stale API call in AI-generated code — and it fails at runtime on large models, not at compile time.- Model edits outside a transaction. The AI writes the loop, forgets the
using (var transaction = new Transaction(document, "..."))wrapper, and you get an exception on the firstSet. Ask for the transaction explicitly. - A missing or wrong
[Transaction(...)]attribute. There is no default, so omitting it is not “the safe option”. And a command declaredReadOnlycannot open a transaction later. - The wrong target framework. Ask for Revit 2024 and get
net8.0-windows, and the add-in will not load, because Revit 2024 runs on .NET Framework 4.8 and has no .NET 8 runtime to load it into. Name the Revit year in the prompt and checkTargetFrameworkin the first file the AI returns. - Copy Local left on for the Revit assemblies. Free of symptoms until the day a cast fails for no visible reason.
One more habit, borrowed from shipping a commercial add-in: compile against the lowest Revit API version in each runtime line, not the newest. A binary built against the Revit 2022 API loads across 2022–2024; one built against 2025 covers 2025–2026. Build against 2024 and you have quietly dropped 2022 and 2023 users.
When the answer is not an add-in at all
AI-assisted add-in development covers a lot of the small internal-tool requests a design office has. It covers less than people expect for geometry, family creation, and anything with a large data structure behind it; there you want a developer driving the AI, with RevitLookup open to inspect elements, rather than the other way round.
And a large share of these requests are not plugin requests. Bulk parameter edits, sheet renaming, room data cleanup — that is spreadsheet work someone has described as a plugin. Our Revit parameter editor, Metasheet, already does it: every feature including bulk find and replace, Revit 2022–2027, free for up to 3 Applies a day with a 3dshouse account. It is also the add-in the multi-version examples above are drawn from, so you can see the shape of a shipped one. Other tools are lined up in our comparison of Revit Excel import and export plugins. If what you need genuinely does not exist yet, we build them to order too — see our custom Revit add-in development service.
FAQ
Can ChatGPT make a Revit plugin?
Yes, for a self-contained command. An agentic tool such as Codex or Claude Code can create the project, build it and write the .addin manifest on your machine. It cannot know your Revit year, and that one fact decides the target framework, the API calls and whether Revit loads the result at all.
How do I connect ChatGPT to Revit?
Through an MCP server that runs next to Revit. Autodesk’s Revit Public MCP Server is a Technical Preview supported only on Revit 2027.2, and its setup page names Claude Desktop and Cursor rather than ChatGPT. OpenAI’s documentation says the ChatGPT desktop app and Codex can run local MCP servers, while ChatGPT on the web does not read local configuration.
Why is my Revit add-in not loading?
Check the manifest location and file name, the XML (no leading spaces before the outermost tag), the full path in Assembly, FullClassName, a unique AddInId, and whether the DLL was built against the same Revit API and .NET runtime as your Revit year. Autodesk lists a different RevitAPI version, a missing manifest and a malformed manifest as causes that give no message at all.
What .NET Framework does a Revit 2024 add-in need?
.NET Framework 4.8, per Autodesk’s Development Requirements page for that release — target moniker net48. Revit 2025 and 2026 need .NET 8 (net8.0-windows), Revit 2027 needs .NET 10 (net10.0-windows). The 4.8 line ends at Revit 2024.
What do I need to start Revit plugin development?
Revit itself, Visual Studio 2022 Professional or Community, and references to RevitAPI.dll and RevitAPIUI.dll from the Revit program folder. Autodesk supports C# and VB.NET. The API costs nothing extra, and you can skip the installer entirely while developing by putting the .addin file in your user Addins folder.
