Repository navigation
fix(ifc): an IfcPlateType is written with no Tag, since Revit's is a plate's ElementId in an order no record gives (#1594) - #1641
Merged
Conversation
…plate's ElementId in an order no record gives and the panel type's own id is wrong on every one (#1594)
…scored as having no Tag to match (#1594) The type's own ElementId is still what the server answers; the export no longer writes it as a Tag on a plate type, so the consistency check counts those instead of comparing them with a Tag that is not there.
DrunkOnJava
force-pushed
the
fix/plate-type-tag
branch
from
November 10, 2026 18:54
c3ef291 to
3782fd1
Compare
DrunkOnJava
marked this pull request as ready for review
November 10, 2026 19:27
5 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Nov 10, 2026
…s left out, and counts type objects by GlobalId (#1594) (#1648) ## Summary Two fixes to `tools/re/type_objects_vs_ifc.py` that #1641's review found: the `left out, Revit writes a value` carve-out now applies to the `Tag` only, so a field other than the plate type's `Tag` that rvt-rs leaves out is a disagreement again; and `type objects in ours` counts every type object by its GlobalId, so the count no longer changes meaning when a type object has no `Tag`. ## Motivation #1641 (#1594) wrote an `IfcPlateType` with no `Tag` and counted that in the scorer. Its reviewer noted that `elif g is None` was written for every field, which would show a type object whose `Name` is missing as left out and hide the disagreement; and that the last line mixed Tag-keyed objects (deduplicated by Tag) with GlobalId-keyed ones, so the office as built went from 470 to 623 type objects with no object gained. ## Changes - `tools/re/type_objects_vs_ifc.py`: the carve-out is `field == "tag" and g is None`; the type objects are counted by `GlobalId`. ## Testing Unit tests are banned in this repository; none are added. - [x] A scorer change only: no export byte changes, so there is no new Measure. The first Measure after it shows `type_objects_vs_ifc.txt` differing on every model that has one, on the `type objects in ours` line only (the count is now of objects, by GlobalId). - [x] No `src/`, no docs, no schema. ## Audit-honesty checklist - [x] No capability claim changes; no changelog fragment (a scorer). - [x] No emojis, no private paths. ## Legal and contribution hygiene - [x] Apache-2.0; no Autodesk proprietary source; no fixtures. ## Breaking changes None. ## Related issues Refs #1594, #1641.
6 of 7 tasks
DrunkOnJava
added a commit
that referenced
this pull request
Nov 10, 2026
… a short one, is read like the others, 926 more NetSurfaceArea values on the office (#1046) (RE-400) (#1651) ## Summary RE-268 left 1,189 of the BIM4LCA office's 7,795 mullions out of its `NetSurfaceArea` rule (1,187 of 7,823 at permit) and its own table said its reading would have been Revit's on 1,182 and wrong on 7 of them. Split by what the neighbour is, 159 mullions with another lying over an end and 767 that meet only a mullion shorter than their section are Revit's on every one. They are now read: 926 more values as built (924 at permit), none different where Revit writes the value (the office's export writes it on every mullion). The 263 that still get 7 wrong stay out. Unfiltered Measure 42889843144 read: 7 exports move (the two office files and 5 Autodesk samples that have no Revit NetSurfaceArea to score), 111 are byte-identical, census regressions 0, same-project gates pass. ## Motivation `Qto_MemberBaseQuantities.NetSurfaceArea` is the largest bucket of the W7 census still missing on the office (3,397 of 6,572 missing as built). RE-268's cascade was the conservative reading of 7 wrong cases among 1,189; the data in RE-400 says which of the 1,189 can be claimed without a wrong one. #1046, #1016. ## Changes - `src/research/partition_schema_mvp/mullion_ends.rs`: `kept_ends` reads a mullion with another lying over an end on its own (it still keeps its neighbours out), and a mullion shorter than its section is no longer a reason to leave a neighbour out. The short-margin constant goes. - `tools/re/mullion_ends_vs_boxes.py`: mirrors the rule and prints the mullions written by what the rule read, with the curtain walls they stand on. - `reports/element-framing/RE-400-mullion-ends-overlap.md`, `changelog.d/added/400-mullion-ends-overlap.md`, `docs/status.md`. ## Testing No unit tests. Measured end to end on the office as built and at permit (Revit 2024, CC BY-SA 4.0, fetched by Measure): - the split of RE-268's cascade: run [42885661997](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42885661997) (scratch scorer commit `0b106c9fb353`, kept under `refs/archive/2026-11-10/cited/`); - this change's scorer and census, saved meshes off so the scorer reads the extruded boxes: run [42886890399](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42886890399): `NetSurfaceArea` equal 6,604 to 7,530 of 7,795 as built and 6,634 to 7,558 of 7,823 at permit, different 0, on 106 curtain walls (short neighbour) and 40 (overlapped); the census reads 7,532 of 10,003 and 7,560 of 10,031 equal, different 0; - unfiltered, this change at `f1eb3dae` against its parent `38dff86c` (`-f nordic -f r2025 -f samples -f racadv -f bimcollab -f holdout`): run [42889843144](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42889843144): the office's `NetSurfaceArea` equal 6,606 to 7,532 of 10,003 as built and 6,636 to 7,560 of 10,031 at permit, different 0; whole census equal 33,181 to 34,107 and 33,509 to 34,433, different 1 and 1 (RE-243's mullion `Length`, unchanged); 7 exports move (the office pair and 5 Autodesk samples), the other 111 byte-identical (my first dispatch used `base=main` after #1641 landed and was confounded by it, so it was cancelled). The rule rests on the office, the one model whose Revit export writes a mullion's `NetSurfaceArea` (Snowdon Towers Architectural's local export holds 1,625 mullions and no `Qto_MemberBaseQuantities`; RE1 Architecture's export was made with base quantities off). The report says so. - [ ] `tools/check-local.sh`: not run locally (no local builds here); CI builds it - [x] Verified end to end on real Revit files, against Revit's own export: the runs above ## Audit-honesty checklist - [x] Docs state only what ships: the criteria page entry is added when the unfiltered run reads - [x] Changelog fragment under `changelog.d/added/` - [x] Limitations in the report: one project, the 263 left out, the 2,208 mullions Revit does not draw as an extrusion - [x] No emojis, no private paths ## Legal and contribution hygiene - [x] Apache-2.0; no Autodesk source (the rule is read from the file's own boxes; revit-ifc is not read again) ## Breaking changes None.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
An
IfcPlateTypeis written with noTag. The panel type's own ElementId, which rvt-rs wrote there, is not Revit'sTagon any plate type; it stays the type'sType Idproperty and the MCP server'selement_idfor it, and the server's schema and docs now say so.type_objects_vs_ifc.pyandmcp_answers_vs_ifc.pycount these plate types apart.Motivation
#1594. Revit's export gives a curtain panel's type object the
Tagof one of its plates, the first of its group in an order of the curtain grid that no record holds (RE-367 section 4a). The ElementId rvt-rs wrote is wrong on every one: on the BIM4LCA office 260 plate types as built and 269 at permit disagreed, and RE1 Architecture's 2. A value known to be wrong is left out, not written (the standing rule for what Revit's exporters write and rvt-rs cannot get right).Changes
src/ifc/step_writer.rs:IFCPLATETYPEis written with$forTag;TypeObject::tagkeeps the type's ElementId and its documentation says where the writer leaves it out.rvt-mcp/src/schema.rs,docs/mcp-tools.json,docs/mcp-tools.md: the documentation ofTypeOut.element_id, which is the type's ElementId, written as the type object'sTagexcept on anIfcPlateType.tools/re/type_objects_vs_ifc.py: a value rvt-rs leaves out where Revit writes one is counted on its own line (left out, Revit writes a value), and the pairing uses theTagwhere there is one.tools/re/mcp_answers_vs_ifc.py: a plate type with noTagin the IFC is counted (plate types the export writes with no Tag, whose id is not compared) and not compared with the id the server answers.changelog.d/changed/1594-plate-type-tag.md.Testing
Unit tests are banned in this repository; none are added.
nordic,r2025,samples,racadv,bimcollab,holdout), head3782fd1dagainstmainatf045df5a, 118 models on each side. 52 exports move (every model that holds a plate); census regressions 0, body and placement regressions 0. On the office as built the type object'sTagequals Revit's on 12,343 of the 12,603 elements typed in both files and the 260 plates' are counted apart, where they disagreed before (12,379 of 12,648 and 269 at permit; RE1 Architecture 71 of 73 and 2). The MCP server's consistency check on the five models that move it (Einhoven, the office twice, RE1 Architecture, Vitoria Before):type objects: ... 0 differ,consistency PASS: every check equal, with 5, 5, 5, 2 and 5 plate types counted apart. The first head of this PR failed that check on the same five (the server's type id against aTagthat is no longer there), which is what the last commit fixes. 3 of the 52 are held-out or spent models, kept as counts only.src/).tools/check-local.sh: the fast set is green on the head, and the full set runs once the PR is ready.Audit-honesty checklist
changelog.d/changed/.Tagis not written until a record gives the order Revit uses.Legal and contribution hygiene
Breaking changes
None to the library's API (the
TypeObjectfields are unchanged). A consumer that read theTagof anIfcPlateTypefrom the IFC gets none now; the server still answers the type's ElementId aselement_id.Related issues
Refs #1594 (the plate type's real
Tagstays open there).