Set Custom Property
set_custom_propertyCreate or overwrite a text custom property on the active SolidWorks document so title blocks and BOMs read the correct PartNo, Description, or DrawnBy value.
Instructions
Create or overwrite one text custom property on the active document, e.g. PartNo or DrawnBy.
Use it to fill what a title block or BOM reads. The value is read back, so
success means it was stored. Needs: an open, active document. Changes: writes
the property, replacing one of the same name (save the file to keep it).
Returns: data with name, value, resolved and configuration.
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": {
"input_data": "<input_data>"
},
"name": "set_custom_property"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The property. `name` and `value` (text, or a link such as $PRP:"SW-Mass") are required; `configuration` defaults to file-level. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||