BadBit CAD operations
cad.quick_properties.list
Shows the Quick Properties rows by object type (CUI).
- Program: BadBit CAD
- Type of action: Reads the drawing
- Read only
- Since version 2027.0.0-beta.8
Returns, for each type (or only the types), the rows Quick Properties shows, the ones that can be chosen (those of the Properties palette for that type) and whether the person customized it, like the Quick Properties part of CUI. Read only.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
types | array<string> | null | No | Only objects of these types (line, polyline, circle, arc, point, text, mtext, insert, hatch, dimension…). |
Errors
| Code | JSON-RPC | Meaning |
|---|---|---|
invalid_params | -32602 | The parameters do not follow the schema or a rule of the operation. |
not_found | -32001 | The object, operation, file or name does not exist. |
permission_denied | -32002 | The request is not accepted (the detail says why). |
conflict | -32004 | The current state does not allow this now. |
Example
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"
}
}Full schema
JSON Schema 2020-12.
Parameters (input)
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"
}Result (output)
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"
}