Set Entity Properties
entity_set_propertiesChange layer, color, linetype, lineweight, or visibility of an existing drawing entity by specifying its handle.
Instructions
Change one or more properties of an entity (layer, color, linetype, lineweight, visibility).
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": {
"handle": "<handle>"
},
"name": "entity_set_properties"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | New ACI color (256=ByLayer, 0=ByBlock, 1-255=specific) | |
| layer | No | New layer name | |
| handle | Yes | Entity handle | |
| visible | No | Set entity visibility | |
| linetype | No | New linetype name (e.g. 'DASHED', 'CENTER', 'ByLayer') | |
| lineweight | No | Lineweight in 0.01mm units (-3=ByLayer, -2=ByBlock) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||