Перейти к содержимому

Revit + Claude MCP Tutorial Part 2: Project Setup and Bridge in C# #revit #mcp #claude

MSV BIM

0:00 / 0:00

Revit + Claude MCP Tutorial Part 2: Project Setup and Bridge in C# #revit #mcp #claude

292 просмотра · 9 дней назад
MSV BIM
27 подписчиков
292 просмотра · 9 дней назад
Revit + Claude MCP tutorial, part 2: set up the Visual Studio project for a Revit 2026 add-in and type the bridge that lets Claude talk to Revit. You learn the project settings, the Revit API references, App.cs and Bridge.cs (ExternalEvent, the job queue, the listener on 127.0.0.1). Every line of C# is typed on screen at real speed, and every new idea is explained as it appears. This part ends without a build: Bridge.cs calls Tools.Run, and Tools.cs is typed in Part 3, where we build the add-in and load it in Revit. You will learn: The apps you need: Visual Studio 2026, Python, Revit 2026, Claude Desktop A class library for Revit 2026: .NET 10, x64, the Revit API references with Copy Local set to No App.cs: how Revit starts and stops an add-in (IExternalApplication, OnStartup, OnShutdown) Bridge.cs: why Revit runs our code only on its main thread (ExternalEvent), the job queue, and a listener on 127.0.0.1 only C# for beginners as it appears: using, namespace, fields, null checks, try and catch, threads, lambdas, JSON Chapters 0:00 Apps you need 3:22 A new project and its settings 7:00 Project properties and the Revit references 9:58 App.cs: the class Revit starts 13:34 Bridge.cs: the main thread rule 16:33 Bridge.cs: the Job and the ExternalEvent 19:20 Bridge.cs: Execute 23:05 Bridge.cs: the listener 25:55 Bridge.cs: Serve 28:18 Bridge.cs: the job and the 30 second wait Downloads (official sites) Visual Studio Community 2026 (free): https://visualstudio.microsoft.com/do... .NET SDK: https://dotnet.microsoft.com/download Python: https://www.python.org/downloads/ Autodesk Revit: https://www.autodesk.com/products/rev... Revit API (SDK and developer guide): https://aps.autodesk.com/developer/ov... Claude Desktop: https://claude.ai/download Which .NET for your Revit Revit 2022: .NET Framework 4.8 Revit 2023: .NET Framework 4.8 Revit 2024: .NET Framework 4.8 Revit 2025: .NET 8 Revit 2026: .NET 8 (the 2026.5 update moves to .NET 10, used in this video) Revit 2027: .NET 10 Visual Studio 2026 builds all of these. For Revit 2022 to 2024, tick the .NET Framework 4.8 targeting pack in the Visual Studio Installer and set the project to net48. Python for the MCP server: 3.10 or newer for every Revit version (it runs outside Revit). Software and level: Revit 2026, Visual Studio Community 2026 (free), beginner friendly (no developer experience needed) Safety: test on a copy of a model, never on a live project. Previous part: Revit MCP Tutorial Part 1:    • Revit + Claude MCP Tutorial Part 1: What M...   Next part: Part 3, Tools, Build and Load in Revit (Wed 7 Oct, 6 PM IST) Series playlist: Revit MCP from Scratch #RevitAI #RevitAPI #BIM