get_color
Read the RGB color and transparency of the active SOLIDWORKS part or selected assembly components, and identify whether each color is set in the assembly or inherited from the part file.
Instructions
Read the colour (rgb 0 to 255) and transparency of the active part, or of components of the active assembly (all parts when none are named). For a component it also says whether the colour is set in the assembly or comes from the part file. Read-only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| component | No | In an assembly: one component, instead of the list | |
| components | No | In an assembly: the components to read (default: every part) |