feature_thread
Adds cosmetic or modeled threads to cylindrical faces like bolts, shafts, and tapped holes; detects hole walls versus shafts and recommends a thread designation from diameter.
Instructions
Add a cosmetic (default) or modeled thread to cylindrical faces - bolts, shafts, tapped holes made earlier.
Hole wall vs shaft is detected from the face orientation (override with internal).
Without designation Fusion recommends one from the cylinder diameter (a 10 mm shaft
-> M10x1.5 class 6g) and the result says which; without thread_class the first class
offered for the designation is used. Strings (type, designation, class) are Fusion's
own names - list them with feature_thread_options. Units: length/offset in units
(default mm).
Errors: a planar or conical face, faces mixing holes and shafts, an unknown type/designation/class (details.available lists valid ones), length with full_length=true -> INVALID_PARAMS (nothing changed); a thread Fusion computes with an error -> FUSION_API_ERROR and the timeline is rolled back.
Returns {"feature": {ref, type, name}, "health": {"state", "message"}, "created_bodies": [], "modified_bodies": [...] (modeled threads), "removed_bodies": [], "thread": {"type", "designation", "class", "internal", "modeled"}}.
Examples:
feature_thread(faces=[])
feature_thread(faces=[], designation="M8x1.25", modeled=true, full_length=false, length=12)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| faces | Yes | Cylindrical face refs (inspect_query): hole walls or shafts | |
| units | No | Unit of plain-number lengths and points | mm |
| length | No | Thread length; needs full_length=false | |
| offset | No | Distance of the thread from its end; full_length=false | |
| modeled | No | Real thread geometry instead of cosmetic (default false) | |
| internal | No | Override hole (true) / shaft (false); default: from the face | |
| location | No | End the thread starts from: high or low | high |
| designation | No | e.g. 'M6x1'; omitted = recommended from diameter | |
| full_length | No | Thread the whole face | |
| thread_type | No | Fusion thread type (feature_thread_options) | ISO Metric profile |
| thread_class | No | e.g. '6H' / '6g'; omitted = first offered class |