BadBit CAD · Commands
RECTANG
Rectangle
- English name
RECTANG- Aliases
RECRECTANGLE- 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.rectangle operation.
Prompts
Specify first corner point or [Chamfer/Fillet/Width]:Specify other corner point or [Area/Dimensions/Rotation]:
Options
| Letter | Option |
|---|---|
| C | Chamfer |
| F | Fillet |
| W | Width |
| A | Area |
| D | Dimensions |
| R | Rotation |
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,50
MCP
JSON
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "RECTANG",
"inputs": [
"0,0",
"100,50"
]
},
"name": "badbit_run_command"
}
}Python
Python
import badbit
result = badbit.suite.command.run(command="RECTANG", inputs=["0,0", "100,50"])LISP
LISP
(badbit-call "suite.command.run" '(("command" . "RECTANG") ("inputs" . ("0,0" "100,50"))))JSON-RPC
JSON
{
"id": 1,
"jsonrpc": "2.0",
"method": "badbit/call",
"params": {
"arguments": {
"command": "RECTANG",
"inputs": [
"0,0",
"100,50"
]
},
"operation": "suite.command.run"
}
}