BadBit CAD · Commands
PLINE
Polyline
- English name
PLINE- Aliases
PL- 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
Specify first point:Specify next point or [Arc/Halfwidth/Length/Undo/Width]:Specify next point or [Arc/Halfwidth/Length/Undo/Width]:Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]:
Options
| Letter | Option |
|---|---|
| A | Arc |
| H | Halfwidth |
| L | Length |
| U | Undo |
| W | Width |
| C | Close |
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,050,050,50C
MCP
JSON
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "PLINE",
"inputs": [
"0,0",
"50,0",
"50,50",
"C"
]
},
"name": "badbit_run_command"
}
}Python
Python
import badbit
result = badbit.suite.command.run(command="PLINE", inputs=["0,0", "50,0", "50,50", "C"])LISP
LISP
(badbit-call "suite.command.run" '(("command" . "PLINE") ("inputs" . ("0,0" "50,0" "50,50" "C"))))JSON-RPC
JSON
{
"id": 1,
"jsonrpc": "2.0",
"method": "badbit/call",
"params": {
"arguments": {
"command": "PLINE",
"inputs": [
"0,0",
"50,0",
"50,50",
"C"
]
},
"operation": "suite.command.run"
}
}