BadBit CAD · Commands
DIMLINEAR
Linear dimension (DIMLINEAR)
- English name
DIMLINEAR- Aliases
DLIDIMLIN- 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.dim_linear operation.
Prompts
Specify first extension line origin or <select object>:Specify second extension line origin:Specify dimension line location or [Mtext/Text/Angle/Horizontal/Vertical/Rotated]:
Options
| Letter | Option |
|---|---|
| M | Mtext |
| T | Text |
| A | Angle |
| H | Horizontal |
| V | Vertical |
| R | Rotated |
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):
0,0100,050,-10
MCP
JSON
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "DIMLINEAR",
"inputs": [
"0,0",
"100,0",
"50,-10"
]
},
"name": "badbit_run_command"
}
}Python
Python
import badbit
result = badbit.suite.command.run(command="DIMLINEAR", inputs=["0,0", "100,0", "50,-10"])LISP
LISP
(badbit-call "suite.command.run" '(("command" . "DIMLINEAR") ("inputs" . ("0,0" "100,0" "50,-10"))))JSON-RPC
JSON
{
"id": 1,
"jsonrpc": "2.0",
"method": "badbit/call",
"params": {
"arguments": {
"command": "DIMLINEAR",
"inputs": [
"0,0",
"100,0",
"50,-10"
]
},
"operation": "suite.command.run"
}
}