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
- Build the sample for the matching Autodesk configuration.
- Load it through the AutoCAD host workflow available in your local setup.
- Run the sample editor/logging commands.
- 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
| Symptom | Check |
|---|---|
| command does not load | confirm AutoCAD version/configuration matches the build |
| logging output missing | confirm the AutoCAD host integration is loaded |
| Revit-only feature missing | this is expected unless documented for AutoCAD |