Repository navigation
feat(ifc): a room neither the walk nor the span closes takes its floor's outline from its solid's edges, on Revit 2024 (#90) (RE-374) - #1587
Merged
Conversation
… give (#90) (RE-374)
…r's outline from its solid's edges, on Revit 2024 (#90) (RE-374) A room solid's edges lie between its list of objects and its first face, and each gives both faces' (u, v) at two of its points, so a wall face that is not a rectangle gives its real end, which its uv box does not. Where the walk of RE-101 and the span of RE-316 read no outline, the floor's edges, each drawn as the wall it meets, give one (SpaceOutlineSource stored_solid_edges), read only where the solid is a prism of its floor up to 4 ft above it and every edge's two planes agree. On the 2,952 room solids of Measure run 42580514237 it never differs from an outline main reads (2,177 agree) and adds two rooms on Revit 2024: the office's 3095831 at permit, 1864.737 ft2 against Revit's IFC4 export's 1864.74, and Snowdon Towers' 830902, 304.059 against the VIM's 304.058.
…he cylinder edges and the one room the plane check refuses (#90)
…the same-project gates' (#90)
…ferences from ours, not the VIM's own values (#90)
…out ones included (#90)
DrunkOnJava
force-pushed
the
feat/90-room-solid-edges
branch
from
November 9, 2026 09:07
a836a0c to
09ef38b
Compare
DrunkOnJava
marked this pull request as ready for review
November 9, 2026 09:07
3 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Nov 9, 2026
…s an enumerated or list value (#1524) (#1590) ## Summary `tools/re/bodies_across_saves.py` skips a property that holds no single value instead of raising on it, so the same-project gate can judge an export in which a product carries an enumerated or list property. ## Motivation Measure run [42585494298](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42585494298) on #1524 failed `Same-project gates` for the six `rme_advanced` and `rme_basic` saves of 2025, 2026 and 2027. Each one's `bodies_across_saves.txt` holds a traceback in place of its result: `AttributeError: entity instance of type 'IFC4.IfcPropertyEnumeratedValue' has no attribute 'NominalValue'`, from `properties`. The other nine samples (`rac_advanced`, `rac_basic`, `rst_basic`, each of 2025 to 2027) passed. #1524 types the 724 and 728 ducts of those samples, and a typed duct carries `Pset_DuctSegmentTypeCommon.Shape`, which the writer emits as an `IfcPropertyEnumeratedValue` (#686). `properties` read `prop.NominalValue` on every property of every product it compares, and an enumerated or list value has none. No export the check had read held one before: the same six saves passed in run [42583038481](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42583038481) on #1587's head, whose exports type no duct there. ## Changes - `tools/re/bodies_across_saves.py`: `properties` reads `NominalValue` with `getattr(prop, "NominalValue", None)` and skips a property without one, as it already skipped one whose `NominalValue` is `None`. `placement_source` reads it the same way (it tested the property's name first, so it was not reached for a Shape, but it had the same pattern). ## Testing Unit tests: N/A. The check is the scorer run on the exports that tripped it. - **The six exports that failed**, from the `keep_ifc` run [42585486357](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42585486357) of #1524's head, through this branch's scorer with each save held to the 2024 and 2025 saves as Measure holds it: all six print `bodies across saves: PASS` and exit 0, with their ports, cut openings, door and window sizes, properties and census lines compared against the 2025 save (for example `rme_advanced` 2026: ports 7,276 of 7,276 the same, properties 5,158 equal and none different, census 6,605 bodies the same). The same scorer from `main` raises the `AttributeError` on all six, as the run's own files show. - **The Measure with this branch as its scorers' ref** is dispatched on #1524's head next; its `same-project gates` verdict is the check on that pull request. ## Audit-honesty checklist - [x] The gate still fails on a real difference: only the read of a property without a single value changed; every comparison after it is as before. - [x] No emojis, private paths or PII. ## Legal and contribution hygiene - [x] Apache-2.0. No Autodesk source, internals or NDA material. ## Breaking changes None.
This was referenced Nov 9, 2026
DrunkOnJava
added a commit
that referenced
this pull request
Nov 9, 2026
… own record on Revit 2015 to 2027, and ports their SystemType (#1190) (RE-371) (#1524) ## Summary A duct's own native record (`RbsDuctCurve`) gives it its type, its section, the line it runs along at any slope, its taps, its reference level and elevations, and each connector's join, direction and system, on every release from 2015 to 2027. Every duct is now typed and drawn as its section along that line, with Revit's `Constraints` values; every port gets the `SystemType` its connector's system names, and Exhaust Air ports are `SOURCEANDSINK`; on 2015 to 2022 the family instances' ports and joins are read. On Snowdon Towers HVAC (2025) the record gives Revit's own type name, `Length`, section, body and `Constraints` values on 1,053 of 1,053 ducts. It's an eleventh slice of #1190, stacked on #1523 (pipes, RE-370), whose `attach_native_pipes` it mirrors. ## Motivation - On 2015 to 2023, 2026 and 2027 a duct is an untyped `Duct-<ElementId>` box with no `Length` and two unplaced ports: 724 ducts on `rme_basic`, 728 on `rme_advanced`. - On 2024 and 2025 RE-134's byte scan typed none of Snowdon Towers HVAC's 1,053 ducts, and a duct off the model's axes (356 there) has no `Length` or ends. - A duct tapped into another has no port or join at the tap (406 on Snowdon). - No port has a `SystemType` (#834); Revit's IFC4 export writes one on every port. - Every Exhaust Air port has a direction where Revit's export writes `SOURCEANDSINK` (1,004 on Snowdon). - On 2015 to 2022 no family instance's port or join is read: 2,430 ports and no connection on 2019's `rme_basic`, against 7,370 and 2,948 on its 2024 save. ## Changes - `src/research/partition_schema_mvp/mep.rs`: `attach_native_ducts`. One projected native pass over the ducts not yet drawn along their line and the file's `AbsDuctType` records. From each duct's record: its type (`m_idType`, named by `SymbolInfo.m_name`, shaped by its sweep profile), its section (`m_dWidthOrDiameter`, `m_dHeight`, the height along `m_vNormal`), its one `GLine`, its taps (`SegmentConnectorPosition.m_paramOnCurve` between 0 and 1), each connector's join (`m_arrRefs`, type 1), and, where it's justified at its centre, its reference level (`m_assocLevelId`, before 2024 `m_idLevelStart`) and the elevations of its ends above it (`m_dOffsetStart`, `m_dOffsetEnd`). It writes the fields RE-134 writes, so the system family, `Pset_DuctSegmentTypeCommon`, quantities and end ports come from the existing code, plus the normal, the taps, the joins and the offsets. The line must pass a box test like RE-131's (the swept section is the record box within 0.002 ft); an oval duct keeps its box. It runs in the 2015 to 2023 branch and, on 2024 to 2027, before RE-134's scan; RE-134, the duct end keys and RE-172's level leave a duct the record gave values alone. `native_pipe`'s line and end reading is shared, and a pipe's record now gives its joins too. The 2015 to 2023 branch calls `attach_connector_pairs`. - `src/research/native_connectors.rs`: the connector pass reads each calculation's `m_eSystemType` (`Calculation`, `InstancePort::system_type`), names it (`distribution_system_of`: 1 and 2 `VENTILATION`, 3 `EXHAUST`, 7 `HEATING`, the classifications measured against Revit's IFC4 export; revit-ifc's `ConnectorExporter` read for the names, nothing copied), and gives an Exhaust Air connector `SOURCEANDSINK` (`port_flow_direction`). It and `family_instance_joins` read 2015 to 2027 and ids in their 4-byte form as well. `native_duct_shapes` reads 2015 to 2027. - `src/ifc/export_content.rs`: a duct drawn along its line is its section extruded along it (`BodySource` `native_duct_line`); each tap's port is on the line at its parameter; `Constraints` gets the Start, End and Middle Elevation, the Lower and Upper End Centerline, Bottom and Top Elevation, `Slope` (an `IfcRatioMeasure`) and the justification. - `src/ifc/mod.rs`, `src/ifc/step_writer.rs`, `src/ifc/entities.rs`: a port's `SystemType` is written; a port joined to a placed one takes its point with the axis turned unless exactly one of the two is a sink; a tap places no other port; a port with no direction or system read takes the opposite direction and the system of the port joined to it. `PropertyValue::Ratio`. - rvtReview's join rule, `src/ifc/export_content.rs`, `src/ifc/mod.rs`, `src/ifc/from_decoded.rs`, `docs/export-diagnostics.md` and its schema: a join of two connectors is written only where each end keeps the other as its one partner, or as the one partner both sides' lists name; the joins left out are counted in `exported.port_joins_left_out` under `connector_named_with_conflicting_partners`. `src/research/partition_schema_mvp/levels.rs`: a reference level a duct's own record named is not pushed a second time. - `probes/examples/probe_re371_ducts.rs` (each duct as the export draws it; with `--native`, each duct's record and every connector's calculation), `tools/re/ducts_vs_ifc.py`, `reports/element-framing/RE-371-native-ducts.md`, an addendum to `docs/format-reconnaissance.md`, `docs/status.md`, `docs/evidence.md`, `docs/supported-profile.md`, `changelog.d/added/1190-ducts-slopes-port-systems.md`. ## Testing Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead. - [x] `tools/check-local.sh` passes (fmt, clippy, rustdoc, build, real-file / CLI / contract checks) - `tools/check-local.sh --corpus` on the local corpus passes: all 301 real-file tests on the default and full-corpus runs, and the API doc-id check. A first run failed one test, `value_sources_offsets::project_corpus_value_sources_name_the_copy_the_reader_took`, because the new `BodySource` `native_duct_line` named no reader; the duct's own record and its type's are now noted as its value sources (`native_duct`, `native_duct_type`, listed in `docs/export-diagnostics.md`), and the export doesn't change with it. `cargo +1.87 check --all-targets` (MSRV) is clean. - [x] 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 - **Ducts against Revit's own export**, `probe_re371_ducts --native` and `tools/re/ducts_vs_ifc.py`: Snowdon Towers HVAC (2025, Revit 2025's IFC4X3 export, local only) **1,053 of 1,053 ducts** with Revit's type name, `Length`, section and body (the swept section's world box against Revit's within 0.01 ft; 1,045 round, 8 rectangular, level, vertical and sloped), and every `Constraints` value Revit writes (`Slope` on 1,012 of 1,012, none on the 41 vertical ducts, as Revit); RE1 Mechanical (MIT, `magnetar-io/revit-test-datasets`, IFC2X3) 25 of 25 with Revit's type name, `Length` and body. - **Ports against Revit's own export**, `tools/re/ports_vs_ifc.py` on the export: Snowdon Towers HVAC 5,155 ports (4,749 before; Revit 5,217, the other 62 on its 31 flex ducts, not read), 2,528 of Revit's 2,590 connections (2,122 before) and none it leaves out, every port at Revit's point (17 unplaced before), 5,008 with its axis (4,100), `SystemType` Revit's on 5,118 (0; the other 37 electrical), `FlowDirection` on 4,889 (3,496), all 1,004 Exhaust Air ports among them. RE1 Mechanical and Plumbing keep 59 of 59 and 118 of 118 connections and every flow, and every port of both now has Revit's point and axis (16 fitting ports were reversed). The BIM4LCA office's 24 pipe ports are `HEATING`, as Revit's (local only). - **Not against a Revit export on 2015 to 2023, 2026 or 2027**: none I have holds a duct. Held to the same Autodesk MEP samples saved by 2024 (pinned, fetched, never stored), which can't catch an error that save shares. Every duct of the twelve MEP saves is typed and drawn, and its type, length, section, ends, level and offsets are the 2024 save's but for nine 2015 ducts the project replaced or redrew between the saves. On 2025 to 2027 every port and connection is the 2024 save's (2026 and 2027 leave unjoined family ports unplaced, as before). On 2019, 7,184 of 7,370 ports and 2,764 of 2,948 connections (all of them the 2024 save's), no port's system another than the 2024 save's; the rest are family instances whose 2019 record the native path doesn't decode (report §5). - **Joins left out** (rvtReview). On 2015 and 2019 the records of five duct taps in each of `rme_basic` and `rme_advanced` name one duct connector as the partner of two others: three joins in a chain, of which the 2024 save has two and not the third. The first form of this change wrote all three (2,774 connections on `rme_basic` 2019, 2,769 of them the 2024 save's). A join is now written only where each of its ends keeps the other, so 10 joins on each of those four saves are left out, five the 2024 save has and five it does not, and each is counted. Of the 93 models of Measure run [42585494298](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42585494298) those four are the only ones with a join left out. On `rme_basic` 2019 the connections are 2,764 and all the 2024 save's, and the cost is 10 ports: 5 lose the place their join gave them and 5 their direction (flow different 38 to 43). The ports table and the per-file table of RE-371 are restated, with the comparison that reproduces the old rows to the digit (section 5). - **Byte identity** against the RE-370 branch, `SOURCE_DATE_EPOCH=1700000000`: 25 of 58 sample saves (Autodesk's 53 of 2015 to 2027, Snowdon Towers' five of 2024) and 173 of 206 local project files of 2008 to 2027 export IFC and diagnostics byte for byte as before, Core Interior among them. On each of the 33 + 33 that change, an element-by-element comparison (class, name, every property set and representation by GlobalId; every port's name, flow, type, system and place; the connections) finds nothing changed but ducts, ports and connections. The files that change are the MEP files, the 2025 Snowdon, Golden Nugget and サンプル files, RE1 Mechanical and Plumbing (port axes), the office (24 ports' `SystemType`), and architectural files of 2015 to 2023 whose MEP family instances (lighting, sanitary, electrical fixtures, 30 to 36 a file) now have ports. Report §6 has the table. The join rule changes the four saves above further, and no other model of that run. - [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) has no ducts and 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 slower where the work is the same: 5.1 to 5.2 s before and 5.1 to 5.3 s now on Snowdon Towers HVAC, 15.2 s and 15.6 s on `rme_basic` 2027, 30.2 s and 28.1 s on Golden Nugget's building services, 3.9 s on both for `rac_advanced` 2023. A 2015 to 2022 MEP file now reads its family instances' ports and joins, as 2024 does: `rme_basic` 2019 takes 6.7 s against 4.4 s (its 2024 save takes 17.4 s). ``` tools/fetch-autodesk-samples.sh samples 2015 2027 cargo run --profile ci -p rvt-probes --example probe_re371_ducts -- samples/2019-rme_basic_sample_project.rvt > 2019.txt cargo run --profile ci -p rvt-probes --example probe_re371_ducts -- samples/2024-rmebasicsampleproject.rvt > 2024.txt diff 2019.txt 2024.txt cargo run --profile ci -p rvt-probes --example probe_re371_ducts -- --native _project_corpus/Revit/RE1-Mechanical.rvt > native.txt python3 tools/re/ducts_vs_ifc.py native.txt _project_corpus/Revit/RE1-Mechanical.ifc cargo run --profile ci --bin rvt-ifc -- _project_corpus/Revit/RE1-Mechanical.rvt -o re1.ifc python3 tools/re/ports_vs_ifc.py re1.ifc _project_corpus/Revit/RE1-Mechanical.ifc ``` ## 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` (the 2024 and 2025, 2026 and 2023 rows), `docs/supported-profile.md`. - [x] If a new limitation was introduced, it is documented in the PR body and in-code - None new. Not read, report §7: flex ducts and pipes (a `GHermiteSpline`), oval ducts' sweep, a pipe's `Constraints` elevations and a level pipe's invert outside 2025 (no oracle), a port's `SystemType` other than the four measured and any electrical port's, the flow directions revit-ifc's export order decides (266 on Snowdon), and the 2015 to 2022 family instances the native path doesn't decode. - [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 - [x] If this is a reverse-engineering finding: a reproducible probe under `probes/examples/` and a dated addendum to `docs/format-reconnaissance.md` are included - `probes/examples/probe_re371_ducts.rs`, `tools/re/ducts_vs_ifc.py`. ## 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`) - revit-ifc's `ConnectorExporter` (CLEANROOM.md source 5) was read for how Revit's export names a classification and orders a join's ports; no code was copied or translated. - [x] Any new test fixtures use synthetic values (`testuser`, `111111`, `FY-20XX`, etc.) and contain no real-world PII - No fixtures. ## Breaking changes Public API, research and IFC model types: - `native_connectors::port_flow_direction` takes a fourth argument, the connector's system classification. - `native_connectors::ConnectorPorts::segments` maps to a `Calculation` (direction and system) instead of a direction. - `native_connectors::InstancePort` has a `system_type` field, and `ifc::entities::IfcEntity::Port` a `system_type` field (`#[serde(default)]`, so serialised models still read). - `ifc::entities::PropertyValue` has a `Ratio` variant; an exhaustive `match` outside the crate needs an arm for it. - `ifc::IfcModel` and `ifc::ExportedModelDiagnostics` have a `port_joins_left_out` field (a count by reason); a struct literal of either outside the crate needs it. New: `NATIVE_DUCT_REVIT_VERSIONS`, `DUCT_NORMAL_FIELDS`, `DUCT_OFFSET_FIELDS`, `DUCT_TAPS_FIELD`, `DuctBody`, `duct_body_from_fields`, `duct_offsets_from_fields`, `duct_taps_from_fields`, `square_to`, `native_connectors::{Calculation, EXHAUST_AIR, distribution_system_of}`, `DuctShape::of_profile` made public. ## Screenshots or output samples `rme_basic`, duct 420841, as the export writes it: ``` 2019 before IfcDuctSegment 'Duct-420841' box body, no Length, ports Port_420841_0, _1 NOTDEFINED 2019 after IfcDuctSegment 'Rectangular Duct:Mitered Elbows / Taps:420841' native_duct_line, Length 4.202239 m, ports InPort_420841_0 SINK, OutPort_420841_1, _4, _5 SOURCE (two taps), all VENTILATION Constraints: Reference Level 'Level 2', Middle Elevation 3.0132 m, Slope 0.000009, ... 2024 save the same ``` ## Related issues Refs #1190, #96, #834, #869 ## Notes Rebased on `main` after RE-370 and after #1518, #1519 and #1587 landed. rvtReview's commits on this branch are the join rule (`baab0262`) and the restated RE-371 (`215fd384`). --------- Co-authored-by: puzzbobb <--?> Co-authored-by: Griffin Long <[email protected]>
3 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Nov 9, 2026
…type, family and material, and a type's own material (#1190) (RE-367) (#1520) ## 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_advanced` 2015 to 2020, Vitoria's `ALD26 Before` and the held-out models (counts). It also fixes a material defect on Autodesk's 2024 samples, where every curtain part was `Wood - Laminated`, glazed panels included. ## Motivation With #1519, `rac_advanced` 2023 draws 3,312 members and 1,349 panels with no type object, `ObjectType`, `Other.Family`, `Other.Type`, `Reference` or material: the largest gap left against its 2024 save. A name entry on these releases holds no category (RE-109), so `resolve_type` can't run, and `type_and_family_names_2023` looks 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 the `u32` at `CURTAIN_TYPE_FAMILY_OFFSET_32` (+265) of the type's data. - `src/research/partition_schema_mvp.rs`: the 2015 to 2023 branch calls it and `attach_curtain_materials`, and leaves these types out of `type_material_names_32`. - `.../materials.rs`, `src/research/partition_curtain_materials.rs`: on these releases a part's material comes from `m_renderStyleId` alone, named by `scan_materials_32`. The 64-bit offsets aren't read there. `native_render_styles` now names `NATIVE_RELEASES`. - `.../materials.rs`: on every release a type's `m_renderStyleId` replaces 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 to `docs/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. - [x] `tools/check-local.sh` passes (fmt, clippy, rustdoc, build, real-file / CLI / contract checks) - `tools/check-local.sh --corpus` passes on this branch (`integration` 301 of 301, 6 filtered out), and `cargo +1.87 check --profile ci --all-targets` is clean. - [x] 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 - **Against Revit's own exports** (Measure run [42592510812](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42592510812), `-f racadv=true -f holdout=true`, every scorer; IFC2X3, counted apart; details in RE-367 section 4a). `rac_advanced` 2015 to 2020, scored against the one export of the project: `Pset_PlateCommon.Reference` 1,349 of 1,349 equal (0 before), `Pset_MemberCommon.Reference` 3,276 of 3,284 (8 missing, 0 different), and `Name` and `ObjectType` equal on 3,276 members and 1,349 plates. Vitoria's `ALD26 Before`: the same on its 67 plates and 206 members (`Reference` 67 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-out `ALD26 Project` (counts): the same on 67 and 206. A held-out Revit 2022 office: its one plate equal. - **The 67 type `Tag`s the maintainer held this PR for.** `type_objects_vs_ifc.py` finds `Tag` equal on 938 of `ALD26 Before`'s 1,005 typed elements; the 67 that differ are the plates. Revit's export has five `IfcPlateType`s 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 an `IfcPlate` type's `Tag` from 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 type `Tag`s that differ there. - **A panel takes no material on 2015 to 2023.** None of `ALD26 Before`'s 67 plates has the material a panel type's `m_renderStyleId` gives (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. - Against the 2024 save's export, by `Tag`: type id, type name, family, `ObjectType` and `Reference` are equal on `rac_advanced`'s 3,276 mullions and 1,349 panels on each of 2015 to 2023, and on `rac_basic`'s 144 and 44. None differs. `rac_advanced`'s 36 stringers take no type here. - Materials, by `probe_re367_curtain_materials`, each type's `m_renderStyleId` against its 2024 save's, on the types both hold: `rac_advanced` 511 of 511 on 2015 to 2020 and 517 of 517 on 2021 to 2023; `rac_basic` 82 of 82 on 2015 and 91 of 91 on 2016 to 2023; `rme_basic` and `rme_advanced` 465 of 465 on 2015 and 2019; `rst_basic` 3 of 3 on 2017 to 2023 and 2 of 2 on 2016. - Mullions' materials against the 2024 export, with the fix below: `rac_basic` 144 of 144 and `rac_advanced` 3,276 of 3,276 on each save; the panels (44 and 1,349) have none. - **The 2024 fix.** `attach_curtain_materials` left alone a part that already had a material, so a type map beat `m_renderStyleId`. On `rac_advanced`, `rme_advanced` and `rme_basic` of 2024 every mullion and panel was `Wood - Laminated`. Now `rac_advanced` is `Metal - Aluminium, Black-Anodized`, `Glass` (`Glazed`) and `Stone - Granite` (`Solid`), and the `rme` samples `Metall - Lack - Grau`, `Fassade - Glas` (`Verglasung`) and `Fassade - Metallpanel` (`Metallpanel`). 4,625 and 2,079 and 2,079 parts change, materials only. Why the map gives one material there isn't decoded. - **What backs that fix, and what doesn't.** Against Revit's own exports, 20,989 mullions and panels equal Revit's before and after: the BIM4LCA office at both stages (10,263 and 10,300), its terrain housing (414) and RE1 Architecture (12). So no regression shows, but none of those is a part this changes. The new values rest on RE-201's rule, Revit's on Snowdon's 1,773 parts, on the types' own names, and on `rac_advanced`'s 2015 to 2023 saves. A Revit export of one of these three 2024 samples would settle it. - Against #1519's head, across 33 saves of 2015 to 2023: 36,584 members and 15,055 panels gain names and `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. - Byte identity: of 206 local project files of 2008 to 2027, 193 export IFC and diagnostics byte for byte as #1519's head does (`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. - [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. Not benchmarked: it adds one pass over the type records on files that hold curtain parts. ``` tools/fetch-autodesk-samples.sh samples 2015 2024 cargo run --profile ci -p rvt-probes --example probe_re367_curtain_materials -- samples/2023-racadvancedsampleproject.rvt 2023 > 2023.txt cargo run --profile ci -p rvt-probes --example probe_re367_curtain_materials -- samples/2024-racadvancedsampleproject.rvt 2024 > 2024.txt diff 2023.txt 2024.txt ``` ## 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`. - [x] If a new limitation was introduced, it is documented in the PR body and in-code - None new. Still not read, RE-367 §6: a curtain wall's own type, a stringer's, a part's `NetVolume` and `NetSurfaceArea`, a curtain wall's `Length`. - [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 - [x] If this is a reverse-engineering finding: a reproducible probe under `probes/examples/` and a dated addendum to `docs/format-reconnaissance.md` are included - `probes/examples/probe_re367_curtain_materials.rs`. ## 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. A new public constant; existing names and types are unchanged. ## Screenshots or output samples The same project's materials: ``` rac_advanced 2024, before 50 x 150mm: Wood - Laminated Glazed: Wood - Laminated Solid: Wood - Laminated rac_advanced 2024, now 50 x 150mm: Metal - Aluminium, Black-Anodized Glazed: Glass Solid: Stone - Granite rac_advanced 2023, now 50 x 150mm: Metal - Aluminium, Black-Anodized Glazed: Glass Solid: Stone - Granite ``` ## 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 on `main` after #1519, #1518 and #1587. --------- Co-authored-by: Griffin Long <[email protected]>
DrunkOnJava
added a commit
that referenced
this pull request
Nov 9, 2026
…and, and three stale statements it found (W10, #1555) (#1597) ## Summary The first time the pages' numbers were re-run from the documented command and compared. [`docs/w10-rerun.md`](docs/w10-rerun.md) records the run, each verdict and what the command does not produce; three statements on the supported profile and the evidence page that no longer matched the code are corrected. Closes #1555. ## Motivation W10 of the 1.0 criteria asks that the numbers on the README and the supported profile that rest on models anyone can fetch can be re-run with one documented command. The naming half has been checked in CI since #1192. The re-run half was documented and never done: nobody had dispatched the command and compared its output with the pages. ## Changes - `docs/w10-rerun.md` (new): [Measure run 42596736395](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42596736395), the command of `docs/reference-models.md` as written (`-f base=none -f nordic=true -f r2025=true -f samples=true`) on `main` at `df44583f`. `tools/ci/measured_numbers.py`'s own reading of the two pages gives 87 clauses with a number; 52 of them (197 numbers) rest on a model marked `redistributable` or `fetched by Measure`, and each was read against the scorer files of the run's `measure-head` artifact: **29 equal, 3 different, 20 not produced by the command.** The page lists where each equal one is printed and, for each one not produced, the flag, probe or scorer that produces it. - The three differences, all corrected here: RE1 Plumbing no longer writes an element Revit's export leaves out (RE-363; `docs/supported-profile.md` and `docs/evidence.md` said one); the BIM4LCA office's doors have Revit's overall size on 268 of 269, not 266 (RE-318); the office's one room at permit that kept its box takes its floor's outline from its solid's edges (RE-374, #1587), at Revit's area and not within 0.01 ft of its outline. - `docs/release-1.0-criteria.md`: W10's re-run half says it was done once, with the counts, and that it is run again before a release that changes a number on the pages. `docs/reference-models.md`: the re-run section points to the comparison. ## Testing Unit tests: N/A. The comparison is the deliverable. - `python3 tools/ci/measured_numbers.py` (the naming check) passes on the two pages after the three corrections; `tools/ci/api-doc-ids.py` passes (every RE id cited has a report); `tools/release/changelog.py check` passes. - The run: success, and its `same-project gates` check run reads `pass: 15 samples held to their earlier saves, and the Areas on 4 saves and on the 2021 save`. - Each verdict was read from the artifact's scorer lines by hand (the page lists the file for each); where a clause was partly equal and partly not produced it is listed as equal with its remainder. The wall tops (`wall_top_cover_vs_ifc.py`) are "not produced": that scorer is not registered, and the run's `wall_heights_vs_ifc` measures another thing (606 of 607 as built). ## Audit-honesty checklist - [x] README / docs reflect the current state: the three statements that did not are corrected, and the 20 numbers the command does not produce are listed as such, not as confirmed. - [x] No emojis, private paths or PII. ## Legal and contribution hygiene - [x] Apache-2.0. No Autodesk source, internals or NDA material. ## Breaking changes None.
2 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Nov 15, 2026
…nces, never as positions, elevations, areas or volumes (#2066) ## Summary The Snowdon Towers files the reports measure on (the `.rvt` and Revit's IFC4 export from bldrs-ai/test-models, and the VIM edition) carry no licence, so only counts, lengths and differences from them are published. A sweep of the tree found absolute Snowdon figures in 28 files. Each is rewritten to the difference or length it stood for, or dropped. Griffin chose the full cleanup: the repository here, and the GitHub posts and release notes alongside it. ## Changes - **Site transform** (rotation, translation, vertical shift): `docs/reference-models.md`, RE-30, RE-52, RE-78, RE-83, and the export note in `research/witness-registry.json`. - **Room areas** (830902; 2181757's floor and sections; a record box): `CHANGELOG.md`, `docs/status.md`, `docs/rooms.md`, `docs/format-reconnaissance.md`, RE-374, and the rustdoc of `ROOM_PRISM_HEIGHT_FEET` and the `stored_solid_edges` source. - **Elevations and positions**: RE-33, RE-48, RE-49, RE-51, RE-52, RE-59, RE-100, RE-101 and `probe_re99_shaft_openings`'s module doc. Where a length or difference carries the point, it is given instead: 76.75 ft tall, 87.7 ft above the floor, 0.754 ft lower, 2.0 ft above it, 180 by 228 ft. - **Volumes and areas**: a flight's volume (RE-47), a beam's section area (RE-423, now a ratio of 0.58), and the #331 slab pieces' areas (`CHANGELOG.md`). - **Second pass** (`1893090c`, `f4856542`): this one read each table and paragraph whose heading or neighbour names Snowdon, not only the lines that do. It found: - two rooms' areas (RE-101); - a door's positions across its wall in internal feet (RE-121, now measured from the wall's face); - four roofs' volumes against Revit's (RE-401, now the percentage over); - wall 1996082's tops (RE-383, now differences); - beam 627866's direction (RE-49, dropped). RE-383 and RE-49 are from rvtReview's read. ## Testing Docs and doc comments only; no output changes. - `git grep` finds none of the figures left. - `research/witness-registry.json` still parses, and nothing hashes its text. - `tools/ci/api-doc-ids.py` passes. - The two `src/` files change in `///` comments only, so arm with `--no-gates "src/ changes are doc comments only; no output moves"`. Outside the tree, done the same day: - Ten posts are rewritten the same way, each with a dated edit note: PR #1587's, #297's, #332's and #336's bodies, issue #331's and #309's bodies, and comments on #1589, #295, #1165 and #1732. - Their earlier revisions are being deleted from GitHub's edit history. - The v0.17.0 release notes are fixed (release notes keep no public history). What cannot be withdrawn: - the git history of `main`, which is not rewritten; - the rustdoc of crate versions already published to docs.rs; - notification emails already sent; - GH Archive's copy of each post as first written. ## Audit-honesty checklist - [x] No figure that a claim rests on is lost: every agreement is kept as its difference or tolerance. ## Legal and contribution hygiene - [x] Apache-2.0. Removes figures measured on unlicensed third-party files. ## Breaking changes None. https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut
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
On Revit 2024, a room whose stored solid neither the walk (RE-101) nor the span (RE-316) closes now takes its floor's outline from the solid's edges. The rule applies only where the solid is a prism of its floor up to 4 ft above it. The outline source is
SpaceOutlineSourcestored_solid_edges. On the probe run it never differs from an outlinemainreads, and it adds two rooms: one checked against Revit's IFC4 export, one against Revit's VIM area.Motivation
#90: rooms kept on their record box. The walk and the span draw each wall from its face's uv box, which is the face's parameter range, not its outline. So a room with a wall face that is not a rectangle does not close and keeps its box. A solid's edges give each wall's real ends.
Changes
src/research/partition_room_boundaries.rs:solid_topologyreads a solid's faces (indices 4 to 4 + n - 1, n the count of its list of objects) and its edges (04 82 08 00, 113 bytes, between the list and the first face).edge_outline_atandedge_outline_of_solids_atdraw the floor's outline and refuse, with a reason, any solid that is not a prism of its floor up toROOM_PRISM_HEIGHT_FEET(4 ft), or whose edges' two planes disagree.ROOM_SOLID_EDGES_REVIT_VERSIONSis[2024].src/research/partition_schema_mvp/rooms.rs: the edges are read after the walk and the span, only where both fail.src/ifc/export_content.rsandelement_provenance.rs:SpaceOutlineSourcestored_solid_edges, value sourceroom_solid_faces.src/ifc/schedule_csv.rs: the schedule gives the area of such a room.src/ifc/mod.rs,docs/schemas/export-diagnostics.schema.json: theexported.edge_outline_spacescounter.src/bin/rvt_ifc.rs: the summary line.tests/value_sources_offsets.rs: the re-read of the new profile source.tools/re/space_kinds_vs_ifc.pyandspace_overlaps_vs_ifc.py: the new outline source.rvt-mcp/src/schema.rsanddocs/mcp.md: the new value.probes/examples/probe_re374_room_solid_edges.rs; reportreports/element-framing/RE-374-room-solid-edges.md; addendum indocs/format-reconnaissance.md.docs/rooms.md,docs/status.md,docs/export-diagnostics.md;changelog.d/added/90-room-solid-edges.md.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 headb86fd83e, the rule as it lands. It covers 2,952 room solids on 51 models: Autodesk's samples 2015 to 2027, the BIM4LCA office as built and at permit, the terrain offices, Core Interior, Einhoven, RE1 and puzzbobb's Revit 2025 models.mainreads a room and the edges accept it, the edges give the same outline on all 2,177 (area to 0.01 ft², extent to 0.001 ft); none differs.mainreads and 593 it keeps on the box. Of those 773 refusals, 564 have a point between the floor and 4 ft, 179 an unread face whose edges are at more than one height, 27 floor edges that do not close, 2 a sloped face, and 1 an edge its two planes place differently (edge_faces_disagree: the office's room 1681182 as built, which failed to close before the guard).mainkeeps on their box, both on Revit 2024:Vim.Room.Area, local only, since Snowdon's IFC4 export holds noIfcSpace).dbe56298, before the plane guard, gave the same comparison.b86fd83eagainstmain(58fd08f2), withsamples,nordic,r2025andholdout, every scorer:edge_outline_spaces1 andbounding_box_spacesdown by 1;main(19 of 19 hashes equal; counts only): 15 of the 18 hold 336 rooms and the edges read none, so the held-out set exercises the rule on no room; thesame-project gatescheck run onb86fd83epasses (15 samples held to their earlier saves, the Areas on 4 saves and on the 2021 save).Audit-honesty checklist
docs/rooms.md,docs/status.md,docs/export-diagnostics.mdchangelog.d/added/probes/examples/probe_re374_room_solid_edges.rsand a dated addendum todocs/format-reconnaissance.mdLegal and contribution hygiene
CONTRIBUTING.md)CLEANROOM.md). Contributor declaration: every format fact here comes from byte observations of the files named above and the exports Revit made of them. No Autodesk or ODA SDK source, disassembly, leaked document or NDA material was used. The VIM edition of Snowdon Towers is used only as an oracle for Revit's room areas, locally, and is not committed.Breaking changes
None.
ExportedModelDiagnostics(#[non_exhaustive]) gainsedge_outline_spaces, with#[serde(default)].Screenshots or output samples
Probe, the office at building permit (run 42583042107):
Related issues
Refs #90. Four Snowdon Towers rooms that need a section above their floor remain on their box.
Edited 2026-11-15: absolute Snowdon Towers figures (positions, elevations, areas) are removed. The Snowdon files measured here have no licence, so only counts, lengths and differences from them are published.