Skip to content
BadBit Documentation
Sign in Download the beta

BadBit CAD · Commands

TEXT

Single Line Text

English name
TEXT
Aliases
DTDTEXT
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.annotate.text operation.

Prompts

  1. Specify start point of text or [Justify/Style]:
  2. Specify height:
  3. Specify rotation angle of text:
  4. Enter text:
  5. Enter text:

Options

LetterOption
JJustify
SStyle

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. 2.5
  3. 0
  4. Planta
  5. Enter

MCP

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

Python

Python
import badbit

result = badbit.suite.command.run(command="TEXT", inputs=["0,0", "2.5", "0", "Planta", ""])

LISP

LISP
(badbit-call "suite.command.run" '(("command" . "TEXT") ("inputs" . ("0,0" "2.5" "0" "Planta" ""))))

JSON-RPC

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

In the user guide

Search the documentation