Repository navigation
feat(ifc): a stair takes the predefined type its runs and landings give, as Revit's export decides it (#323) - #968
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c8bf39e4e3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
0c94ef3 to
9a3ccf2
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9a2e99a017
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
6611a40 to
4132c03
Compare
…ve, as Revit's export decides it (#323)
…stair, as Revit's export writes all ten of the office's (#323)
…nd landings, measured on the office and R2025 (#323)
… part shared by two stairs counts (#323)
…ns do, as revit-ifc's StairsExporter decides it (#323)
…e its runs do, as revit-ifc's StairsExporter decides it (#323)" This reverts commit 07f15afe75f806d08306960c512c5ccce3aa2c55.
…efore its runs' type, as measured on the office (#323)
269d7de to
da25a18
Compare
… as retitled (#979) ## Summary The contribution map's rows for #323, #810, #824 and #878 take their issues' current titles, and ROADMAP's 0.8.0 paragraph names what each still owes. ## Motivation Today's landings narrowed four issues: #968 and #974 left #323 only its roof parts, #972 left #810 two doors, #975 and #978 left #824 the roof hatch openings, and #970 left #878 the 2015 elements' GlobalIds. The map says it lists each open issue "with each issue's own title". ## Changes - `docs/contribution-map.md`: four rows retitled. - `ROADMAP.md`: #323 (roof parts), #810 (two doors), #824 (roof hatch openings). ## 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.sh`: CI. - [x] Docs only; every map row compared with `gh issue list --state open`. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [ ] A user-visible change has its entry as a fragment under `changelog.d/`: not needed, docs only - [x] Commit messages describe what changed and why - [x] No emojis in code, docs, or commit messages - [x] No private paths, personal email addresses, or internal jargon in committed files ## Legal and contribution hygiene - [x] Apache-2.0 - [x] No Autodesk proprietary content - [x] No fixtures ## Breaking changes None. ## Related issues Refs #323, #810, #824, #878
Summary
A stair's
PredefinedTypeis now the one Revit's export gives it from its runs and landings, where every stair was.NOTDEFINED.or unset:SPIRAL_STAIR,STRAIGHT_RUN_STAIR,TWO_STRAIGHT_RUN_STAIR,QUARTER_TURN_STAIR,HALF_TURN_STAIR,DOUBLE_RETURN_STAIRorTHREE_QUARTER_TURN_STAIR. On the BIM4LCA office all 16 stairs of each file have Revit's value, where 2 did, and so do the 5 R2025 stair models. Part of #323.Motivation
#323 is stairs and their parts as Revit exports them. After #962 typed the flights, the stairs themselves were the remaining
PredefinedTypegap: Revit's export of the office writes 10DOUBLE_RETURN_STAIR, 2STRAIGHT_RUN_STAIR, 1HALF_TURN_STAIR, 1SPIRAL_STAIRand 2NOTDEFINED.Changes
src/native_stairs.rs:RunShapecarries each run'sm_runTypeand its climb direction (its first tread'sm_runDirProj);stair_predefined_typeapplies revit-ifc'sStairsExporter.GetValidatedStairTyperule (CLEANROOM.md source 5) to a stair's runs in ElementId order and its landing count. Three runs each square to the one before with two landings are alwaysDOUBLE_RETURN_STAIR: revit-ifc's flight-path start test holds on all ten office stairs of that layout although their runs'm_bottomElevations differ, and a first rule comparing those wrote all tenTWO_QUARTER_TURN_STAIR.src/partition_schema_mvp.rs:attach_stair_run_shapesgroups runs and landings by the stair they aggregate into and setsSTAIR_TYPE_FIELDon the stair.src/ifc/export_content.rs: anIfcStairtakes it after a predefined type its own export parameters set (RE-45).reports/element-framing/RE-217-stair-runs-2025.md§12,docs/status.md,docs/support-matrix.json(element-records-stair-aggregates, whose note said a stair's own type was not read),changelog.d/added/stair-predefined-types.md(and the flights fragment's "not read yet" sentence dropped).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.sh: CI.Verified end to end on real Revit files. Measure 40175841982, this change against
main(51287f2), default models plus-f nordic=true -f r2025=true,predefined_types_vs_ifcandtype_objects_vs_ifc:STRAIGHT_RUN_STAIR)SPIRAL_STAIR)Revit keys a type's second and later type objects by entity and predefined type (B73), so with each stair's value ten more office stair type objects take Revit's GlobalId (12,029 → 12,039 of 12,358 on the as-built file). Only these seven models' IFC changes, and no other scorer's output.
Re-measured after the Codex fix (stairs typed after
attach_stair_namesresolves shared parts): Measure 40177777679 againstmain(9afafa7), the same counts and the same scorers changed.Witness: Core Interior's export is unchanged (it has no stair runs).
Not re-measured: Snowdon Towers (local only).
Audit-honesty checklist
changelog.d/.NOTDEFINED.(RE-217 §12)Legal and contribution hygiene
m_runTypeandm_runDirProjare read from the file's own schema (Formats/Latest) bynative_document; the layout rule is from revit-ifc, the open-source LGPL exporter CLEANROOM.md lists as source 5, read for behaviour, not copied. No Autodesk SDK source, disassembly or NDA material was used.Breaking changes
None.
RunShapeandnative_run_shapeschanged shape inside the research surface (unstable-research);stair_predefined_type,STAIR_TYPESandSTAIR_TYPE_FIELDare new there.Screenshots or output samples
Related issues
Refs #323