visualize_structure
Overlay a live structural analysis in every Rhino viewport to show deformed shapes, supports, loads and PASS/FAIL, so you can iteratively fix red members while designing.
Instructions
Run a live structural analysis on a line model and SHOW it in every Rhino viewport: the undeformed wireframe, the exaggerated deformed shape coloured blue -> red by displacement (or by utilization), supports, load arrows and a legend panel with max deflection, the L/limit check and PASS/FAIL. Nothing is baked into the document.
Use it to make structural behaviour visible while designing: model the structural axes as curves, include Rhino point objects at the supports, call this tool, then fix the members it shows in red (add a column, shorten a cantilever, upsize the section via beam_diameter_mm) and call it again. validate_structure gives the auditable verdict; this tool is the visual, iterative view of the same solve.
Args: guids: Curve GUIDs of the structural axes plus point GUIDs marking supports (see fixed_supports). Without points, the lowest nodes are supported. load_kn: Total imposed load in kN, shared equally by the free nodes (-Z). material: "Steel", "S355", "Concrete", "Wood", "Aluminium". beam_diameter_mm, beam_wall_mm: circular hollow section for every member (default: inferred / CHS 114.3x4). self_weight: include gravity. fixed_supports: True = fully fixed supports, False = pinned (rotations free). deflection_limit_ratio: span/ratio limit, e.g. 250 for L/250. Default: the design code's limit (Eurocode profile: 250). span_m: reference span in meters for the limit (default: longest member). Set it when members are split at every node, e.g. a 6.2 m joist drawn as two 3.1 m segments. color_by: "displacement" or "utilization". scale: deformation exaggeration; omit for automatic (~6% of span). reveal: 0..1 fraction of members drawn (for staged construction playback). reanalyze: False re-uses the last solve and only changes the display (scale / color_by / reveal / physics / title) - cheap enough to animate. physics: False draws the same members as plain geometry with no analysis overlay ("physics off"), for before/after comparisons. display_guids: draw only these members (e.g. one frame line for a section view); the analysis still covers every member in guids. title: legend title. clear: remove the overlay. engine: "auto" (default: Almond's native frame solver, no Karamba needed; Karamba when the selection has shells or the bridge cannot export a model), "native" or "karamba". asset_loads, scene_id: add the loads of placed library assets (native engine), as in validate_structure; loaded points are drawn with load arrows. floor_load_kn_m2, floor_dead_kn_m2: floor area loads on every enclosed bay, as in validate_structure. design_basis, uls_combination, design_code: as in validate_structure; the overlay draws the SLS deflected shape coloured by the ULS utilization envelope. connections: "rigid" or "simple", as in validate_structure; pinned ends are drawn as small circles. stability: "auto" or "off", as in validate_structure. view: "deflection" (default) or "buckling": draw the first buckling mode of the governing ULS combination with its alpha_cr (STABLE >= 10, SWAY-SENSITIVE 1-10, UNSTABLE <= 1) instead of the deflected shape. structure_type: as in validate_structure (sets the reference span; storey drift is checked for every type except "truss"). With the same inputs the overlay's PASS/FAIL is validate_structure's native verdict.
Returns JSON: status ("pass"|"fail"|"indicative"|"error"|"cleared"), max_deflection_mm (native: each member's deflection relative to its supports, the value checked against deflection_limit_mm, as in validate_structure), max_displacement_mm (absolute, incl. column shortening and sway; it scales the drawing), storey_drift, failures, class4_members, span_m, max_utilization, scale, per-element {source_guids, max_displacement_mm, utilization}, warnings. The native engine reports analysis_method "native"; engine="karamba" (BETA) needs Karamba3D 3.1 (the trial caps models at 20 beam elements).
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": "visualize_structure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | deflection | |
| clear | No | ||
| guids | No | ||
| scale | No | ||
| title | No | ||
| engine | No | auto | |
| reveal | No | ||
| span_m | No | ||
| load_kn | No | ||
| physics | No | ||
| color_by | No | displacement | |
| material | No | Steel | |
| scene_id | No | ||
| reanalyze | No | ||
| stability | No | auto | |
| asset_loads | No | ||
| connections | No | rigid | |
| design_code | No | eurocode | |
| fabrication | No | cold_formed | |
| self_weight | No | ||
| beam_wall_mm | No | ||
| design_basis | No | en1990 | |
| display_guids | No | ||
| fixed_supports | No | ||
| structure_type | No | beam | |
| uls_combination | No | ||
| beam_diameter_mm | No | ||
| floor_dead_kn_m2 | No | ||
| floor_load_kn_m2 | No | ||
| lateral_restraint | No | joints | |
| deflection_limit_ratio | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |