Operações do BadBit CAD
cad.quick_properties.list
Mostra as linhas das Propriedades rápidas por tipo de objeto (CUI).
- Programa: BadBit CAD
- Tipo de ação: Lê o desenho
- Só leitura
- Desde a versão 2027.0.0-beta.8
Devolve, para cada tipo (ou só os types), as linhas que as Propriedades rápidas mostram, as que podem ser escolhidas (as da paleta Propriedades para esse tipo) e se a pessoa personalizou, como a parte Propriedades rápidas do CUI. Só leitura.
Parâmetros
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
types | array<string> | null | Não | Só objetos destes tipos (line, polyline, circle, arc, point, text, mtext, insert, hatch, dimension…). |
Erros
| Código | JSON-RPC | O que significa |
|---|---|---|
invalid_params | -32602 | Os parâmetros não seguem o esquema ou uma regra da operação. |
not_found | -32001 | O objeto, a operação, o arquivo ou o nome não existe. |
permission_denied | -32002 | O pedido não é aceito (o detalhe diz por quê). |
conflict | -32004 | O estado atual não permite isso agora. |
Exemplo
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, com as descrições em 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 (saída)
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"
}