civil3d_command
Execute any native Civil 3D or AutoCAD command string, such as CREATECORRIDOR or EXPORTLANDXML, for operations not easily accomplished via the C# API.
Instructions
Execute a native Civil 3D or AutoCAD command string (same as typing in the command line). Use for operations not easily done via C# API: CREATECORRIDOR, EXPORTLANDXML, etc. Prefer civil3d_execute/civil3d_query when the C# API is sufficient.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "<command>"
},
"name": "civil3d_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Command string to execute, e.g. 'REGEN', 'CREATECORRIDOR', 'AeccCreateSurfaceGridFromDem' | |
| confirmed | No | Set true to confirm destructive commands (ERASE, PURGE, etc.) | |
| timeoutMs | No | Max wait time in ms when waitForCompletion is true (default: 300000) | |
| description | No | Brief description for logging | |
| waitForCompletion | No | Wait until the command finishes (default: true) |