Skip to main content
FridayPlus 图标FridayPlus
← Back to updates
2026-11-02Blog

Developing Revit Plugins with AI: You Are the Product Manager, AI Is the Coder

A real workflow from a mechanical engineer who built a library of 20+ plugins with an AI team, from zero.

The short version

The biggest mistake in AI-assisted plugin development is treating AI as "a programmer who types fast". What it actually feels like: AI is a knowledgeable coder who needs managing — it knows every corner of the Revit API, but not which folders in your project are off-limits, how many places a version bump touches, or which pit you fell into last week.

So the core of the workflow is not "how to make AI write code" — it is the division of labor:

  • Human: raise requirements, decide interactions, test on the real thing, make the calls
  • AI: write code, look up APIs, write docs, track state, run errands (compile, package, git)

1. Aligning on requirements: granularity decides everything

You cannot tell AI "write me a pipe-selection plugin". We have an iron rule: no code until the plan is confirmed. A requirement is aligned at least on:

  • Interaction: pick or frame-select? Dialog or TaskDialog?
  • Input → output: what the user gives, what the plugin produces
  • Edge cases: too few picked, wrong type, nothing picked — what happens in each
  • Data scale: instant on a small model and frozen on a large one are two different designs

For the Riser Select plugin, the very definition of "riser" took several rounds: vertical tolerance (50 mm)? What counts as "open" (an unconnected connector? crossing levels? beyond the view range)? Left unaligned, AI fills the gaps by guessing — and its guess is never what you wanted.

2. The hot loop: compile-and-test without restarting Revit

The efficiency core of development is one phrase: the hot loop.

  • Load the DLL with Revit's built-in AddInManager — no .addin registration
  • AI edits code → bumps the version → compiles → Remove and Load in AddInManager, Revit never closes
  • Every test round bumps the version by +0.0.1 automatically, so the DLL filename differs and never gets locked by the process

Once this loop runs smoothly, feedback per change drops from "restart Revit, three minutes" to "ten-odd seconds". Tens of rounds a day — that is the real reason AI development beats hand-writing. Not faster typing; more iterations.

3. Version discipline: three places, every time

For plugins managed by our online-update manager, the version comes from the embedded FileVersion. So every version bump syncs three places:

  1. The DLL filename (AssemblyName): PluginName_v1.2
  2. The version field in manifest.json
  3. The embedded version (<Version> in csproj, or AssemblyInfo.cs)

We learned this the hard way: once only the filename was changed, users installed it, the manager still showed the old version, and update checks kept saying "already up to date".

4. Testing and bugs: AI records, never acts on its own

Human testing, always. When a problem is reported to AI, the rules are:

  • AI analyzes the root cause and lists a change plan first; it touches code only after a human says "go"
  • Confirmed bugs are archived into a dated issue file in the plugin's folder
  • Fix, bump the version, human re-tests — only then is it closed

It looks bureaucratic. It has saved us repeatedly — a few of AI's "helpful drive-by fixes" changed things nobody intended to touch. Keep testing in human hands and AI stays on track.

5. Asset management: keeping twenty plugins in order

Once there are many plugins, chaos arrives fast. Three institutions hold the line:

  • One folder per plugin, each with a feature doc and a technical doc, each an independent git repository
  • A status sheet: one table with every plugin's version and state (done / developed / in development / planned) — the single source of truth, refreshed by AI at every update
  • Delivery: DLL + manifest files land in the plugin folder's Release directory, ready to copy out and ship

6. Release: obfuscation + snapshots

Public builds go through an obfuscator (anti-decompile), and the obfuscated build must pass a real-machine test before release. Every status update, AI snapshots the day's builds into a folder, renamed plugin_version, snapshots never deleted.

Last words

This workflow has run for over a year; the library grew from 3 to 20+ plugins, a dozen or so A-grade (done and usable). Looking back, what AI changed is not "code got written faster":

  1. One person can maintain an entire library — docs, status and records are all on AI
  2. Every pit is stepped in once — AI archives it, and avoids it next time (more on that in the next post)
  3. Human attention goes to requirements and experience — which is, after all, the most valuable part of an engineer

The next post is a real detective story: a bug that crashed Revit outright, and how it was tracked down.