Set Body Color
set_colorAssign a flat RGB color and optional opacity to a CAD body so you can visually distinguish parts before rendering.
Instructions
Assign a flat RGB color to a body (creates/reuses a design-local appearance). Useful for visually distinguishing parts before render_view. Unless a parameter says otherwise, lengths and coordinates are in cm (not mm) and angles in degrees.
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": {
"body_name": "<body_name>",
"red": "<red>",
"green": "<green>",
"blue": "<blue>"
},
"name": "set_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| red | Yes | ||
| blue | Yes | ||
| green | Yes | ||
| opacity | No | 1.0 = opaque, 0.0 = invisible | |
| body_name | Yes | Body name |