Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@ jobs:
run: npm install --no-save playwright@1.56.1 && npx playwright install --with-deps chromium
- name: Open every page and list what it shows
run: node translations/tools/crawl_app.js
- name: Requirement file gives the Builder's own check result
run: node translations/tools/reqfile_parity.js && node translations/tools/reqfile_parity.js --no-function-column
- name: Dictionary, glossary and coverage
run: python3 translations/check_i18n.py --app --strict
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Why it matters, with the evidence and every source: [openbep.com/why](https://op
| [`docs/parameter-dictionary.md`](docs/parameter-dictionary.md) | The parameter dictionary: every parameter with English and French labels, data type, accepted values, categories, uses and LOD. | Draft v0.1 |
| [`docs/graphics-and-materials-standard.md`](docs/graphics-and-materials-standard.md) | One set of line weights, text styles and material names for Revit projects in Canada. | Draft v0.1 |
| [`revit-addin/`](revit-addin/) | **OpenBEP Sync**: a Revit add-in that makes a model's shared parameters match the plan. | Source only, not yet built or tested |
| [Requirement file](shared-parameters/README.md#requirement-file-json) | One JSON file from the BEP Builder (step "Element requirements") that states what the plan asks of every element type at each milestone, and the plan's model rules, for a model checking tool to read. OpenBEP itself checks nothing with it. Example: [`OpenBEP-requirements-school-example.json`](revit-addin/OpenBepSync/test/OpenBEP-requirements-school-example.json). | Draft v1.0, proven against the Builder's own check by `translations/tools/reqfile_parity.js` |
| [`translations/`](translations/) | One English-keyed dictionary for every page of the site, with French (Quebec), and a glossary of BIM terms it is checked against. | Filled for French |

## Try it or run your own copy
Expand Down
376 changes: 346 additions & 30 deletions app/bep-builder.html

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions docs/model-check-screen/DESIGN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Model-check screen: compliance per version and over time (design)

The page is one screen with three regions.

## The page becomes one screen with three regions (no tabs)
Top bar (one row): plan name + version | milestone select | [Open requirement file or IDS] | [Check this model] | [Save result].

### Region 1 - VERSIONS (always visible, full width, about 5 rows high, scrolls)
One table row per version, ordered by the version's own order (Server tag / created date; for local files by the version label in the file name), NEVER by the date the check ran. Newest at the bottom, the open model's row marked "open".
Columns: Version (label + date) | Elements | Element types meeting the target (n / m) | Score | Rules met (n / m) | Since the previous version | State.
- "Since the previous version" is words + a signed count, coloured by direction, with a glyph so hue is not the only signal: "▲ 1 rule met again", "▼ 2 rules now fail", "= no change", plus "values moved: 3" in muted text when nothing flipped. Better = good green, worse = bad red, same = muted.
- State: Checked (date) / Not checked / Checking n of N / Failed (reason).
- Selecting a row makes that version the SUBJECT of regions 2 and 3. A second pick with the "Compare with" control sets the BASE (default: the previous version).
- Buttons on the region: [Versions from VIM Server...] (project + model source picker, then the list fills with Not checked rows), [Check versions] (every Not checked row: bring the VIM down, check, keep the result; progress in the State column; a version already checked for this plan + milestone is skipped), [Add results from a folder...] (what exists today).

### Region 2 - OVER TIME (the centre of the page)
A matrix, not a stack of charts: rows = things that are measured, columns = versions (same order as region 1, the subject column and the base column outlined with the inset selection keyline).
- Row groups, in this order: "Model rules" (every rule switched on in the plan, labelled with the rule's short sentence from the plan, e.g. "No duplicate Mark", never the raw id; the limit shown beside the label: "limit 0", "at most 2,200", "at least 95 %"); then "Element types" (only the element types whose score changes anywhere in the series, plus a first row "All element types" = the overall score); a toggle "Show unchanged rows" reveals the rest.
- Cell = the value at that version, mono, right-aligned, thousands separators display-only; a dot + tint for met / failed (good / bad tokens); a small ▲ or ▼ in the cell where the value differs from the previous version (direction coloured by whether it got better or worse FOR THAT RULE: fewer warnings = better, a higher % on a level = better); an empty cell with "not checked" for a version without a result; "n/c" with the reason on hover AND in the detail for a rule the model could not answer. A gap is never a zero.
- Last column of each row: a sparkline of the row over the versions (use the DS chart primitive if the shipped DS has one; otherwise a small inline SVG polyline with the token colours, no animation) and the net change first -> last ("+547", "-1,704", "-3.6 pt").
- Sort inside "Model rules": rules that flipped anywhere first, then rules whose value moved, then steady rules; keep that order stable.
- Clicking a cell selects that version as the subject and that row as the focus of region 3.
With the demo data this region must show at a glance: duplicate-Mark elements 6 -> 8 at the 6th version -> 14 at the 8th; warnings creeping from 2,104 then jumping to 2,651 at the last version (flips to failed, limit 2,200); lights outside the MEP model dropping 4,575 -> 2,871 at the 14th; elements on a level 96.1 % -> 94.5 % at the 12th (flips to failed, limit 95 %); the door work package row 0 % -> 8 %.

### Region 3 - THIS VERSION (below; what the Check tab shows today, for the subject version)
Header line: "Version 12 - checked 2026-11-23 - compared with version 11".
- Summary sentence + two tiles (as today).
- "What changed since version 11" (new, first): rules that flipped (met -> failed first), then rules whose value moved (old -> new, signed delta, better/worse colour + glyph), then requirement rows whose real-value % moved by more than 1 point (element type / parameter: old % -> new %). For a rule that has elements: two counts, "New: 448" and "Fixed: 0" = elements failing now that were not failing in the base version, and the reverse.
- Then the existing tables (element types with their parameter rows; model rules; not covered; required but not in the model).
- 3D: when the subject version IS the open model, every row isolates its elements as today, and the "New" count isolates only the new failing elements. When the subject is NOT the open model, the tables are read from the saved result, the 3D actions are disabled with the visible words "Open this version to see it in 3D" and one button [Open this version] (if the host lets the page open a model; else the words say to open it from VIM Flex's own File menu).

## Data: result file format 1.1 (additive; 1.0 files still load)
- `model.version`: { label, order (number), tag (Server version tag or null), created (ISO date or null), projectId, sourceId, vimId (Server id or null), fileName }.
- every model rule: `direction`: "lowerIsBetter" | "higherIsBetter" (from the rule kind) and `label` (the plan's sentence), `limitText`.
- every model rule that has elements: `failingKeys`: the full list of element keys, key = BIM document name + "-" + Revit element id (UniqueId is not unique across linked models). No cap on the list.
- requirement rows keep counts only (no element lists in the file).
- A results folder also gets `versions.json` (the ordered list) so the order never depends on file dates.

## Server versions
[Versions from VIM Server...]: sign-in is whatever the other pages already use for the Server (reuse their module; do not write a second one). List = the model source's version history (tag, created, size). [Check versions] per row: download (the Server's download address for that version), open in this Flex, check, save the result in the page's results folder, next. If the host cannot open a model from a page, or the page does not survive the model change, do not fake it: keep the batch runner (tower-plan\run-series-demo.ps1) as the way to produce the results folder, show the versions list with "Not checked" and the sentence "Checking a version from the Server needs VIM Flex to open it; use Check this model after opening it", and report exactly which host call is missing.

## Words
Revit's own: Version, Model rules, Element types, Mark, Workset, Family, Type. Never: timeline ids, "unique-value", "final90", file names like v07.vim as the only label (show "Version 7" + date; the file name in muted text). The milestone shows its name ("Final design 90 %").

## Envelope
Shipped DS only (tokens, ds-table / the page's existing table parts, .ds-dot, data-ds-tip tooltips, createSelect); no shadows, no gradients, no transitions, no raw colours, no native title; numbers mono + tabular; both themes. Layout must work at the page's real width (the panel is about 900 px wide beside the 3D view): the matrix scrolls horizontally inside its own box with the row-label column frozen; the collapse glyph and labels stay reachable without horizontal scroll.
74 changes: 74 additions & 0 deletions docs/model-check-screen/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# A model-check screen built on the OpenBEP requirement file

OpenBEP writes the plan. It does not check models. This folder shows one checker that reads OpenBEP's
requirement file: a page in VIM Flex (a desktop BIM viewer) that shows how far a Revit model follows the plan,
for each version of the model and over time.

It is here as a reference for anyone who builds a similar screen, for example on the web. Take the ideas,
fix the known faults listed below, and improve on it.

The plan in the examples is a made-up demo plan ("Medical tower (demo)"). The numbers come from 15 versions of
one test model.

## The screen

One screen, three regions, no tabs. Full description: [DESIGN.md](DESIGN.md).

1. **Versions.** One row per model version: elements, element types meeting their target, score, rules met,
and what changed since the previous version.
2. **Over time.** A grid: one row per rule, one column per version. Green is met, red is failed. A small arrow
marks every version where the value changed. The last columns are a trend line and the change from the first
version to the last.
3. **This version.** The detail of the selected version, starting with "What changed since version N": rules
that flipped, values that moved, and counts of elements that fail now and did not before ("New") or the
reverse ("Fixed"). In the viewer, pressing "New" shows only those elements in 3D.

## Pictures

| Picture | Shows |
|---|---|
| [full-window.png](pictures/full-window.png) | The whole window: the page on the left, the 3D view on the right |
| [ui-top-wide.png](pictures/ui-top-wide.png) | Versions and the over-time grid, wide |
| [ui-top-panel.png](pictures/ui-top-panel.png) | The same at the page's usual width (about 900 px) |
| [ui-matrix-wide.png](pictures/ui-matrix-wide.png) | The over-time grid alone |
| [ui-changed-v14.png](pictures/ui-changed-v14.png) | "What changed since version 13" |
| [ui-v07-not-open.png](pictures/ui-v07-not-open.png) | An older version selected: numbers from the saved result, 3D actions off with the reason |
| [ui-top-light.png](pictures/ui-top-light.png) | Light theme |

## Example data

In [example-data](example-data):

- `requirements.json`: the requirement file exported by the OpenBEP Builder (format `openbep-requirements` 1.5).
It holds the element types, their Revit categories, the parameters required at each milestone, the value
rules, and the model rules.
- `result-v13.json`, `result-v14.json`: what the checker saved for two versions (format `openbep-result` 1.1).
Per element type: score and per-parameter percentages. Per model rule: value, limit, met or not, direction
(`lowerIsBetter` / `higherIsBetter`), a short label, and the failing elements as keys
(document name + "-" + Revit element id). In these example files each list of failing elements is cut to
5 entries; `failingKeysTotal` gives the real count.
- `versions.json`: the ordered list of versions, so the order never depends on file dates.

## Known faults in this screen: fix them, do not copy them

1. The versions table shows 3 rows before it scrolls. It should show about 5.
2. The arrows mean two things. In the grid an arrow shows the value going up or down. In the "what changed"
list it shows better or worse. Use one meaning everywhere: the arrow is the direction of the value, the
colour is better or worse.
3. Versions have no date, only "Version 7".
4. Clicking a cell in the grid does not bring that rule's detail into view.
5. The "not covered" and "required but not in the model" tables show only after a fresh check, not from a
saved result.
6. The plan header reads "version - ·" with no version number.
7. The short rule labels ("No duplicate Mark") are built in the page. They belong in the requirement file.
8. The desktop page cannot fetch model versions from a server by itself, so the 15 versions were checked by a
batch run. A web version does not have this limit.

## Rules worth keeping

- Use Revit's own words on screen: Version, Model rules, Element types, Mark, Workset, Family, Type.
- A gap is never a zero. "Not checked" and "cannot be checked" are shown as such, with the reason.
- A rule's row says its limit beside its name ("at most 2,200", "at least 95 %").
- Elements are compared between versions by document name + Revit element id.
- The requirement file and the IDS export describe Revit parameters. No IFC export is needed to check a
Revit model.
Loading
Loading