Skip to main content

Example: AutoCAD C# Demo

AutoCAD-family illustration — not a separate RevitDevTool host product. Platform features: AutoCAD.

Sample: AcadCSharpDemo/

Use this example to get started with AutoCAD C# commands through RevitDevTool.

What It Shows​

  • AutoCAD C# command sample structure;
  • editor command examples;
  • logging examples for AutoCAD host integration.

Run / Try​

  1. Build the sample for the matching Autodesk configuration.
  2. Load it through the AutoCAD host workflow available in your local setup.
  3. Run the sample editor/logging commands.
  4. Inspect AutoCAD output and RevitDevTool/DevTools logging behavior where available.

Expectations​

Visualization (DirectContext3D) is Revit-only and not available in AutoCAD. All other execution, logging, MCP, and testing features are shared.

Troubleshooting​

SymptomCheck
command does not loadconfirm AutoCAD version/configuration matches the build
logging output missingconfirm the AutoCAD host integration is loaded
Revit-only feature missingthis is expected unless documented for AutoCAD