BadBit CAD · Commands
XLINE
Construction Line
- English name
XLINE- Aliases
XL- 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.xline operation.
Prompts
Specify a point or [Hor/Ver/Ang/Bisect/Offset]:Specify through point:Specify through point:
Options
| Letter | Option |
|---|---|
| H | Hor |
| V | Ver |
| A | Ang |
| B | Bisect |
| O | Offset |
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,010,10- Enter
MCP
JSON
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "XLINE",
"inputs": [
"0,0",
"10,10",
""
]
},
"name": "badbit_run_command"
}
}Python
Python
import badbit
result = badbit.suite.command.run(command="XLINE", inputs=["0,0", "10,10", ""])LISP
LISP
(badbit-call "suite.command.run" '(("command" . "XLINE") ("inputs" . ("0,0" "10,10" ""))))JSON-RPC
JSON
{
"id": 1,
"jsonrpc": "2.0",
"method": "badbit/call",
"params": {
"arguments": {
"command": "XLINE",
"inputs": [
"0,0",
"10,10",
""
]
},
"operation": "suite.command.run"
}
}