Repository navigation
feat(ifc): Revit 2015 to 2023 curtain mullions and panels have their type, family and material, and a type's own material (#1190) (RE-367) - #1520
Conversation
|
@puzzbobb the Measure run on this head is in (42521215531,
By IFC hash 34 of 118 exports move, 31 of them Revit 2015 to 2023. The other 3 are the 2024 saves of The plates, corrected again. This comment has said two different things, and this is the one that stands: the mullions can land, and the panel types and materials wait for one check. A disagreement in materials against an IFC2X3 view is counted apart. A type's
I'm running one check on If you have a lead on what makes these panels different (a system panel against a family panel, or an empty panel type, for example), it's still welcome. |
|
@puzzbobb the check on the 67 plates of So on this PR: the mullions are fine (206 of 206) and can land, and the panel types and materials need narrowing first. A panel should get a type only when the rule can tell the type is that panel's own, and otherwise stay typeless and be counted. A lead from reading the code, not proved: Would you like to take the narrowing, or should I, as on #1517? |
…heir parts under them (#1190) (RE-366) (#1519) ## Summary Revit 2015 to 2023 curtain walls are now `IfcCurtainWall`, with their mullions and panels aggregated under them, turned along their own axes, and with `Span`, `Length` and `IsExternal`. It's a sixth slice of #1190, and the largest gap by element count: 4,661 parts on `rac_advanced` alone. It's measured against the same Autodesk samples saved by a later release, and, as counts, against Revit's own exports of `rac_advanced` 2015 to 2020 and of Vitoria's two models, all three IFC2X3; no Revit IFC4 export of a 2015 to 2023 curtain wall scores it. ## Motivation #1190 asks for each capability 2024 and 2025 have on every release from 2015 to 2027. The 2015 to 2023 branch of `recover_partition_schema_mvp` never called the curtain readers. `rac_advanced` on `main`: | | 2023 | 2024 | |---|---:|---:| | `IfcCurtainWall` | 0 | 34 | | elements aggregated under another | 0 | 4,515 | | `partition_family_instance_oriented_box` | 0 | 148 | | members with `Span` and `Length` | 0 | 3,252 | ## Changes - `src/research/partition_schema_mvp.rs`: the branch calls `attach_curtain_walls`, `attach_curtain_axes` and `attach_curtain_member_is_external` on `CURTAIN_32BIT_REVIT_VERSIONS` (2015 to 2023), and `bind_opening_hosts` after them, as on 2024. - `.../records_2023.rs`: `recover_2023_records` returns each record's reference list, and no longer binds hosts itself. 2008 to 2014 get the same binding as before. - `.../curtain.rs`: `attach_curtain_walls` takes those lists; `attach_curtain_axes` reads through `scan_transforms_in_layout`. - `src/research/partition_instance_transforms.rs`: `scan_transforms_in_layout`. `scan_instance_transforms`, which door and family readers call, is unchanged. - `.../parameters.rs`: a curtain wall takes `attach_record_is_external`. - `reports/element-framing/RE-366-2015-2023-curtain-walls.md`, an addendum to `docs/format-reconnaissance.md`, `docs/status.md`, `docs/evidence.md`, `docs/supported-profile.md`, `docs/release-1.0-criteria.md`, `changelog.d/added/1190-2015-2023-curtain-walls.md`. - `tools/re/curtain_classes_across_saves.py`: a curtain wall's class and its parts' wholes against the same project's 2024 save, by `Tag`, over a Measure run's kept exports. `docs/support-matrix.json`'s `element-record-curtain-walls` names 2015 to 2023 and RE-366, and the class counts the docs cite for Vitoria's `ALD26 Before` (1,305 to 1,310 of 1,314, 9 curtain walls written as walls to 4) are updated where they appear. ## Testing Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead. - [x] The required gate passes: `full / CI passed` on the rebased head (fmt, clippy, rustdoc, the test matrix with its `msrv` entry, the i686 job, corpus tier 2, IfcOpenShell, docs, wheels, audits, PII guard). - [ ] Verified end to end on real Revit files: the command, the files (and their licence), and the measured result against Revit's own export are in the PR body, with the script or probe that reproduces it - **Not against a Revit IFC4 export.** Measured against the same Autodesk samples saved by a later release, which can't catch an error that save shares, and, as counts, against three Revit exports that are IFC2X3: a disagreement with an IFC2X3 view is counted apart and removes nothing, and the agreements below are results against IFC2X3 too. The files are the pinned samples in `research/autodesk-sample-projects.tsv` (fetched, never stored). - Against Revit's own exports, [Measure run 42581222440](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42581222440) (the rebased head `6f71f93a` against `main` at `58fd08f2`, 118 exports, held-out models as counts only): `rac_advanced` 2015 to 2020 (six pairs, the same counts on each) `IfcCurtainWall` 34 of 34 (0 before), `Pset_CurtainWallCommon.IsExternal` 32 of 32, `Pset_MemberCommon.Span` 3,241 equal, 11 different and 24 missing of 3,276 (0, 0 and 3,276 before), property values equal 2,503 to 5,776 of 16,108. The 11 different are the 3,241 of 3,252 below: about 7.5 mm off Revit's as the record boxes are, counted apart. Vitoria `ALD26 Before` (Revit 2018) `IfcCurtainWall` 5 of 9 (0 before), the other 4 stay `IfcWall`, since by RE-46's and RE-72's rules neither a mullion's list nor a curtain grid that a part names names them, `Span` 206 of 206, equal 2,737 to 2,948 of 5,317; the held-out `ALD26 Project` 5 of 8, `Span` 206 of 206, equal 3,291 to 3,502 of 6,140. No other export of the 118 moves except the 22 samples below. - Against the 2024 save, by `Tag`: | save | curtain walls | aggregated as 2024 | under another wall | not aggregated | |---|---:|---:|---:|---:| | `rac_advanced` 2015 to 2017 (each) | 34 of 34 | 4,384 | 0 | 80 | | `rac_advanced` 2018, 2019 (each) | 34 of 34 | 4,463 | 0 | 1 | | `rac_advanced` 2020 | 34 of 34 | 4,454 | 0 | 10 | | `rac_advanced` 2021 | 34 of 34 | 4,444 | 0 | 71 | | `rac_advanced` 2022 | 34 of 34 | 4,463 | 0 | 52 | | `rac_advanced` 2023 | 34 of 34 | 4,454 | 0 | 61 | | `rac_basic` 2015, 2016, 2019, 2022, 2023 (each) | 9 of 9 | 188 | 0 | 4 | - Those not aggregated, on `rac_advanced` 2023: 45 mullions at a corner whose record names two curtain walls, which the rule declines; 15 stair flights and landings, which this doesn't read; 1 opening. - Bodies, to 3 mm on the world box and 0.1% on the volume (`tools/re/save_pair_bodies.py` for the oriented boxes), `main` against this change: `rac_advanced` 2023 members 3,206 to 3,312 of 3,312, panels 1,307 to 1,349 of 1,349; 2015 and 2019 members 2,779 to 2,885 of 3,276, panels 1,145 to 1,187 of 1,349; `rac_basic` 2023 188 of 188 before and after. The 148 oriented boxes are the 2024 save's on 2015, 2019, 2021 and 2023. On `rac_advanced` 2019 no body that matched on `main` stops matching, and the 553 that still differ have the box they have on `main`, at worst 15 mm off. RE-180 records `rac_advanced` 2019 and 2020 as an earlier edit in which curtain walls moved. - Values against the 2024 save, `rac_advanced` 2023 / 2015: `Span` and `Length` 3,252 of 3,252 / 3,241 of 3,252, the 11 about 7.5 mm off as their boxes are; member `IsExternal` 3,147 equal and 45 not read / 3,077 and 79; panel `IsExternal` 1,307 of 1,307 on both; curtain wall `IsExternal` 34 of 34 on both. - Class and parts over every save (`tools/re/curtain_classes_across_saves.py` on the kept exports of Measure run 42579926185, head `6f71f93a`): of the 31 saves of 2015 to 2023 that have a 2024 save of the project, 511 walls are `IfcCurtainWall` here and in the 2024 save; none is `IfcWall` there, and none that is `IfcCurtainWall` there is `IfcWall` here. No mullion or plate sits under a wall that is not a curtain wall, here or in the 2024 save (49,903 sit under a curtain wall here). The 511 are 34 on each of 9 `rac_advanced` saves, 9 on each of 9 `rac_basic` saves and 31 on each of 4 `rme_*` saves, which is why the tables above, covering the first two, hold 387. - Across 33 saves of 2015 to 2023 against `main`: 266 doors no longer fill an opening in a curtain wall and 235 curtain walls lose that void, all of them now equal to the 2024 save. 225 members and panels change storey, all to the 2024 save's. 511 elements go from `IfcWall` to `IfcCurtainWall`, gaining `Pset_CurtainWallCommon.IsExternal` and losing `Pset_WallCommon.IsExternal` and `ExtendToStructure`. 4 curtain walls on `rac_basic` gain a family name. No element appears or goes, and no GlobalId changes. - Byte identity, Measure run 42581222440: of 118 exports, 88 are byte for byte `main`'s. The 30 that differ are the 22 samples that hold curtain walls (`rac_advanced` and `rac_basic` of 2015 to 2023, `rme_advanced` and `rme_basic` of 2015 and 2019), the six `racadv` pairs and the two Vitoria models. No export of 2024 or later, and none of the office, the Revit 2025 models, Core Interior, RE1 or BIMcollab moves, and no other held-out model. The same-project gates pass. - [x] If this touches the IFC exporter: the witness verdicts replay (see CONTRIBUTING.md) or the changed observations are refreshed in this PR - Core Interior (2024) exports byte for byte as before, so its observations are unchanged. - [ ] If this is a performance change: reran `tools/bench.sh` and attached the before / after - N/A. No difference above the noise of three runs each (`rac_advanced` 2023, about 4.3 s; `rac_basic` 2019, about 2 s). ``` tools/fetch-autodesk-samples.sh samples 2015 2024 for f in samples/*.rvt; do rvt-ifc "$f" -o "${f%.rvt}.ifc"; done python3 tools/re/save_pair_bodies.py samples/2023-racadvancedsampleproject.ifc samples/2024-racadvancedsampleproject.ifc --sources partition_family_instance_oriented_box ``` ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR — no claims of features that are not actually shipped in this PR - [x] A user-visible change has its entry as a fragment under `changelog.d/<section>/` (see `changelog.d/README.md`), not in `CHANGELOG.md` - [x] If a limitation was resolved, the "Known limitations" / "What works today" section in the relevant docs is updated - `docs/status.md`, `docs/evidence.md`, `docs/supported-profile.md`, `docs/release-1.0-criteria.md`. The 2008 to 2014 rows now say "as on 2015, without curtain walls". - [x] If a new limitation was introduced, it is documented in the PR body and in-code - None new. Still not read, RE-366 §5: a curtain wall's `Length`; family and type names on mullions and panels, so their `ObjectType`, `Reference` and materials; a part's `NetVolume` and `NetSurfaceArea`; a corner mullion's curtain wall; a curtain grid's. - [x] Commit messages describe WHAT changed and WHY, not "fix things" or "updates" - [x] No emojis in code, docs, or commit messages - [x] No private paths, personal email addresses, or internal jargon in committed files - [ ] If this is a reverse-engineering finding: a reproducible probe under `probes/examples/` and a dated addendum to `docs/format-reconnaissance.md` are included - The addendum is included. No new byte layout is decoded, so there is no probe. ## Legal and contribution hygiene - [x] I agree this work is licensable under Apache-2.0 (see `CONTRIBUTING.md`) - [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see `CLEANROOM.md`) - [x] Any new test fixtures use synthetic values (`testuser`, `111111`, `FY-20XX`, etc.) and contain no real-world PII - No fixtures. ## Breaking changes None. New public constants and a function; existing names and types are unchanged. ## Screenshots or output samples `rac_advanced` 2023 against its 2024 save, this branch: ``` tools/re/save_pair_bodies.py --sources partition_family_instance_oriented_box same 148, differ 0, not in the reference 0 ``` ## Related issues Refs #1190, #1158 ## Notes It edits the same rows of `docs/supported-profile.md`, `docs/evidence.md` and `docs/status.md` as #1518, #1520 and #1524, so whichever merges later takes a small conflict. --------- Co-authored-by: Griffin Long <[email protected]>
…tegory and class (#1520) (RE-367)
795f131 to
cae3373
Compare
cae3373 to
dd5ecf6
Compare
|
Thanks for this one. What changed since you pushed, so the page matches the branch:
rvtDevelop reads it next and I land it after. |
dd5ecf6 to
dc69b45
Compare
…type, family and material, and a type's own material wins (DrunkOnJava#1190) (RE-367) A type's name entry on 32-bit releases holds no category, so resolve_type could not name a curtain part's type, and these types have no type record for type_and_family_names_2023. The type is the one id in a part's reference list with a name entry and no record of its own: on rac_advanced 2023 that is the 2024 save's type on all 3,276 mullions and 1,349 panels. The type's data names its family as a u32 at +265. Its material is the type's m_renderStyleId (RE-166). type_material_names_32 is not used for these types, because it misreads them: with a type id it gave every mullion and panel of rac_advanced 2023 Site - Tarmacadam, glass included. Each type's material equals its 2024 save's m_renderStyleId on every type both hold. No Revit export of these parts is scored. On every release a type's m_renderStyleId now replaces what a map gave. On rac_advanced, rme_advanced and rme_basic of 2024 the map made every mullion and panel Wood - Laminated, glazed panels included. The 20,989 parts scored against Revit's own exports are unchanged, and none of them is one that changes, so the new values rest on RE-201's rule and on the types' own names. (cherry picked from commit 795f131edfbef2841ce27b3f965479135387316a)
…unkOnJava#1520) (RE-367) A panel's material was its type's m_renderStyleId on every release, as a mullion's is. In Revit's IFC2X3 export of Vitoria's ALD26 Before none of its 67 plates has that material (Measure run 42534783950: 0 of 67 equal), and no other Revit export scores a panel's material on these releases. A panel of these releases keeps its type, family, ObjectType and Reference and takes no material until the rule that gives Revit's is read; a mullion's is unchanged.
…gives panels no material (DrunkOnJava#1520) Measure run 42592510812 scores the types and names of the parts against Revit's exports for the first time on these releases: rac_advanced 2015 to 2020 has Revit's Reference on 1,349 of 1,349 plates and 3,276 of 3,284 members and Revit's Name and ObjectType on all of them; Vitoria's ALD26 Before and the held-out ALD26 Project have them on all 67 plates and 206 members. The type objects' Tag differs on the plates only, which is the exporter's convention (Autodesk's exporter sets an IfcPlate type's Tag from the instance), as the BIM4LCA office's IFC4 export shows on its 269 plates. The report, the changelog fragment and the reconnaissance addendum say so, and that a panel takes no material.
…erial, and that a 2015 to 2023 panel gets none (DrunkOnJava#1520) rvtDevelop's read of DrunkOnJava#1520: the doc comment still described the old behaviour, a material given only to a part that had none yet. It now replaces what a type map gave, on every release, and a panel of 2015 to 2023 is given none.
dc69b45 to
3c7ce61
Compare
Summary
Revit 2015 to 2023 curtain mullions and panels now have their type and family, and the mullions their material; a panel of these releases takes no material. It's a seventh slice of #1190 (on #1519, RE-366, whose parts these are). It's measured against the same Autodesk samples saved by a later release and, for the first time on these releases, against Revit's own IFC2X3 exports:
rac_advanced2015 to 2020, Vitoria'sALD26 Beforeand the held-out models (counts). It also fixes a material defect on Autodesk's 2024 samples, where every curtain part wasWood - Laminated, glazed panels included.Motivation
With #1519,
rac_advanced2023 draws 3,312 members and 1,349 panels with no type object,ObjectType,Other.Family,Other.Type,Referenceor material: the largest gap left against its 2024 save. A name entry on these releases holds no category (RE-109), soresolve_typecan't run, andtype_and_family_names_2023looks for a type record these types don't have.Changes
src/research/partition_schema_mvp/curtain.rs:attach_curtain_part_types_32. The type is the one id in a part's reference list with a name entry and no record of its own; the family is theu32atCURTAIN_TYPE_FAMILY_OFFSET_32(+265) of the type's data.src/research/partition_schema_mvp.rs: the 2015 to 2023 branch calls it andattach_curtain_materials, and leaves these types out oftype_material_names_32..../materials.rs,src/research/partition_curtain_materials.rs: on these releases a part's material comes fromm_renderStyleIdalone, named byscan_materials_32. The 64-bit offsets aren't read there.native_render_stylesnow namesNATIVE_RELEASES..../materials.rs: on every release a type'sm_renderStyleIdreplaces what a map gave. 2024 and later change here, so please look at this line on its own. On 2015 to 2023 a panel takes none (CURTAIN_WALL_PANEL_CLASS): see Testing.probes/examples/probe_re367_curtain_materials.rs,reports/element-framing/RE-367-2015-2023-curtain-part-types.md, an addendum todocs/format-reconnaissance.md,docs/status.md,docs/evidence.md,docs/supported-profile.md,changelog.d/added/1190-2015-2023-curtain-part-types.md,changelog.d/fixed/1190-curtain-part-render-style.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 --corpuspasses on this branch (integration301 of 301, 6 filtered out), andcargo +1.87 check --profile ci --all-targetsis clean.-f racadv=true -f holdout=true, every scorer; IFC2X3, counted apart; details in RE-367 section 4a).rac_advanced2015 to 2020, scored against the one export of the project:Pset_PlateCommon.Reference1,349 of 1,349 equal (0 before),Pset_MemberCommon.Reference3,276 of 3,284 (8 missing, 0 different), andNameandObjectTypeequal on 3,276 members and 1,349 plates. Vitoria'sALD26 Before: the same on its 67 plates and 206 members (Reference67 of 67 and 206 of 208), and 1,005 of 1,280 elements typed against 732, the type's name equal to Revit's on 1,079 of 1,079. The held-outALD26 Project(counts): the same on 67 and 206. A held-out Revit 2022 office: its one plate equal.Tags the maintainer held this PR for.type_objects_vs_ifc.pyfindsTagequal on 938 ofALD26 Before's 1,005 typed elements; the 67 that differ are the plates. Revit's export has fiveIfcPlateTypes for them, each Tagged with the ElementId of a plate of the file, where rvt-rs writes the type's own ElementId. That is the exporter's convention, not a wrong type: Autodesk's open-source exporter sets anIfcPlatetype'sTagfrom the instance (FamilyExporterUtil.ExportGenericType, read for what Revit writes), and Revit's IFC4 export of the BIM4LCA office at building permit shows the same on its 269 plates, the only typeTags that differ there.ALD26 Before's 67 plates has the material a panel type'sm_renderStyleIdgives (0 of 67 equal, run 42534783950), and no other Revit export scores a panel's material on these releases. Why is not decoded, so the panels keep none until a rule gives Revit's. The 206 mullions' materials equal Revit's, with and without this change.Tag: type id, type name, family,ObjectTypeandReferenceare equal onrac_advanced's 3,276 mullions and 1,349 panels on each of 2015 to 2023, and onrac_basic's 144 and 44. None differs.rac_advanced's 36 stringers take no type here.probe_re367_curtain_materials, each type'sm_renderStyleIdagainst its 2024 save's, on the types both hold:rac_advanced511 of 511 on 2015 to 2020 and 517 of 517 on 2021 to 2023;rac_basic82 of 82 on 2015 and 91 of 91 on 2016 to 2023;rme_basicandrme_advanced465 of 465 on 2015 and 2019;rst_basic3 of 3 on 2017 to 2023 and 2 of 2 on 2016.rac_basic144 of 144 andrac_advanced3,276 of 3,276 on each save; the panels (44 and 1,349) have none.attach_curtain_materialsleft alone a part that already had a material, so a type map beatm_renderStyleId. Onrac_advanced,rme_advancedandrme_basicof 2024 every mullion and panel wasWood - Laminated. Nowrac_advancedisMetal - Aluminium, Black-Anodized,Glass(Glazed) andStone - Granite(Solid), and thermesamplesMetall - Lack - Grau,Fassade - Glas(Verglasung) andFassade - Metallpanel(Metallpanel). 4,625 and 2,079 and 2,079 parts change, materials only. Why the map gives one material there isn't decoded.rac_advanced's 2015 to 2023 saves. A Revit export of one of these three 2024 samples would settle it.Reference, with no value changed, and the members their materials. No element appears or goes, and no storey, GlobalId, host or void changes. Only those members change material: no element of any other class does, and no panel.SOURCE_DATE_EPOCH=1700000000). The 13 that change are 2017 to 2023 files holding curtain walls. No file of 2024 or later, or before 2015, changes. The local files hold no 2024 save of those three samples; among Autodesk's samples, only those three of 2024 and later change.tools/bench.shand attached the before / afterAudit-honesty checklist
changelog.d/<section>/(seechangelog.d/README.md), not inCHANGELOG.mddocs/status.md,docs/evidence.md,docs/supported-profile.md.NetVolumeandNetSurfaceArea, a curtain wall'sLength.probes/examples/and a dated addendum todocs/format-reconnaissance.mdare includedprobes/examples/probe_re367_curtain_materials.rs.Legal and contribution hygiene
CONTRIBUTING.md)CLEANROOM.md)testuser,111111,FY-20XX, etc.) and contain no real-world PIIBreaking changes
None. A new public constant; existing names and types are unchanged.
Screenshots or output samples
The same project's materials:
Related issues
Refs #1190, #1519, #1158
Notes
This changes 2024's output on three samples, so it's the part of this PR I'd review most closely. It could be split out if you'd rather take it separately.
rvtReview's commits on this branch: the panel narrowing (
e7e1d5b8) and the report, changelog and addendum for it (dd5ecf61). The branch is rebased onmainafter #1519, #1518 and #1587.