> For the complete documentation index, see [llms.txt](https://docs.openbrim.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openbrim.org/quick-guides/design-results-from-the-spreadsheet.md). Agents can also search and read this documentation through its [MCP server](https://docs.openbrim.org/~gitbook/mcp).

# Design Results

Code checks are designed **a row at a time**, and their results read three ways without opening a report: as a **cell** in a results sheet, as a **colour** on the 3D model, and as a **value chip** on each painted member. They are read under **FEA › Results › Design**, beside the analysis results. The traditional **Design** button (whole project) still works and fills the same cells and paint.

{% hint style="info" %}
This works for any object type whose library definition declares result columns (in the building library today: column, beam, wall and punching code checks, slab strips and slab rebar zones; in the bridge library: the steel I girder, cross frame, internal cross frame and lateral bracing code checks). Nothing is specific to D/C — a type declares which of its results are shown and how.
{% endhint %}

## 1. Run the analysis first

Design reads analysis results, so run **Analyze** (or accept the previous results after a reload) before designing. If design cannot run yet, a notice says why instead of running:

* *"The analysis results are not loaded - an edit unloads them. Use the analysis button (Analyze, or View FEA when stored results were found) > Use Previous Analysis Results, in the 3D view alone or the FEA view, or run the analysis again, then design."* The analysis button is on the card at the top left of the 3D view and the FEA view; it is not shown while the 2D plan is on screen.
* *"The compiled model is waiting to be loaded. Click Load Model (in the 3D view alone or the FEA view), then design."*
* *"The compiled model is loading. Wait for it to finish, then design."* or *"The model is not compiled yet."*: design runs once the compile is done.
* *"The model is compiling after an edit. Wait for it to finish, then design."* An edit is compiled a few seconds after it is made; a design started before that would read the model as it was.
* *"Compiling is on hold with edits pending. Release the hold, then design."*
* *"The analysis results are being loaded onto the recompiled model. Try again in a moment."* or *"The analysis results could not be loaded onto the recompiled model ... Run the analysis again, then design."*: after an edit the analysis does not see, the results are put back on the new model.
* *"The model did not compile. Fix what the compile reported, then design."* (or *"... some inputs failed validation. Fix them, then design."*)
* *"There are no analysis results. Run the analysis first, then design."*
* *"The analysis results are out of date. Run the analysis again, then design."*

The check is never started for you. An edit to a check row, its template, a slab strip or a slab rebar zone does **not** invalidate the analysis; an edit to the structure (a column size, a load) does. Either way, **every** designed row is then marked as not current, not only the rows the edit touches: which results an edit reaches is not tracked. Design the rows again to bring them back.

## 2. Find the results: FEA › Results › Design

Open the **FEA** panel and pick **Results › Design** in its tree. The panes work like a result table's:

* The middle pane, **Code checks**, lists every code-check type of the project that has result columns, with how many checks it has and how many fail or are not current: *Cross Frame — 6 · 6 fail*. Deactivated checks are left out and counted (*948 deactivated*). Each type opens to its columns: **D/C**, **Flexure D/C**, **Shear D/C**, …
* **Click** a type to show it: its checks in the sheet on the right, painted on the model by its first column (the **D/C** of a code check). Click one of its columns to paint by that column instead.
* **Tick** several types (or columns) to show them together, as result cases are compared: their rows in one sheet, with a **Code check** column, and one paint on one legend. A type is painted by one column at a time, so ticking another column of the same type replaces the first. The box beside the pane's title clears the ticks.
* The first time Design is opened, the first type with active checks is shown.

The sheet shows **Name**, the **Code check** (when several types are shown), every result column of the shown types, and **Status**: the check's own words for its result (*fails at shear (6.10.9.1-1)*). The code-check sheets themselves (e.g. **Superstructure Code Checks → Steel I Girder Code Check**) hold only the inputs.

**What the columns mean, per type:**

* **Cross frames** (and internal cross frames and lateral bracing): **D/C**, **Axial D/C**, **Slenderness D/C** and **Fatigue D/C**. Each is the worst value over the frame's members (struts and diagonals) of the D/Cs the summary report prints per member: axial resistance in compression and tension, limiting slenderness, and fatigue. **D/C** is the largest of them, and also counts the stability bracing check when it is requested. A frame whose stability bracing was requested but found no DC1 moment fails with that reason, as its report says.
* **Steel I girder checks**: **D/C**, **Flexure D/C**, **Shear D/C**, **Service D/C** and **Fatigue D/C** for each check station. Each is the worst of the D/Cs the girder summary report prints for that station: a constructibility check has flexure and shear only (its service and fatigue columns read 0); an in-service check adds service and fatigue, and where Appendix A6 applies its flange D/Cs replace the 6.10 ones, as in the summary. A station also fails on the pass/fail criteria the summary prints (cross-section proportions, minimum deck reinforcement) whatever its number. PennDOT state checks are not counted.
* **Slab design** has two types, and only one of them is a check. **Slab Strip Results** — what each design strip needs: **Required Top Steel**, **Required Bottom Steel**, **Top Design Moment**, **Bottom Design Moment** and **Shear**, each the largest value along the strip; a strip takes no bars and has no D/C. **Slab Rebar Zones** — the check: **D/C**, **Top D/C**, **Bottom D/C**, **Required Top Steel** and **Required Bottom Steel**. Designing a zone designs the strips it reads with it.
* **Building checks**: **D/C**, **Axial D/C**, **Shear D/C**, … for a column or wall; **D/C**, **Flexure D/C**, **Shear D/C**, **Torsion D/C** for a beam.

## 3. Design rows

1. In the Design sheet, right-click a row (or a selection of rows) → **Design** / **Design N Rows**. Only those rows are extracted and designed — a few rows take about a second; the whole project is the traditional cost. A column header's **Design all N rows** designs every check of the code checks shown. The same **Design** stays on the rows of the code-check sheets.
2. The cells fill as each row finishes. A cell reads:
   * a **number** — designed on the current analysis and current inputs (red when over the limit, with a *fail* tag when the check fails);
   * a grey italic number with a **stale** tag — it was designed, but the model, the analysis or the OpenBrIM version changed since (after an update every stored result reads stale until designed again); design it again to refresh it. A **no analysis** tag means no analysis is loaded. A **compiling** tag means an edit is being compiled; the number is current again afterwards if the edit did not change it. **Not compiled** means an edit waits for a compile (compiling on hold, a model waiting for Load Model, or a compile that was stopped or failed);
   * *run analysis* / *run design* — nothing to show yet.
3. **Open Detailed Report** on a row opens that check's own report (designs it first if needed).

The **column header** menu of a result column offers **Design all N rows**, **Design the M rows that are not current** and **Paint 3D by \<column>**.

## 4. The paint

What is shown under **Design** is painted on the model. In the FEA view the FE mesh is hidden while Design is open, and the painted members are drawn in their colours with the rest of the model faded around them. Leaving Design takes the paint down and gives the FEA view back. **Clear 3D Paint** on a row's menu removes it while Design is open.

When several code checks are shown together their columns share one scale. Columns with different limits (a D/C and a required steel area) have no common pass/fail edge, so the scale is a plain gradient; each check is still judged by its own limit: over it, it is red, and its hover card says so.

* Each member a check is about is coloured on its value, on a scale whose limit is an **edge** of the palette (green … orange below the limit, red above it). A check that **fails something its number does not measure** (its D/C is under the limit) is **purple**, a colour that is not on the scale, and the legend says so: *fails another requirement, hover for which*. A failure with no number at all (a rebar zone with no bar) is purple too. Members without a current value are grey, and the legend says how many checks are current: *"D/C - 12 of 95 current"*.
* A **cross frame** is coloured whole, by its worst member: one colour and one chip per frame, so the bridge reads frame by frame (the frames near a skewed support, the frames at a pier). Which member governs is in the hover card of a failing frame and in its detailed report.
* A **steel I girder check** is drawn as a **slice of its girder** at the station it checks: the girder's own cross-section there, coloured by its value, about one girder depth long, its number on top. The checks of a girder read as coloured bands along it. The station is where the check reads its forces, so the slice sits where the girder's force diagram has that station, on a curved girder too. Two checks at one place (before and after a section change) show the worse.
* A **slab strip** is drawn as a **diagram along the strip**: a line on the slab coloured by the value at each design station, with the value standing up from it as a ribbon. The two strip directions stay separate lines.
* A **slab rebar zone** is drawn as a **patch on the slab**, filled in the colour of its value. Where two zones overlap — the two bar directions over one column — a failing zone shows over a passing one, and otherwise the larger value. Hover it for the reason. A uniform mat has no patch of its own; it colours the slab.
* **Value chips** print the number on each painted member (at each strip's governing station, inside each zone's patch). Over-limit values are red, failures under the limit purple, stale ones italic. Where chips would overlap, the worst values win; zoom in to see the rest. **Values in 3D** on a row's menu toggles them.
* **Hover** a painted member to read its result: *"D/C = 5.571 fails at Bottom Strut 1 (axial compression)"* and its other columns. On a strip's diagram the plate gives the value at the station under the pointer and the strip's largest value; on a zone's patch it gives that zone's results.
* **Click** a painted member, diagram or patch to open its detailed report.
* Selecting a row in the sheet highlights it in 3D (a ring on a column; the strip's band or the zone's outline on a slab; the girder a girder check is on).

## 5. Export

The project's Excel export carries the code checks' result columns: a current value as a number, a stale one as *"\<value> (stale)"*, an undesigned cell blank.

## 6. From an AI agent

The desktop app's MCP tools cover the same flow: `design_objects` (design the given rows), `get_design_results` (read every result column of the given rows with its state), and `paint_design_results` (paint by a column, `values` for the chips, `clear: true` to remove). The same actions are available to any RunAction client as `RunDesignFor`, `GetUnitResults`, `PaintUnitResults` and `ClearResultPaint`.

## For library authors

A result column is a `<O T="DesignResult">` in the row type. It is written like a parameter — `N` is the column, `D` the header, `V` the number — and it is not one: nothing is materialised on the instance, saved, or evaluated at compile time. Every path is relative to the design object.

```xml
<O N="DesignResults" T="Group">
    <O T="DesignResult" N="cc_dc" D="D/C" V="RCCC.GoverningDCRatio" Limit="1"
       Pass="RCCC.PassFailResult" Obj="ccColumn" Report="RCCC.ColumnDesRep" />
</O>
```

* `V` — the path (through the row's `T="DesignRun"` object) to the number the cell shows.
* `Limit` — the pass/fail edge of the paint scale; `D` — the column title. (`Category` is no longer used: the results sheet has no tabs.)
* `Pass` — the calculator's own 1/0 verdict: 0 marks the cell, chip and hover as **fail** whatever the number is; under the limit the member is painted purple. `Valid` / `Status` — a 1/0 "the check ran" flag and the text to show when it did not (a strip with design strips off is *failed: NOT CHECKED …*, not a green 0). `Fail` — a 1/0 flag read when `Valid` is 0: 1 says the missing number is itself the failure (demand and no bar), so the paint draws the member purple instead of leaving it grey.
* `Obj` — what the row is about, i.e. what is painted and highlighted (`ccColumn`, `ccWallSegment.LinkedSW`, `ccSlab.sl_slabpieces`). `Unit` — the design object when the row is not it.
* `Report` — the Document opened by *Open Detailed Report* and by a click on the paint.
* For a result **along a line** (a slab strip): `Field` (the per-station values), `Points` (their \[x,y] positions, in order along the line), `Mask` (1/0 per station), `Layer` (a key such as the strip direction) and `Width` (the band width drawn when the row is selected).
* For a result at **positions along an FE composite** (a girder check reads its forces at positions along the girder's composite): `Along`, the path to that composite or to its name. `Points` are then the positions, and each value stands where the composite's force diagram puts it. One position per row draws the target's cross-section slice there (the girder check).
* For a result that belongs to a **patch** of the object it is drawn on (a slab rebar zone): `Region`, the path to a plan polygon. An empty region colours `Obj` whole.
* `Needs` — the objects whose analysis results this result reads besides the row's own (a rebar zone reads its slab's design strips). Designing the row designs those with it, and a change to one of them makes the row stale. Point both `Needs` and `Region` at **exported** parameters: they are read for every row that is designed, and a parameter that is not exported makes the reader build the row's whole library definition first.

See `docs/plans/on-demand-design-results.md` in the platform repository for the design notes.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.openbrim.org/quick-guides/design-results-from-the-spreadsheet.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
