BadBit CAD · Commands
ROTATE
Rotate
- English name
ROTATE- Aliases
RO- 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.modify.rotate operation.
Prompts
Select objects:Select objects:Specify base point or [Displacement] <Displacement>:Specify rotation angle or [Copy/Reference] <0>:
Options
| Letter | Option |
|---|---|
| D | Displacement |
| C | Copy |
| R | Reference |
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):
L- Enter
0,090
MCP
JSON
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "ROTATE",
"inputs": [
"L",
"",
"0,0",
"90"
]
},
"name": "badbit_run_command"
}
}Python
Python
import badbit
result = badbit.suite.command.run(command="ROTATE", inputs=["L", "", "0,0", "90"])LISP
LISP
(badbit-call "suite.command.run" '(("command" . "ROTATE") ("inputs" . ("L" "" "0,0" "90"))))JSON-RPC
JSON
{
"id": 1,
"jsonrpc": "2.0",
"method": "badbit/call",
"params": {
"arguments": {
"command": "ROTATE",
"inputs": [
"L",
"",
"0,0",
"90"
]
},
"operation": "suite.command.run"
}
}