Repository navigation
feat(ifc): a ramp or a geographic element with no predefined type of its own or its type's is NOTDEFINED on Revit 2024, as Revit's export writes it (#1713) - #2008
Merged
Conversation
…its own or its type's is NOTDEFINED on Revit 2024, as Revit's export writes it (#1713)
DrunkOnJava
marked this pull request as ready for review
November 14, 2026 11:44
4 of 5 tasks
DrunkOnJava
added a commit
that referenced
this pull request
Nov 14, 2026
…ped as a gutter, and the NOTDEFINED_DEFAULTS ramp line names Snowdon's two ramps (#1989) (#1713) (#2016) ## Summary Two comments, no code. `category_map.rs`: the gutter mapping says why `type_entity_for` may type every `IFCFLOWSEGMENT` as a gutter (`IfcPipeSegmentType` `GUTTER`): the gutter mapping is the one way rvt-rs reaches an `IfcFlowSegment` (no `EXPORT_OVERRIDE_TARGETS` value names it), so a class written as one by another path needs its type keyed on its own class first (#1989, owed since #2006). `fields.rs`: the `NOTDEFINED_DEFAULTS` ramp line names Autodesk's Snowdon Towers 2024 sample, whose 2 ramps take the default and agree with Revit's own export of that sample (the sample is on Measure; Revit's export of it is local only, so no Measure scorer reads it; owed since #2008). ## Motivation Both were raised in the review of their pull requests (#2006, #2008) and left for the next change to those lines. They record a limit of a rule and a measurement that no Measure run shows. ## Changes - `src/ifc/category_map.rs`: four comment lines above the `Gutter` mapping. - `src/research/partition_schema_mvp/fields.rs`: four comment lines in `NOTDEFINED_DEFAULTS`'s documentation. ## Testing Output-neutral: the diff changes comments only, so no export, scorer or behaviour moves and no Measure run applies. `rustfmt --check` passes on both files; CI builds and checks the rest. - [ ] `tools/check-local.sh`: no local builds; `rustfmt --check` passes; CI runs the rest. ## Audit-honesty checklist - [x] The Summary states each change the diff shows. - [x] No private paths or emojis. - [x] No capability claim changes, so no status document moves. ## Legal and contribution hygiene - [x] Apache-2.0; no Autodesk source; no fixtures. ## Breaking changes None. ## Related issues Part of #1989 and #1713 (both closed or shipped; this only records their limits).
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 ramp or a geographic element with no "IFC Predefined Type" of its own or its type's is written with the
PredefinedTypeNOTDEFINEDon Revit 2024, as Revit's export writes it. After #2002 the residual census of #1713 (Measure 43583771747, 42 models with a Revit export) had 6IfcRampand 6IfcGeographicElementunset where Revit writesNOTDEFINED, with "differs" and "NOTDEFINED where Revit writes none" at 0. The two entries join furniture, roofs, stairs, stair flights, proxies and railings inNOTDEFINED_DEFAULTS, on 2024 only: no other measured file and no held-out pair holds a ramp or a geographic element in both exports (RE-353). Part of #1713. Measure 43588992984 (621e4707againstmain, unfiltered) moves 7 exports:IfcRamp: the one ramp of each of the six BIM4LCA housing files readsNOTDEFINED, unset 1 to 0 and same 0 to 1 on every file (38 in both on the 42 models, same 32 to 38).IfcGeographicElement: 3 of the 23 on each of the two housing terrain files readNOTDEFINED, unset 3 to 0 and same 20 to 23 of 23 (Revit writesNOTDEFINEDon 3 andUSERDEFINEDon 20).NOTDEFINED, as Revit's local IFC4 export of the sample writes on both.diagnostics.json: 102 of 102 identical. The held-out pairs and every other export are identical.Motivation
#1713's table:
IfcRampwas 6 unset after #1787 ("a ramp Revit writesNOTDEFINEDon"), and the geographic elements of the terrain files were not in it.Changes
src/research/partition_schema_mvp/fields.rs:("IFCRAMP", &[2024])and("IFCGEOGRAPHICELEMENT", &[2024])inNOTDEFINED_DEFAULTS, with their evidence in the table's doc comment.Testing
Measure 43588992984:
621e4707againstmainat32ed4e6a, unfiltered with nordic, r2025, samples, holdout and racadv.diagnostics.jsonfiles are identical tomain's; the 28 scorer lines that move are the ramp and geographic-element rows of the six housing files.tools/check-local.sh: no local builds;rustfmt --checkpasses; CI runs the rest.Audit-honesty checklist
Legal and contribution hygiene
revit-ifc'sIFCExportInfoPairis cited, not quoted); no fixtures.Breaking changes
None.
Related issues
Part of #1713.