Repository navigation
fix(ifc): a curtain panel of Revit 2015 to 2023 takes its Curtain Panels category's material where Revit's export does (#1593) (RE-377) - #1602
Merged
Conversation
…terial Revit's export gives a curtain panel (#1593) (RE-377) RE-367 reads a panel's material as its type's m_renderStyleId and finds it is not Revit's on any of the 67 plates of a Revit 2018 project. The probe lists, for every curtain panel of a Revit 2015 to 2023 save, each field of its own record, its type's record and the records its reference list names that holds a material's ElementId; the scorer counts, source by source, the plates whose Revit material it gives, in counts and a digest only.
…and lists where a body holds a material's id (#1593) The probe asked for the default native releases, 2023 to 2027, so a 2018 file would have been refused; it names NATIVE_RELEASES now. It also keeps each record's body and lists the offsets at which a little-endian u32 is a material's ElementId, with the bytes around it, so that a material held in a field the graph does not decode is still found. The scorer groups those hits by a digest of the six bytes before them.
…d name each material anywhere in the file (#1593) The first run found no record of a panel, its type or the records its list names that holds the material Revit's export gives the 67 plates of a Revit 2018 project, the type's m_renderStyleId being another. A second pass over every record counts, per material, the classes of record whose body holds its ElementId, and the scorer prints that for Revit's plate materials, counts and class names only.
…lds and the graphics styles that hold a material (#1593) The second run found Revit's plate material named in the file by two GStyleElem records and by no other class of record. The probe now prints those styles' decoded root and where they hold the material, and the root of each panel type, so that a category's Object Styles material can be told from a type's.
…yles, and the scorer counts the Curtain Panels category's material (#1593) The third run found Revit's plate material on the 67 plates of a Revit 2018 project in the two graphics styles of the Curtain Panels category (the cut and the projection style), the panel type's render style being another material and its geometry map empty. The probe's whole-file pass now runs on every release and prints every object of a graphics style that holds a material; the scorer counts, for all of Revit's plates, how many have a material a Curtain Panels category style holds. The scrub keeps these count lines, and the element material totals, for the models whose results leave the runner as counts.
…els category's material where Revit's export does (#1593) (RE-377) Revit's export gives the 67 plates of a Revit 2018 project the material of the Curtain Panels category's two graphics styles (their GStyle's m_materialElemId), where the panel type's m_renderStyleId is another material on all 67; on every other model with plates the category holds none and Revit gives the type's. The panels of Revit 2015 to 2023, which RE-367 left without a material, take the category's where it holds one and the type's otherwise. 2024 and later are unchanged: no model of those releases has a category that holds a material.
… eight hex digits or a dash (#1593) The digest slot took any hex digits and dashes, which also accepts a decimal ElementId. The scorer prints only an eight-digit hex digest or a dash, so nothing leaked, but the filter is the last line of defence and now says so.
…ial on 1,484 of 1,484 plates (#1593)
DrunkOnJava
marked this pull request as ready for review
November 9, 2026 12:01
3 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Nov 9, 2026
…does, and the criteria page names #1594, so the audit passes (#1605) ## Summary `tools/maintainer/audit.py` failed two checks on `main`: the live `main-protection` ruleset differs from `.github/rulesets/main-protection.json`, and the 1.0.0 milestone holds an issue no requirement cites. This repairs both. It changes no export, no code and no workflow. ## Motivation - The live ruleset has had `strict_required_status_checks_policy` off since the maintainer's decision of 2026-11-08 (`docs/maintaining.md`, "A branch need not be up to date with `main`"), but the file in the repository still said `true`. Re-applying the ruleset from the file, as `docs/maintaining.md` describes, would have turned the up-to-date rule back on. - #1594 (a plate type's `Tag`) is a value Revit's export writes that rvt-rs writes differently, so it belongs to W7. #1593, the other uncited one, closed with #1602. ## Changes - `.github/rulesets/main-protection.json`: `strict_required_status_checks_policy` is `false`, as the live ruleset has it, and the `pull_request` rule carries the two parameters the live one has and the file lacked, `required_reviewers: []` and `require_extra_approval_for_unattributed_changes: true` (found by the second read). The file is now the whole ruleset: re-applying it with the `PUT` in `docs/maintaining.md` would have reset both to the API's defaults. - `docs/release-1.0-criteria.md`: W7's open list names the plate types' `Tag` and #1594. ## Testing Unit tests are banned here and none were added. - [x] End to end: `python3 tools/maintainer/audit.py` from this branch reads 13 of 13 checks ok. On `main` it read 9 of 13: the ruleset file, the issue labels (#1563, #1565 and #1576, fixed in the issue tracker), the Actions cache (10.0 of 10 GB, cleaned with `tools/maintainer/clean_caches.py --delete`, 744 caches to 404, 6.4 GB) and the milestone citation. - N/A: `tools/check-local.sh`, no code changed. N/A: no IFC exporter change, no performance change. ## Audit-honesty checklist - [x] The docs state what the live ruleset does. - N/A: no user-visible change, so no changelog fragment. ## Legal and contribution hygiene - [x] Licensable under Apache-2.0; no Autodesk material; no fixtures. ## 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
A curtain panel of Revit 2015 to 2023 takes the material of the Curtain Panels category's Object Styles where the category holds one, and its type's
m_renderStyleIdotherwise. Revit's export gives the 67 plates of a Revit 2018 project that category material, and the panel type's render-style material is another material on all 67. RE-367 had left these panels without a material.Closes #1593.
Motivation
#1593 asked where Revit's export takes those plates' material from. The probe (
probe_re377_panel_material_sources, withtools/re/panel_material_sources_vs_ifc.py) lists every field of a panel's record, its type's and the records its list names that holds a material's ElementId, and counts which classes of record name Revit's material anywhere in the file. On Vitoria'sALD26 Before(spent; counts and class names here):m_renderStyleId, which is not Revit's on any of the 67 (0 of 67); its geometry-material map is empty; no source the probe lists equals Revit's;GStyleElemwithm_categoryId−2000170, the Curtain Panels category, one a projection style and one a cut style, through theirGStyle'sm_materialElemId. They hold the same material.Across every model with plates (RE-377 section 3): the category's styles hold a material on the two Vitoria files only, and there Revit's plate material is the category's on 67 of 67 plates on each; on
rac_advanced(1,349 plates, the three.js IFC2X3 export), the BIM4LCA office (260 and 269), RE1 Architecture (2) and a Revit 2022 office (1) the category holds none and Revit gives the type's.Changes
src/research/partition_curtain_materials.rs:category_materialreads the material the Object Styles give a built-in category from itsGStyleElemrecords (every style the same one of the file's named materials, otherwise none).src/research/partition_schema_mvp/materials.rs: a panel of Revit 2015 to 2023 takes the Curtain Panels category's material where it has one and its type's otherwise; a mullion and every panel of 2024 and later are as before.probes/examples/probe_re377_panel_material_sources.rs,tools/re/panel_material_sources_vs_ifc.py: the probe and its scorer (counts, class and field names and a digest only).tools/ci/scrub-holdout-results.sh: keeps the scorer's count lines, andelement_materials_vs_ifc.py's totals, for held-out models,racadv-*and BIMcollab, so the rule is scored onrac_advanced's 1,349 plates and not on one file's 67 (research(curtain): a panel of Revit 2015 to 2023 has no material; read the one Revit gives (follow-up of #1520, RE-367) #1593 item 2). Fixed words, schema names and numbers; a name or an ElementId matches no pattern.reports/element-framing/RE-377-curtain-panel-category-material.md, an addendum todocs/format-reconnaissance.md,docs/status.md, and two changelog fragments.Testing
Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead.
full / CI passedon the final head5fd97f7aagainstmainatb969296e,-f samples=true -f nordic=true -f r2025=true -f racadv=true -f bimcollab=true -f holdout=true, every scorer, 118 models a side; the later commits change the scrub's digest pattern and RE-377's text only), scored withtools/re/element_materials_vs_ifc.pyagainst Revit's own exports:ALD26 Before: Revit's material on 67 of 67 plates (0 before);ALD26 Project(held out, counts) 67 of 67; hemanth1986's 2022 office (held out) 1 of 1;rac_advanced2015 to 2020 against the three.js IFC2X3 export (counts) 1,349 of 1,349 on each save. 1,484 plates in all, none different; the elements with Revit's set rise by exactly the plates on each.racadv-2015toracadv-2020, and 22 of Autodesk's sample saves (rac_advancedandrac_basicof 2015 to 2023,rme_advancedandrme_basicof 2015 and 2019), by the panels' materials alone. No file of 2024 or later moves.diagnostics.jsonis identical on all 118 models. No scorer output butelement_materials_vs_ifcand the held-out counts moves, apart from one:glb_material_colours_vs_ifccounts 67 more('revit', 'no colour')onALD26 Before, the plates, which the GLB now draws in a model material where it drew a category colour, and for which the scorer finds no colour on Revit's side of an IFC2X3 export.same-project gatespass on the head: 15 samples held to their earlier saves, and the Areas on 4 saves and on the 2021 save.Audit-honesty checklist
docs/status.md, the reconnaissance addendum.changelog.d/; the one that said a panel takes no material is amended.docs/format-reconnaissance.mdare included.Legal and contribution hygiene
Breaking changes
None to an interface. The panels of a Revit 2015 to 2023 save have a material where they had none.
Related issues
Closes #1593.