Skip to content
BadBit Documentation
Sign in Download the beta

BadBit CAD · Commands

DONUT

Donut (DONUT)

English name
DONUT
Aliases
DO
Through automation
Verified sequence The sequence of answers was checked in the program: through automation, it runs with the answers of the example.

Equivalent operation

To do the same with parameters instead of answers, use the cad.draw.donut operation.

Prompts

  1. Specify inside diameter of donut:
  2. Specify outside diameter of donut:
  3. Specify center of donut or <exit>:
  4. Specify center of donut or <exit>:

Example through automation

The answers of the example, in order, through the suite.command.run operation (an empty answer is Enter):

  1. 1
  2. 2
  3. 0,0
  4. Enter

MCP

JSON
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "command": "DONUT",
      "inputs": [
        "1",
        "2",
        "0,0",
        ""
      ]
    },
    "name": "badbit_run_command"
  }
}

Python

Python
import badbit

result = badbit.suite.command.run(command="DONUT", inputs=["1", "2", "0,0", ""])

LISP

LISP
(badbit-call "suite.command.run" '(("command" . "DONUT") ("inputs" . ("1" "2" "0,0" ""))))

JSON-RPC

JSON
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "badbit/call",
  "params": {
    "arguments": {
      "command": "DONUT",
      "inputs": [
        "1",
        "2",
        "0,0",
        ""
      ]
    },
    "operation": "suite.command.run"
  }
}

In the user guide

Search the documentation