BadBit CAD · Commands
COPY
Copy
- English name
COPY- Aliases
COCP- 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.copy operation.
Prompts
Select objects:Select objects:Specify base point or [Displacement/mOde] <Displacement>:Specify second point or [Array] <use first point as displacement>:Specify second point or [Array/Exit/Undo] <Exit>:
Options
| Letter | Option |
|---|---|
| D | Displacement |
| A | Array |
| E | Exit |
| U | Undo |
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,010,0- Enter
MCP
JSON
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "COPY",
"inputs": [
"L",
"",
"0,0",
"10,0",
""
]
},
"name": "badbit_run_command"
}
}Python
Python
import badbit
result = badbit.suite.command.run(command="COPY", inputs=["L", "", "0,0", "10,0", ""])LISP
LISP
(badbit-call "suite.command.run" '(("command" . "COPY") ("inputs" . ("L" "" "0,0" "10,0" ""))))JSON-RPC
JSON
{
"id": 1,
"jsonrpc": "2.0",
"method": "badbit/call",
"params": {
"arguments": {
"command": "COPY",
"inputs": [
"L",
"",
"0,0",
"10,0",
""
]
},
"operation": "suite.command.run"
}
}