sheet_metal_assign_rule
Assign a sheet metal rule as the active rule for a component or root, copying library rules into the design so the component uses the correct sheet metal parameters.
Instructions
Make a rule the active sheet metal rule of a component (default: root).
A library rule is first copied into the design (the design never references the
library). Fusion may refuse a rule on a component without sheet metal data
(FUSION_API_ERROR) - then pass rule to the first flange tool instead. On error the
previous rule is restored and a copy made by the call is deleted.
Returns {"component", "rule": , "previous": name | null, "copied_from_library": bool}.
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": {
"rule": "<rule>"
},
"name": "sheet_metal_assign_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | Rule name | |
| source | No | Where to look for `rule`: design, library or all (design first) | all |
| component | No | Component or occurrence ref; default: the root component |