Skip to content

About

AutoCAD C# Interface demos including MCP server, .NET plugin, ... for AutoCAD 2018+.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

AutoCAD Interaction Demos

Requires the .NET 10 SDK and Windows.

Projects

Project Description
AcadInteraction.Core Shared library with all AutoCAD interaction code.
AcadInteraction.WinForms WinForms demo app.
AcadInteraction.McpServer MCP server (stdio) exposing AutoCAD tools to AI clients.
AcadInteraction.Core.Tests xUnit tests for the Core library.

Core features

  • AcShellEx, open drawings using the AutoCAD Drawing Launcher.
  • DDE, old school uniform way to interact with AutoCAD.
  • Interop, COM interface to a running AutoCAD (with retry while AutoCAD is busy).
  • AcadCommands, shared drawing operations used by the MCP server.
  • AccoreConsoleRunner, run scripts headless with accoreconsole.exe (with timeout).
  • Proc, list all running acad processes (PID, name).

Configuration

Environment variable Purpose
ACAD_ACCORECONSOLE Path to accoreconsole.exe. When not set, it is detected from the registry, falling back to AutoCAD 2025.

MCP server

Tool failures (e.g. AutoCAD not running) are returned as MCP error results.

About

AutoCAD C# Interface demos including MCP server, .NET plugin, ... for AutoCAD 2018+.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages