Repository navigation
fix(ifc): Revit 2023's ArcWall pattern no longer writes a curtain wall's panels and grid lines as walls, and Einhoven exports its curtain wall of 24 panels on its one Level (RE-440) - #1809
Conversation
…l's panels and grid lines as walls, and Einhoven exports its curtain wall of 24 panels on its one Level (RE-440)
On Revit_IFC5_Einhoven the standard ArcWall byte pattern (RE-14.3, RE-15)
matches 24 records in Partitions/5. The native records of the ElementIds
their trailers give are 15 curtain panels (FamilyInstance, type 8570) and
7 CurtainGridLines; 2 matches have no ElementId; none is an ArcWall or
SWall. The pattern matches nothing on any other local file.
Taken as walls, the matches were written as 24 IfcWalls with a placeholder
thickness, shadowed the 15 panels the 2023 element records read under the
same ElementIds, and made storeys from the grid's four rows, which in turn
made the partition Level reader refuse the file's one Level (1905,
"Level 1") on 2015 to 2023.
- partition_arc_walls: a match is kept only where the native record of its
ElementId is an ArcWall or SWall; one with no ElementId, or whose record
cannot be read, is left out.
- partition_level_records: on 2015 to 2023 a single recovered Level is the
storey set when the file's native Level records are that Level alone.
- records_2023: a 2023 wall whose native type (m_WallAttributesId) is a
NewCurtainWallType is a curtain wall named by that type
(native_walls::wall_type_ids), and each panel or mullion whose reference
list names exactly one curtain wall is its part, as on 2024 (RE-46).
- geometry_gap_skipped_items: a whole whose aggregated parts carry its body
is not counted as missing dimensions or profile; it was already counted in
building_elements_carried_by_parts.
Einhoven now exports 1 IfcWall, 1 IfcCurtainWall aggregating the 24 panels
of its grid's 24 cells, and 2 IfcWindows, all on Level 1, where it exported
26 IfcWalls, 9 IfcPlates and 4 storeys; four of its seven warnings are gone.
Of the other 29 local 2015 to 2023 files, 28 export identically; 2023
rac_basic's 9 curtain walls take the name their 2024 and 2025 saves give
them ("SH_Curtain wall", was "p" on 4 and none on 5), and it and RE1
Architecture lose a false missing-body gap on their curtain walls.
The integration tests that pinned the matches as walls are restated for the
model the records hold, and the Einhoven project-count fixture follows.
Report reports/element-framing/RE-440-einhoven-curtain-wall.md; probe
probe_re440_curtain_wall_records.
There was a problem hiding this comment.
Thank you for this one: the finding that Einhoven's 24 "ArcWall" matches are 15 curtain panels and 7 grid lines (not walls), and that the wall's own type says it is a curtain wall, is a clear improvement, and I read it against the diff at 81a115d. Changes I need before it lands:
CI is red on three jobs, all from Einhoven's new content
tools/ci/validate-real-ifc.py:153still assertsIfcWallis at least 10 on Einhoven; the export now has 1IfcWall, 1IfcCurtainWall, 24IfcPlateand 2IfcWindow(the job log shows exactly that). Move the pin to what Revit's own export of the file holds, and say so in its comment.- Viewer browser tests 1/3 and 3/3 pin Einhoven's element tree (
an element of the tree that rvt-elements prints no parameters for, and two text expectations). They need the new tree's values, each with the source of its number (the viewer test's pins for Einhoven follow the project-count fixture you already moved). RE1-Electrical.rvt: No such filefollows in the same job; please check it clears once the first failure does.
Code
attach_curtain_walls_2023callsnative_walls::wall_type_idsandcurtain_wall_type_names, both withOptions::default()and nograph_fields. That is two more full-graph passes over every 2023 file, over the same wall recordsread_wall_recordsreads moments later throughWallReadswith theWALL_READ_FIELDSprojection (#1335).WallReadsalready cachesm_WallAttributesId, so the wall types should come from it, and the curtain-type names from one projected read of the types.- Those two functions take
Options::default().releases, which is 2023..=2027, butattach_curtain_walls_2023runs for every release that reachesrecover_2023_records. On a 2015 to 2022 fileextract_graphserrors andunwrap_or_default()hides it, so the rule is 2023-only by construction while the doc comment and the report say nothing of it. Either gate the call on the release the rule was measured on, or passNATIVE_RELEASESlike the other wall readers and say which releases the one file covers. - In
geometry_gap_skipped_items,carried_by_partsis true for any element that has anAggregatewhole, not "a part of it carries a body", and it applies to every release and class (stairs too). A whole whose parts have no body is no longer counted anywhere, which is why RE1 Architecture'sunsupported_geometry_missing_dimensionsand_profiledisappear fromtests/export_decisions_counts.rs. Narrow it to "some part has a body shape" and check that RE1 keeps those two reasons if it should. - A wall becomes a curtain wall only when
curtain_wall_type_namesreturned aSymbolInfo.m_namefor its type; on 2024 the class does not need a name. ANewCurtainWallTypewith no readable name stays anIfcWall. Make the class independent of the name. arc_wall_corpus.rsanditer_elements_typed.rsnow assert only that nothing is kept on Einhoven, so the half ofnative_walls_onlythat keeps a match whose record is a realSWallorArcWallhas no witness left, andelem_table::link_arcwall_element_idshas no test user. The report says no local file has a real 2023 ArcWall match: say in the report what keeps that half from being wrong, or keep a check on a file that exercises it.- A curtain wall classified now passes through
bind_opening_hosts, so its doors and windows lose their host as on 2024 (#439). That is likely right, but it is a change to the export that the report does not list.
Smaller
- An
extract_graphserror on one ambiguous record empties the whole scan inpartition_arc_walls.rs; ids-less matches are always dropped, so theArcWall-{partition}-{offset}name inifc/mod.rscan no longer be produced. - The description says 765 added and 293 removed;
git diff --shortstatgives 770 and 298.
Once the code is settled I will run an unfiltered Measure against main on the final head, since this moves an export. I am happy to push the pin and test updates to your branch if you would rather not touch them (edits are allowed); say so here.
# Conflicts: # docs/format-reconnaissance.md # docs/status.md
…23 curtain wall rule gated to 2023 and independent of a type name, one carried-by-parts rule, the Einhoven validation pins (DrunkOnJava#1809) - attach_curtain_walls_2023 takes the walls' types from WallReads (the read read_wall_records shares, DrunkOnJava#1335) instead of a second full-graph pass, and reads the types' records on NATIVE_RELEASES. - The rule runs on Revit 2023 only (CURTAIN_WALL_2023_REVIT_VERSIONS), the release it is measured on. - A wall whose type is a NewCurtainWallType is a curtain wall whether or not the type's record holds a name; the name only labels it. - wholes_carried_by_parts: a whole counts as carried only where some part has a body, one rule for the export summary and the geometry gaps. - The ArcWall naming branch for a match with no ElementId is gone: the scan keeps none. - tools/ci/validate-real-ifc.py pins Einhoven's one wall, one curtain wall, 24 panels and 2 windows as floors (no Revit export of the file exists).
…t stays unexercised and what changes host (DrunkOnJava#1809) - viewer-regression: one storey (was four, the ArcWall matches' elevations), no missing-level or thickness gap, the wall 'Basic Wall:Wall 1:2808' and its RvtElementRecordGeometry set (BoundingBoxHeight as the length row), and the drag test on the two windows (Einhoven has one wall). Values read from Measure 43509948454's kept export at 96e1b15. - parameters-row: the empty-state test falls back to RE1 Mechanical, which has 25 exported elements with no parameters; Einhoven and Core Interior have none now (v0.22.0 rvt-elements against its rvt-ifc export). - RE-440: section 5 describes the reworked reader; section 7 says what keeps the untested half of native_walls_only from being wrong, and that both Einhoven windows stay in wall 2808.
|
@puzzbobb, thank you again for RE-440. Rather than send it back to you a second time, I made the review's changes on this branch myself. Your commits are as you wrote them, and mine sit on top:
rvtReview reads it once CI is green and runs the unfiltered Measure on the final head. |
…verflows, and the filter line may be singular (DrunkOnJava#1809) Einhoven's storey now holds 3 categories, its windows' 2 and its curtain wall 24 panels (RE-440), where its walls' category held 26. Blocks of 3 left no category to overflow; blocks of 1 put the storey's categories and the windows behind a Show more row, and the filter lists 4 (4 blocks of 1). 'Basic Wall' matches Einhoven's one wall, and the status line says '1 element matches'.
…RecordGeometry group, one of 8 Einhoven's wall now has (DrunkOnJava#1809)
26372db to
30f9962
Compare
…no rows are left, so its focus check runs on Einhoven's 2 windows (DrunkOnJava#1809)
…ast 8 properties, before checking its rows are visible (DrunkOnJava#1809)
# Conflicts: # docs/format-reconnaissance.md
Summary
On
Revit_IFC5_Einhoventhe Revit 2023 ArcWall byte pattern (RE-14.3, RE-15) matches 24 records, and none is a wall. The native records of their ElementIds are 15 curtain panels and 7 curtain grid lines, and 2 matches have no ElementId. Taken as walls, they were written as 24IfcWalls with a placeholder thickness. They also hid 15 of the curtain wall's panels, made three extra storeys from the grid's rows, and caused the file's one Level to be refused. A match is now kept only where its native record is a wall. A 2023 wall whose type is a curtain wall type is anIfcCurtainWallaggregating its panels. A lone 2015 to 2023 Level is kept where the native records hold no other. Einhoven exports 1 wall, 1 curtain wall of 24 panels and 2 windows onLevel 1, and four of the seven warnings the web viewer showed are gone.Motivation
The web viewer shows seven warnings on Einhoven:
The first four come from one misreading. The matches' ElementIds all belong to curtain wall 7187: its
CGridDivideFaceGStep.m_cellMapnames 15 of them as the panels of its cells, and the other 7 are itsCurtainGridLines. The four "base elevations" that made storeys are the grid's four rows. The partition Level reader refused a lone 2015 to 2023 Level on exactly that evidence ("Einhoven decodes one Level while its walls stand at two or more base elevations").Changes
src/research/partition_arc_walls.rs:compute_partition_arc_wallskeeps a match only where the native record of its ElementId is anArcWallorSWall(native_walls_only). Only the classes are read, not the graphs. A match with no ElementId, or whose record cannot be read, is left out. No public type changes.src/research/partition_level_records.rs: on 2015 to 2023 a single recovered Level is the storey set when the file's nativeLevelrecords are that Level alone (native_level_ids). 2024 to 2027 keep their id-scan rule.src/research/partition_schema_mvp/records_2023.rsandsrc/research/native_walls.rs:m_WallAttributesId,wall_type_ids) is aNewCurtainWallTypeis a curtain wall, named by that type (curtain_wall_type_names).src/ifc/mod.rs:geometry_gap_skipped_itemsno longer counts a whole whose aggregated parts carry its body as missing dimensions or profile. It is already counted inbuilding_elements_carried_by_parts. This was a false gap on every bodiless curtain wall, RE1 Architecture's included.arc_wall_corpus: the shared scan keeps no match on Einhoven.iter_elements_typed: Einhoven's elements are wall 2808, curtain wall 7187, the 24 cells' panels and 2 windows, and no Level element comes from wall elevations.walker_to_ifc_integration: the IFC holds 1IfcWall, 1IfcCurtainWallaggregating the 24IfcPlates, and 1 storey with every element on it.export_decisions_counts: RE1's and Einhoven's required reasons lose the gaps that are gone.tests/fixtures/project-counts/revit-ifc5-einhoven.json: walls 26 → 1, elements with geometry 37 → 27.docs/status.md,docs/format-reconnaissance.md(addendum),docs/export-diagnostics.md,docs/support-matrix.json,reports/element-framing/RE-440-einhoven-curtain-wall.md,probes/examples/probe_re440_curtain_wall_records.rs,changelog.d/fixed/einhoven-curtain-wall.md.Testing
Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead.
tools/check-local.shpasses (fmt, clippy, rustdoc, build, real-file / CLI / contract checks)tools/check-local.sh --corpuson81a115d0: all requested gates passed, integration suite 302 passed, 0 failed.cargo run --profile ci -p rvt-probes --example probe_re440_curtain_wall_records -- FILE...on the 2023 files: Einhoven (MIT,magnetar-io/revit-test-datasets), Autodesk'srac_basicandrst_basic(research/autodesk-sample-projects.tsv) and thephi-ag/rvt2023 sample family.FamilyInstance15,CurtainGridLine7, none 2, wall 0. OneLevel(1905). Curtain wall 7187, type 1937Curtain Wall 1, 24 cells each holding aFamilyInstance.rac_basic: no match, 7 Levels, 9 curtain walls of typeSH_Curtain wall.rst_basic: no match, 9 Levels.rac_basic's names, the witness is the same model saved by 2024 and 2025, whose export gives the same 9 ElementIdsCurtain Wall:SH_Curtain wall.rvt-ifc --profile ciofmain(3abb42f0) and of this branch on every local 2015 to 2023 file (30): 28 are identical apart fromFILE_NAMEandIFCOWNERHISTORY.rac_basicchanges only in its 9 curtain walls' names and type properties (Curtain Wall:pon 4 and none on 5 →Curtain Wall:SH_Curtain wallon 9) and in losing the false missing-body gap on them.witness_verdict,witness_registry) pass in the gate. No committed observation covers Einhoven's element counts; its project-count fixture is a decoder baseline and is updated here.tools/bench.shand attached the before / afterAudit-honesty checklist
docs/mcp.mdquotes "23 of Einhoven's 37 rows" from Measure run 41986491801. Those were the placeholder-named elements, mostly the pattern matches, and the figure will change on the next Measure run. It is left as the run measured it.changelog.d/<section>/(seechangelog.d/README.md), not inCHANGELOG.mdchangelog.d/fixed/einhoven-curtain-wall.md;tools/release/changelog.py checkpasses.docs/status.md: RE-440 entry, and the ArcWall and storey sentences.probes/examples/and a dated addendum todocs/format-reconnaissance.mdare includedLegal and contribution hygiene
CONTRIBUTING.md)CLEANROOM.md)Formats/Latest). The values are bytes of the files.testuser,111111,FY-20XX, etc.) and contain no real-world PIIBreaking changes
None. No public type or signature changes;
native_walls::wall_type_idsis a new public function.The output changes on Revit 2023 only:
rac_basic's curtain wall names change.unsupported_geometry_profileorunsupported_geometry_missing_dimensions.Screenshots or output samples
Einhoven:
mainIfcWallIfcCurtainWallCurtain Wall:Curtain Wall 1:7187, aggregating 24 panelsIfcPlateIfcWindowLevel 1,Elevation 6.562 ft,Elevation 13.123 ft,RoofLevel 1Related issues
Refs #30 (the Einhoven decoder baselines). No issue was filed; the warnings were seen in the web viewer.