Skip to content
BadBit Documentation
Sign in Download the beta

BadBit CAD · Commands

MIRROR

Mirror

English name
MIRROR
Aliases
MI
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.mirror operation.

Prompts

  1. Select objects:
  2. Select objects:
  3. Specify first point of mirror line:
  4. Specify second point of mirror line:
  5. Erase source objects? [Yes/No] <No>:

Options

LetterOption
YYes
NNo

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):

  1. L
  2. Enter
  3. 0,0
  4. 0,10
  5. N

MCP

JSON
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "command": "MIRROR",
      "inputs": [
        "L",
        "",
        "0,0",
        "0,10",
        "N"
      ]
    },
    "name": "badbit_run_command"
  }
}

Python

Python
import badbit

result = badbit.suite.command.run(command="MIRROR", inputs=["L", "", "0,0", "0,10", "N"])

LISP

LISP
(badbit-call "suite.command.run" '(("command" . "MIRROR") ("inputs" . ("L" "" "0,0" "0,10" "N"))))

JSON-RPC

JSON
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "badbit/call",
  "params": {
    "arguments": {
      "command": "MIRROR",
      "inputs": [
        "L",
        "",
        "0,0",
        "0,10",
        "N"
      ]
    },
    "operation": "suite.command.run"
  }
}

In the user guide

Search the documentation