object_set_properties
Update one CAD object's layer, color, linetype, or visibility while leaving other properties unchanged; use it to style entities, not to move, rotate, or scale them.
Instructions
Update selected properties of one object—layer, color, linetype, or visibility—while leaving unspecified properties unchanged.
Side-effects: Modifies entity visual properties. Disambiguation: Use to style entities; for spatial changes use object_move, object_rotate, or object_scale.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"object_id": "<object_id>"
},
"name": "object_set_properties"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | AutoCAD Color Index (ACI 0-256; 0=ByBlock, 256=ByLayer) | |
| layer | No | Target layer name. Layer must exist | |
| visible | No | Entity visibility flag (True=visible, False=hidden) | |
| linetype | No | Linetype name to assign (e.g. 'Continuous', 'DASHED') | |
| object_id | Yes | Backend entity identifier or persistent CAD handle |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||