How trgiangv/revitdevtool works
RevitDevTool is an in-host development platform for Revit and AutoCAD. A user selects a script in the add-in, runs it against the live host, and reads output in the Trace panel; runtimes include Python, IronPython, C#, F#, and compiled .NET. Separate capabilities cover package installation, debugging, in-host testing, MCP access, logging, and Revit geometry preview. The graph combines README-described behavior with the sampled startup and MCP code; unverified runtime wiring is left dashed or omitted.
Main entry points: ExecutionOrchestrator.cs Execution Orchestrator · PythonInitializer.cs Python Runtime · McpEngine.cs MCP Tools · Application.cs Revit Add-in
Components 23
Host Add-ins
- Revit Add-in
source/RevitDevTool/Application.cs - AutoCAD Add-in
source/AcadDevTool/Application.cs - Host Bridges
source/AcadDevTool/Adapters
Code Execution
- Script Panel
source/AcadDevTool/Controllers/PanelController.cs - Execution Orchestrator
source/DevTools.Execution/Services/ExecutionOrchestrator.cs - Python Runtime
source/DevTools.Execution/Providers/Python/PythonInitializer.cs - IronPython Runtime
source/DevTools.Execution/Providers/IronPython/IronPythonInitializer.cs - .NET Runtimes
source/DevTools.Execution/Providers/CSharp/CSharpExecutionStrategy.cs - Python Packages
source/DevTools.Execution/Providers/Python/PythonDepsManager.cs - Debugging
source/DevTools.Execution/Providers/Python/PythonDebugger.cs
AI Integration
- DevTools Daemon
source/DevTools.Daemon/Program.cs - MCP Tools
source/DevTools.Daemon/Mcp/Hosting/McpEngine.cs - Host Discovery
source/DevTools.Daemon/Mcp/Processes/DiscoveryHostedService.cs - Code Mode
source/DevTools.Daemon/Mcp/Tools/CodeModeTool.cs
In-Host Testing
- Test Execution
source/DevTools.Execution/External/Testing/PytestExecutionService.cs - Testing Host
source/DevTools.Testing.Host/TestingRequestHandler.cs
Output and Visualization
- Trace Logs
source/DevTools.Logging/Targets/FileLogProcessor.cs - Geometry Preview
source/RevitDevTool/Controllers/VisualizationController.cs - Geometry Buffer
source/RevitDevTool/Visualization/Render/RenderingBufferStorage.cs
Other components
- Developer
- Revit Host
- AutoCAD Host
- AI Assistant
Connections 23
- Developer → Script Panel: selects and runs
README.md - Script Panel → Execution Orchestrator: starts execution
- Execution Orchestrator → Python Runtime: dispatches Python
- Execution Orchestrator → IronPython Runtime: dispatches IronPython
- Execution Orchestrator → .NET Runtimes: dispatches .NET
- Python Runtime → Python Packages: installs dependencies
source/DevTools.Execution/Providers/Python/PythonDepsManager.cs - Python Runtime → Debugging: supports debugging
source/DevTools.Execution/Providers/Python/PythonInitializer.cs - Execution Orchestrator → Host Bridges: runs in host
- Revit Add-in → Revit Host: loads in
README.md - AutoCAD Add-in → AutoCAD Host: loads in
source/AcadDevTool/Application.cs - Developer → Revit Add-in: uses add-in
README.md - Developer → AutoCAD Add-in: uses add-in
README.md - AI Assistant → DevTools Daemon: connects via MCP
README.md - DevTools Daemon → MCP Tools: hosts tools
source/DevTools.Daemon/Mcp/Hosting/McpEngine.cs - MCP Tools → Host Discovery: discovers hosts
- MCP Tools → Code Mode: registers tool
source/DevTools.Daemon/Mcp/Hosting/McpEngine.cs - Code Mode → Host Discovery: accesses host sessions
- Developer → Test Execution: runs tests
README.md - Test Execution → Testing Host: runs in host
- Execution Orchestrator → Trace Logs: writes output
- Developer → Trace Logs: reads output
README.md - Developer → Geometry Preview: views geometry
README.md - Geometry Preview → Geometry Buffer: stores geometry