ConstructCraft

Structure tab by material (sub-project 2a)

Part of the Structure tab redesign (concrete, steel, timber). Sub-project 1, the parametric profile library, is merged (#313). This sub-project, 2a, splits the Structure tab by material and adds a multi-storey grid frame. Sub-project 2b, the parametric steel building (portal frames, purlins and girts), follows with its own spec and uses a host element that owns real members.

Goals

Out of scope:

Material of a type

cc_core:

Engine: structural_type_for

structural_type_for { category: "column" | "beam", material } is an edit command. It returns { id, name, created }.

Engine: grid_frame_create

An edit command with these parameters:

What it creates:

Limits and errors:

The command returns { columns, beams, secondary, skipped, skipped_bays }. columns, beams and secondary are lists of ids; skipped and skipped_bays are counts.

App

State:

Ribbon (ribbon::structure_tab):

Tools:

Grid frame dialog:

All interface text is new i18n keys in the 12 languages.

Testing

Engine (crates/cc_engine/tests/structure_materials.rs, declared in tests/main.rs):

App (ui_tests.rs):

Also: