Skip to content

Doors and windows: rvt-rs places the origin at the record box's centre, more than 0.5 ft from Revit's on almost all #1465

Closed

Description

@DrunkOnJava

Measured (RE-347, #1447, Measure run 42066757105, head eb6de281). rvt-rs writes a door's or window's IfcLocalPlacement origin at its record box's centre in plan (location_feet, z at the box's base). Revit's export puts it elsewhere, and the two are far apart:

  • Core Interior: 0 of 132 doors within 0.5 ft of Revit's origin in plan (all 132 within 3 ft), and all 6 windows farther than 3 ft.
  • BIM4LCA office as built: 9 of 269 doors within 0.5 ft (5 of them within 0.01 ft), 221 between 0.5 and 3 ft, 39 farther than 3 ft; 0 of 269 windows within 0.5 ft, 244 within 3 ft, 25 farther.
  • The office at permit: the same door counts; 240 of 265 windows within 3 ft and 25 farther, none within 0.5 ft. RE1 Architecture: 0 of 5 doors within 0.5 ft, 1 farther than 3 ft.
  • The held-out models: counts only, in the run's door flips: placements ... origin lines.

The axes are a separate question (#1447). The origin was left where it is when the axes were fixed.

Not measured. Where Revit's origin is. RE-343 and RE-87 give the stored transform's origin (InstanceTransform.origin, the instance's location point), which has not been compared with Revit's placement origin; a door's hinge or a window's sill centre are other candidates. Revit's origin is not the record box's centre, so the box is no stand-in for it.

What fixing would change. The location_feet of every door and window, and with it everything keyed to the filler's origin: the body's local profile (a box centred on the origin today), the opening cut's centre_feet (RE-84, RE-215), saved meshes expressed in the element's frame, and the type GlobalId's flip against the host wall (RE-167 reads the box centre). The body and the openings must stay where they are in world coordinates.

How to measure. Extend tools/re/door_placements_vs_ifc.py to print the offset of Revit's origin from the stored origin, in the instance's own axes, by state and binding. A rule with 0 wrong on the walled elements, or the offsets are a family property (the symbol's origin) and the rule needs the family.

Done when. The offset is explained by a stored value and a rule with 0 wrong is written, or the origin is left at the box's centre with the measured reason.

Refs #1447.

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