Skip to content
BadBit Documentation
Sign in Download the beta

BadBit CAD · Commands

LINE

Line

English name
LINE
Aliases
L
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.entity.create operation.

Prompts

  1. Specify first point:
  2. Specify next point or [Undo]:
  3. Specify next point or [Undo]:
  4. Specify next point or [Close/Undo]:

Options

LetterOption
UUndo
CClose

The letter is the AutoCAD one and works in any language.

Example through automation

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

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

MCP

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

Python

Python
import badbit

result = badbit.suite.command.run(command="LINE", inputs=["0,0", "100,0", "100,50", ""])

LISP

LISP
(badbit-call "suite.command.run" '(("command" . "LINE") ("inputs" . ("0,0" "100,0" "100,50" ""))))

JSON-RPC

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

In the user guide

Search the documentation