Saltar al contenido
BadBit Documentación
Iniciar sesión Descargar la beta

Operaciones de BadBit CAD

cad.quick_properties.list

Muestra las filas de las Propiedades rápidas por tipo de objeto (CUI).

  • Programa: BadBit CAD
  • Tipo de acción: Lee el dibujo
  • Solo lectura
  • Desde la versión 2027.0.0-beta.8

Devuelve, para cada tipo (o solo los types), las filas que muestran las Propiedades rápidas, las que se pueden elegir (las de la paleta Propiedades para ese tipo) y si la persona las personalizó, como la parte Propiedades rápidas del CUI. Solo lectura.

Parámetros

NombreTipoObligatorioDescripción
typesarray<string> | nullNoSolo objetos de estos tipos (line, polyline, circle, arc, point, text, mtext, insert, hatch, dimension…).

Errores

CódigoJSON-RPCQué significa
invalid_params-32602Los parámetros no siguen el esquema o una regla de la operación.
not_found-32001El objeto, la operación, el archivo o el nombre no existe.
permission_denied-32002La petición no se acepta (el detalle dice por qué).
conflict-32004El estado actual no lo permite ahora.

Ejemplo

MCP

JSON
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "arguments": {},
      "operation": "cad.quick_properties.list"
    },
    "name": "badbit_call_operation"
  }
}

Python

Python
import badbit

result = badbit.cad.quick_properties.list()

LISP

LISP
(badbit-call "cad.quick_properties.list")

JSON-RPC

JSON
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "badbit/call",
  "params": {
    "arguments": {},
    "operation": "cad.quick_properties.list"
  }
}

Esquema completo

JSON Schema 2020-12, con las descripciones en inglés.

Parámetros (entrada)
JSON
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "types": {
      "default": null,
      "description": "Only objects of these types (line, polyline, circle, arc, point, text, mtext, insert, hatch, dimension…).",
      "items": {
        "type": "string"
      },
      "maxItems": 64,
      "minItems": 1,
      "type": [
        "array",
        "null"
      ]
    }
  },
  "type": "object"
}
Resultado (salida)
JSON
{
  "$defs": {
    "QuickPropertiesRow": {
      "properties": {
        "label": {
          "description": "The name, in English.",
          "type": "string"
        },
        "row_id": {
          "description": "The identifier of the Quick Properties row.",
          "type": "string"
        }
      },
      "required": [
        "row_id",
        "label"
      ],
      "type": "object"
    },
    "QuickPropertiesType": {
      "properties": {
        "customized": {
          "description": "The type has the person's choice (otherwise, the AutoCAD default rows).",
          "type": "boolean"
        },
        "possible_rows": {
          "description": "The rows that can be chosen for the type.",
          "items": {
            "$ref": "#/$defs/QuickPropertiesRow"
          },
          "type": "array"
        },
        "shown_rows": {
          "description": "The rows shown, in order (the identifiers).",
          "items": {
            "$ref": "#/$defs/QuickPropertiesRow"
          },
          "type": "array"
        },
        "type": {
          "description": "Object type: line, polyline, circle, arc, point or text to create; in results also mtext, ellipse, spline, insert, hatch, dimension and others.",
          "type": "string"
        }
      },
      "required": [
        "type",
        "shown_rows",
        "possible_rows",
        "customized"
      ],
      "type": "object"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "types": {
      "description": "Only objects of these types (line, polyline, circle, arc, point, text, mtext, insert, hatch, dimension…).",
      "items": {
        "$ref": "#/$defs/QuickPropertiesType"
      },
      "type": "array"
    }
  },
  "required": [
    "types"
  ],
  "type": "object"
}
Buscar en la documentación