Create turnout
create_turnoutCreates the branch of a turnout as one IfcAlignment (IFC4X3) positioned by the stem (IfcRelPositions) and answers with the effect report; dry_run previews it, nothing written. With it, in the same revision, the turnout panel: one IfcElementAssembly TURNOUTPANEL at WA in ContainedInStructure (an IfcRailwayPart you name), positioned by stem and branch, no body, no parts; Moddl_Weiche holds the base form. radius_m, ratio_n and straight_m name the base form: from WA the branch leaves the stem tangent, an arc of radius_m until it stands at 1:n, then straight_m to WE; WM lies t = R tan(a/2) after WA, WE t + s after WM on both tracks, stations along the stem axis. On a stem of one circular arc from WA to WE the base form is bent (rule turnout_curvature_added: the stem curvature added to each row, lengths kept; deviation_m against the base ordinates square to the stem). Art EW, IBW or ABW is measured, the gradient taken from the stem (turnout_gradient_from_stem). moddl takes no catalogue: a stem with a transition, a change of radius, a cant or off one gradient from WA to WE is refused. The report's alignment.turnout: WA, WM, WE as stations, the frog where the running edges cross (with gauge_m; its crossing 1:n' beside the end 1:n), the junction gap and kink read back from the file (0). Tracks: create_track up to WA and from WE; the four rails WA-WE: create_track parts ['rails'] on stem and branch. Frog, blades, stock and check rails are not built. New revision, effect report. A call that succeeds is not a job that's done.
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": {
"turnout": "<turnout>",
"ContainedInStructure": "<ContainedInStructure>"
},
"name": "create_turnout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Your note, stored with the new revision | |
| source | No | Where the values you write come from: assumption (default, your own estimate, stamped in the file) or user (only what the person named word for word; it then reads as the file does) | |
| dry_run | No | Preview: the planned effect, nothing written | |
| turnout | Yes | The turnout: stem, WA and the base form | |
| attributes | No | Attributes of the branch | |
| request_id | No | Your id for this call: a repeat answers the first result and writes nothing | |
| ContainedInStructure | Yes | The IfcRailwayPart the panel stands in, Name or GlobalId |