Pular para o conteúdo
BadBit Documentação
Entrar Baixar o beta

Operações da suíte

suite.input.entity

Pede que a pessoa escolha um objeto com um clique, como o entsel do LISP.

  • Programa: Todos os programas
  • Tipo de ação: Lê o desenho
  • Só leitura
  • Desde a versão 2027.0.0-beta.6

Devolve o identificador do objeto e o ponto do clique; o clique no vazio devolve o identificador vazio. Esc cancela o pedido.

Parâmetros

NomeTipoObrigatórioDescrição
messagestring | nullNãoA pergunta mostrada na linha de comando.

Erros

CódigoJSON-RPCO que significa
cancelled-32012Cancelado (Esc, desconexão ou fechamento).
busy-32006O BadBit está abrindo ou salvando um arquivo; tente de novo daqui a pouco.

Exemplo

MCP

JSON
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "arguments": {
        "message": "Select a line:"
      },
      "operation": "suite.input.entity"
    },
    "name": "badbit_call_operation"
  }
}

Python

Python
import badbit

result = badbit.suite.input.entity(message="Select a line:")

LISP

LISP
(badbit-call "suite.input.entity" '(("message" . "Select a line:")))

JSON-RPC

JSON
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "badbit/call",
  "params": {
    "arguments": {
      "message": "Select a line:"
    },
    "operation": "suite.input.entity"
  }
}

Esquema completo

JSON Schema 2020-12, com as descrições em inglês.

Parâmetros (entrada)
JSON
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "message": {
      "default": null,
      "description": "The question shown on the command line.",
      "maxLength": 500,
      "type": [
        "string",
        "null"
      ]
    }
  },
  "type": "object"
}
Resultado (saída)
JSON
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "id": {
      "description": "Object identifier (32 hexadecimal digits), or command identifier in the command list.",
      "type": [
        "string",
        "null"
      ]
    },
    "location": {
      "description": "The point [x, y, z].",
      "items": {
        "format": "double",
        "type": "number"
      },
      "maxItems": 3,
      "minItems": 3,
      "type": [
        "array",
        "null"
      ]
    }
  },
  "required": [
    "id",
    "location"
  ],
  "type": "object"
}
Buscar na documentação