Create Thread
create_threadAdds cosmetic or modeled threads to a cylindrical face, rejecting thread designations that don't match the face diameter unless resizing is explicitly allowed.
Instructions
Add threads to a cylindrical face (cosmetic or modeled). Fusion sizes the body to the designation's diameter, so a designation that does not match the face is refused (M6x1 on a 20 mm shaft would leave a 6 mm one); allow_resize=true accepts that. The result reports face_diameter_cm, measured before the feature runs, and thread_diameter_cm.
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>",
"face_index": "<face_index>"
},
"name": "create_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body_name | Yes | ||
| face_index | Yes | Index of the cylindrical face | |
| is_modeled | No | True = physical geometry, False = cosmetic | |
| is_internal | No | True for internal (nut) threads | |
| thread_type | No | Thread standard (e.g. 'ISO Metric profile', 'ANSI Unified Screw Threads') | ISO Metric profile |
| allow_resize | No | Fusion sizes the body to the thread's diameter, so a designation that does not match the face is refused by default. Set this true to accept the body being resized; face_diameter_cm is measured before the feature runs. | |
| thread_class | No | Thread class. For an ISO metric thread the default is 6H when internal and 6g when external, which is what ISO 965 assigns; pass it explicitly for another thread standard. | |
| thread_length | No | Thread length in cm (only if is_full_length=false) | |
| is_full_length | No | Thread entire cylinder length | |
| thread_designation | No | Size designation (e.g. 'M10x1.5') | M10x1.5 |