Dynamo and C# plugins for Civil 3D and Revit with AI: how to build them 10x faster with Claude
How AI (Claude, ChatGPT) speeds up Dynamo scripts and C# plugin development for Civil 3D and Revit, and what an engineer needs to know to use it well.
Vibe Coding for engineering · AI + BIM
Plugins used to take 2 years to build. Now, a good weekend.
AI doesn't replace the programmer. It removes the barrier to entry. This is the honest guide for engineers and architects who want to automate Civil 3D or Revit without ever having programmed before.
The real shift AI brought in 2026
Five years ago, building a C# plugin for Revit meant: learning C#, learning the Revit API (thousands of classes), setting up Visual Studio, understanding object orientation, and a lot of trial and error. Total: months before your first working button.
Today: with Claude (or ChatGPT), a motivated engineer can have their first working plugin in a single weekend. Not because they're smarter — because the AI writes the first version of the code, explains what each line does, and helps debug it when it breaks.
But be careful: AI is not magic. Some things it solves, and some it doesn't. This article separates one from the other.
The workflow that changed the game
Your idea
15 minutes
Clear prompt
20 minutes
Working code
Iterate with AI
Installed plugin
One weekend
Programming plugins without being a programmer — the honest guide
AI as a copilot: what you can build today without knowing code, what you can't, and how to avoid the classic mistakes that waste time.
- 01Context
What changes with AI in 2026
From 'I can't code' to 'I built my first plugin in a weekend'
- 02Tools
Minimum setup to get started
Claude/ChatGPT + Visual Studio + Dynamo — 30 minutes
- 03Technique
How to ask AI for what you need
Prompts that work vs prompts that go in circles
- 04Reality
The errors AI won't solve for you
API context, versioning, distribution, security
- 05Method
The 10x workflow: prototype in Dynamo, port to C# with AI
The pattern mixed teams use today
- 06Discipline
Minimum good practices for non-programmers
Naming, backups, simple version control, manual tests
- 07Limit
When to ask a professional for help
Clear signs + what to expect from mentorship
What DOES change:
- Writing the first draft of code is 10x faster. You describe what you need in plain language, and it gives you working C#.
- Learning the API gets easier: ask it to "explain
FilteredElementCollector" and you get clear examples. - Debugging — paste the error message and it translates it into a plan of action.
- Exploring alternatives — "can this be done with less code?" — you get 3 options.
What does NOT change:
- You still need to understand what you're asking for. If you don't know what a
Transactionis in Revit, the AI will hand you code that compiles but doesn't work. - You need to test it on a real model. The AI doesn't have your model open.
- You need to decide the architecture of a large project. The AI builds the pieces, you design the puzzle.
- You need to take responsibility — if the code deletes the wrong element, it's your name on it, not Claude's.
What you need installed before writing your first line:
- Visual Studio Community 2022 (free, visualstudio.microsoft.com). During install, choose the ".NET desktop development" workload.
- Revit / Civil 3D — whichever you already use.
- Revit / Civil 3D SDK — Google "Revit SDK 2024 download" or find Autodesk's official installer.
- Claude or ChatGPT (Pro version recommended for long conversations, but the free tier works too).
- A project template: there are free official Autodesk templates. They save hours.
For Dynamo, setup is even simpler: just install Dynamo (it ships with Revit and with Civil 3D as a package). Nothing to compile.
The difference between a good prompt and a bad one is hours of work. Golden rule: the AI doesn't guess your context.
Bad prompt:
"Make me a plugin to rename stuff."
Good prompt:
"I need a C# command for Revit 2024 that:
- Takes all views of type Section and Elevation.
- Renames them using the format:
<ShortType>-<Level>-<Number>, where Number is sequential per level.- Skips any view that already matches the format.
- Uses a single
Transaction. Give me the fullIExternalCommandcode with error handling."
The second one has context (version, exact category, format, edge cases, expected pattern). The code the AI returns compiles and works on the first try far more often.
Structure of an effective prompt:
- What software and version (Revit 2024, Civil 3D 2024).
- What it should do, in detail.
- What elements it touches (categories, exact types).
- Edge cases — what happens if nothing is found, if the name already exists, etc.
- Output format — full code, with imports, with transactions.
The honest list:
- Outdated API. Models sometimes use methods that no longer exist or changed between versions. Fix: paste the link or snippet from the official docs into the chat when in doubt.
- Business logic bugs. If your rule is "beams shorter than 3 m don't count" and you never said so, the AI won't guess it.
- Performance on huge models. The AI's code works fine on your 500-element test model. In production with 200,000 elements, it can freeze. That takes optimization.
- Distribution —
.msiinstaller, digital signature, updates. AI can get you started, but it needs human judgment. - Security — if the plugin deletes elements, does it have "undo"? Does it ask for confirmation? That's UX design, not pure code.
The pattern mixed teams use today:
The mixed pattern
Idea
In a meeting
Dynamo (prototype)
Days
Validate with team
A week
C# with AI (port)
Days
Distribute
MSI
Step by step:
- Idea: "I want to automate renaming families."
- Prototype in Dynamo: fast, visual. In 1-2 days you have something working. Show it to the team and check if it's what they need.
- If no one is going to use it: you just saved a week of C#. Save the
.dyn, move to the next problem. - If a lot of people will use it: ask Claude to port the Dynamo graph to a C# add-in. Paste in the graph logic (or explain it in words) and it hands you the base code. You polish it.
- Package it as an
.msiplugin with an installer. Distribute it to the team. - Keep the original
.dynas an "executable spec": if you need to change the logic tomorrow, iterate in Dynamo first, then regenerate the C# with AI.
That workflow reduces "development risk" — you don't sink 3 weeks into something nobody ends up using.
You don't need to be a software engineer. You need 5 habits:
a) Clear names. RenameViewsButton is better than Button1. The AI respects what you tell it; if you say "use clear names," it does.
b) One file per command. Don't cram 8 commands into one giant file. One per file (RenameViewsCommand.cs, ExportQuantitiesCommand.cs). Makes it easier to see what does what.
c) Backup with Git — no drama. Install GitHub Desktop (visual interface, zero terminal). Create a private repo. Every time something works: "Commit → Push." If you break something tomorrow, roll back with one button. Cost: 20 minutes to learn. Value: infinite.
d) Short comments where they matter. Don't comment the obvious. Do comment odd business rules: // Steel beams under 3m don't count per internal standard. Future you will thank you.
e) Test on a small model first. Before running against a real model, duplicate it and test. Always.
Signs it's time for expert help:
- 10+ people use your plugin and you can't keep up with bugs and requests.
- You start hitting errors that AI can't solve after 3-4 iterations.
- You need integration with external systems (a corporate database, ERP, enterprise authentication).
- You need professional distribution with a signed installer.
- Your scripts are starting to feel impossible to maintain.
What to expect from serious mentorship:
- Review of your current code and a refactor into something maintainable.
- Being taught patterns so future plugins are simpler.
- Professional setup: Git + CI + tests.
- A growth roadmap — so you don't depend on the mentor forever.
Good mentorship is an investment that makes you autonomous, not dependent.
Comparison: without AI vs with AI
| Stage | Without AI (2020) | With AI (2026) |
|---|---|---|
| Learning the Revit API | 3-6 months of study | Days if you ask well |
| First working plugin | 3-6 weeks | One weekend |
| Debugging a new error | 2-4 hours googling | 10-30 minutes with AI |
| Porting from Dynamo to C# | Weeks | Days |
| Barrier for non-programmers | Very high | Low |
| Need for fundamentals | Medium | High (ironically) |
Ironic note: with AI, fundamentals matter MORE, not less. Without them, you can't tell whether the AI is proposing something good or garbage.
Resources and next steps
📘 Pillar guides: automating Civil 3D and add-in development.
- If you've never programmed, start with our path to learn programming from scratch — it gives you the base to actually make use of AI.
- If you're torn between Dynamo and C#, read Dynamo vs C# in Civil 3D and Revit.
- To see which AI already ships with the software —Autodesk Assistant, MCP agents— and what it still can't do, read AI for AutoCAD and Civil 3D in 2026.
- For ideas for your first script, see 10 Dynamo scripts for Civil 3D.
- Documentation: Revit API Docs, Dynamo Primer.
Frequently asked questions
You can build simple, useful plugins: exporting quantities, renaming families, generating reports. The AI writes the first version, you adjust it. What you CAN'T do is design the architecture of a large system, or distribute to 100 users without help. That takes someone who knows how.
Found this useful? Share it with that engineer who wants to automate but thinks "it's not for me." Today, it is — they just need to start.
Keep reading on this topic
Vibe Coding for engineers: build your own BIM tools without being a programmer
What vibe coding is and how an engineer can build their own BIM tools with AI without being a programmer: the method, the limits and first projects.
How to Build a Civil 3D Plugin with Claude Code Without Being a Programmer: End-to-End 2026 Guide
How to build a Civil 3D plugin with Claude Code without coding experience: architecture, prompts that work, and how to compile and deploy it.
AI for AutoCAD and Civil 3D in 2026: what actually exists, what works and what doesn't yet
What AI exists today for AutoCAD and Civil 3D: Autodesk Assistant, ChatGPT or Claude writing LISP, Dynamo and C#, MCP agents, and what they still can't do.
Dynamo vs C# in Civil 3D and Revit: when to use each + automations that save hours
Dynamo or C# for automating Civil 3D and Revit: the real differences, when each one is worth it, and automations that save hours, with examples.