Skip to content

feat(elements): export lighting fixtures, air terminals, food service, site elements, elevators and ramps from element records (RE-37) - #320

Merged
DrunkOnJava merged 1 commit into
mainfrom
feat/fixture-site-categories
Sep 23, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
feat/fixture-site-categories

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

Nine more categories export from partition element records, each as the entity Revit's own IFC4 export writes for it:

  • lighting fixtures as IfcLightFixture;
  • air terminals as IfcAirTerminal;
  • food-service equipment as IfcElectricAppliance;
  • planting, parking, entourage and hardscape as IfcBuildingElementProxy;
  • elevators as IfcTransportElement;
  • ramps as 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: nine OST_* constants, added to PRODUCT_RECORD_CATEGORIES / RECOVERED_CATEGORIES.
  • src/ifc/category_map.rs: DuctTerminal, FoodServiceEquipment, Planting, Parking, Entourage, Hardscape and VerticalCirculation rows. src/ifc/step_writer.rs: IFC4 arity rows for IFCAIRTERMINAL and IFCTRANSPORTELEMENT (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's IfcFlowTerminals 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

category entity Snowdon (IFC4, local) RE1 Mech RE1 Elec outside Revit's export
lighting fixtures IfcLightFixture 447/447 – 12/12 0
air terminals IfcAirTerminal – 7/7 – 0
food service IfcElectricAppliance 26/26 – – 0
planting, parking, entourage, hardscape IfcBuildingElementProxy 157 – – 0
elevators IfcTransportElement 2/2 – – 0
ramps IfcRamp 2/2 – – 0

Core Interior, RE1 Architecture and Plumbing, the Snowdon Structural sample and the 255ribeiro projects export unchanged.

Measured and not added:

Testing

  • tools/check-local.sh
  • Every integration test with the family corpus and the magnetar + RE1 (all four) project corpus
  • cargo +1.85.0 check --profile ci --all-targets

Audit-honesty checklist

  • Each entity follows Revit's IFC4 export on Snowdon. The air-terminal entity is the IFC4 subtype of Revit's IFC2x3 choice, and this is stated as such.
  • Omitted categories and their reasons are in the report and the support matrix.

Legal and contribution hygiene

  • Apache-2.0
  • Clean-room: byte observations scored against Revit's own exports; BuiltInCategory names from the public enum; no SDK source or decompiled material. Snowdon is measured locally and not committed.
  • No PII

Breaking changes

None.

Related issues

Refs #309, #319.


Note

Medium Risk
Changes expand real-model IFC export and category recovery on the production iter_elements path, 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.rs adds OST_* constants and registers the categories in PRODUCT_RECORD_CATEGORIES and RECOVERED_CATEGORIES. category_map.rs gains IFC rows for duct terminals, food service, planting, parking, entourage, hardscape, and vertical circulation; step_writer.rs adds schema-arity entries for IFCAIRTERMINAL and IFCTRANSPORTELEMENT.

CI and tests: Tier-2 CI now downloads pinned RE1-Electrical assets. tests/element_records_2025.rs asserts air-terminal ElementIds on RE1 Mechanical (vs Revit IfcFlowTerminal) and that RE1 Electrical exports exactly 12 IfcLightFixture ids 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.

…, 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.
@cursor

cursor Bot commented Sep 23, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot 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)

@DrunkOnJava
DrunkOnJava merged commit 1d6b0e7 into main Sep 23, 2026
23 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/fixture-site-categories branch September 23, 2026 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant