Skip to content

Doors and windows: Revit's placement axes are the stored axes turned a half turn in the mixed flip state; measure what rvt-rs writes #1447

Closed

Description

@DrunkOnJava

Measured (RE-343, #1357). For a door or window set in a plain wall rvt-rs binds, Revit's IfcLocalPlacement axes are the stored transform's axes (scan_instance_transforms, RE-87) reversed (X and Y, Z the same) exactly where m_flippedX differs from m_flippedY. That is 287 of 653 doors and 286 of 626 windows (186 of 456 and 146 of 346 counted once). By building:

  • Core Interior: 39 of 132 doors.
  • BIM4LCA office as built: 102 doors and 144 windows.
  • Snowdon Towers: 44 doors and 2 windows.
  • RE1: 1 door.
  • A held-out 2026 house: 7 doors and 6 windows (counts only).

The 160 doors rvt-rs binds to no plain wall are separate: 49 are inverted relative to that rule, uniformly by IfcDoorType.

Not measured. What rvt-rs writes for these elements' local axes. It takes the stored X for a box turned off the model's axes only (turned_box, RE-87), so for most doors it probably writes default axes; that is unverified.

What fixing would change. The RefDirection and axis of the IfcLocalPlacement of every door and window whose written axes differ from Revit's: up to 573 elements in these models, the real count unknown until measured. The body is a box, so it looks the same under a half turn. The openings (RE-84, RE-215) hang off the filler's placement. Type GlobalIds do not change. Anything keyed to a local axis may move.

How to measure.

  1. A run with -f keep_ifc=true, and a new scorer tools/re/door_placements_vs_ifc.py that compares each element's placement axes in rvt-rs's IFC with Revit's, by Tag, in the internal frame, tabulated by (m_flippedX, m_flippedY) and bound or unbound.
  2. Then an unfiltered Measure with base=main for the change, expecting only door and window IfcLocalPlacement axes to move.

Done when. The scorer exists, the counts are in, and either a rule with 0 wrong on walled elements is written, or it is closed as invisible. The 49 unbound inversions stay open until the type-creator mechanism is shown (it needs the creating instance's identity).

Refs #1357.

Closed 2026-11-05 by #1456 (RE-347, Measure 42106711251). The scorer exists, and a rule with 0 wrong on walled elements is written: 1,061 of 1,061 bound doors and windows in the open models and 145 of 146 in the held-out 2024 to 2027 models differ from Revit's on 0, with 0 bodies and 0 openings moved in world coordinates, on saved meshes and on --no-saved-meshes. The 49 unbound inversions are on #1494, and the origin on #1465.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:elementspriority:P3type:bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions