Repository navigation
feat(elements): export lighting fixtures, air terminals, food service, site elements, elevators and ramps from element records (RE-37) - #320
Merged
Conversation
…, site elements, elevators and ramps from element records (RE-37) Nine more BuiltInCategory values decode under the RE-21 instance rule with RE-35's enclosing-record ElementIds and export as the entities Revit's own IFC4 export writes for them: IfcLightFixture, IfcAirTerminal, IfcElectricAppliance, IfcBuildingElementProxy (planting, parking, entourage, hardscape), IfcTransportElement and IfcRamp. Every exported element is a Tag of Revit's own export, with none outside it, and each entity is complete: 447 lighting fixtures, 26 food-service items, 157 site proxies, 2 ramps and 2 elevators on Snowdon Towers (local only); 7 air terminals on RE1 Mechanical; 12 lighting fixtures on RE1 Electrical, the first elements that model exports. CI tier 2 now also fetches RE1 Electrical by pinned commit and hash, and tests/element_records_2025.rs checks the air terminals and the lighting fixtures. Electrical fixtures, lighting devices and slab edges are measured and left out because Revit's export omits some of them (the slab edges by non-primary design option, #319); fire alarm and data devices and electrical and mechanical equipment wait for an IFC4 reference.
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_05b74994-4f64-44e7-862e-9c1a32ff7144) |
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
Nine more categories export from partition element records, each as the entity Revit's own IFC4 export writes for it:
IfcLightFixture;IfcAirTerminal;IfcElectricAppliance;IfcBuildingElementProxy;IfcTransportElement;IfcRamp.Every exported element is one Revit's export holds, and each entity is complete.
Motivation
After RE-35 (#317) second-prologue ids are read directly. A census of the remaining categories against Revit's own exports found these nine at zero false positives. RE1 Electrical exported nothing before this.
Changes
src/partition_element_records.rs: nineOST_*constants, added toPRODUCT_RECORD_CATEGORIES/RECOVERED_CATEGORIES.src/ifc/category_map.rs:DuctTerminal,FoodServiceEquipment,Planting,Parking,Entourage,HardscapeandVerticalCirculationrows.src/ifc/step_writer.rs: IFC4 arity rows forIFCAIRTERMINALandIFCTRANSPORTELEMENT(9 each)..github/workflows/ci.yml: tier 2 fetches RE1 Electrical (MIT) by pinned commit and hash.tests/element_records_2025.rs: air terminals equal Revit'sIfcFlowTerminals on RE1 Mechanical. The 12 lighting fixtures are Revit's, and are the only elements exported, on RE1 Electrical.reports/element-framing/RE-37-fixture-site-circulation-categories.md; new support-matrix row; README, status, supported profile, ROADMAP, export diagnostics, CHANGELOG.Measurements
IfcLightFixtureIfcAirTerminalIfcElectricApplianceIfcBuildingElementProxyIfcTransportElementIfcRampCore Interior, RE1 Architecture and Plumbing, the Snowdon Structural sample and the
255ribeiroprojects export unchanged.Measured and not added:
Testing
tools/check-local.shcargo +1.85.0 check --profile ci --all-targetsAudit-honesty checklist
Legal and contribution hygiene
Breaking changes
None.
Related issues
Refs #309, #319.
Note
Medium Risk
Changes expand real-model IFC export and category recovery on the production
iter_elementspath, but behavior is gated by oracle-aligned tests and fail-closed category rules rather than broad refactors.Overview
RE-37 extends partition element-record export with nine more Revit categories, each mapped to the IFC4 entity Revit's own export uses on measured oracles (lighting fixtures, air terminals, food service, site proxies, elevators, ramps).
Decoder / export wiring:
partition_element_records.rsaddsOST_*constants and registers the categories inPRODUCT_RECORD_CATEGORIESandRECOVERED_CATEGORIES.category_map.rsgains IFC rows for duct terminals, food service, planting, parking, entourage, hardscape, and vertical circulation;step_writer.rsadds schema-arity entries forIFCAIRTERMINALandIFCTRANSPORTELEMENT.CI and tests: Tier-2 CI now downloads pinned RE1-Electrical assets.
tests/element_records_2025.rsasserts air-terminal ElementIds on RE1 Mechanical (vs RevitIfcFlowTerminal) and that RE1 Electrical exports exactly 12IfcLightFixtureids matching Revit's export.Docs: Changelog, README/status/roadmap/support matrix, export diagnostics, and a new RE-37 research report document scope, counts, and categories deliberately left out (unmeasured IFC4 entities, design-option slab edges, etc.).
Reviewed by Cursor Bugbot for commit 69f35c7. Configure here.