set_custom_properties
Set or delete custom properties on the active SOLIDWORKS part, assembly, or drawing—file-level by default or for a named configuration—and read back typed and resolved values.
Instructions
Set or delete custom properties of the active document (part, assembly or drawing): properties gives name -> text (a number is written as its text; the result says so), delete lists names to remove. They go on the file itself unless configuration names one of its configurations. A value can link to another property, e.g. '"SW-Mass@Bracket.SLDPRT"'. Every property touched is read back: value as typed and resolved value. Nothing changes if any input is refused.
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": "set_custom_properties"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delete | No | Names of properties to remove | |
| properties | No | Name -> value to set, e.g. {"PartNo": "BR-104", "Description": "Bracket"} | |
| configuration | No | A configuration of the part or assembly (default: the file's own properties) |