Skip to content

Exports break EXPRESS rules: swept solids under SweptSolid, USERDEFINED types with no ElementType, a material on a disallowed entity #1430

Closed

Description

@DrunkOnJava

Measure's EXPRESS WHERE-rule check (#1106, the rules: section of each model's schema.txt) finds rule violations in what rvt-rs writes on main, on 7 models of run 41988011289 (without #1426; with it, 11). IfcOpenShell's default validation finds none of them, which is why no gate catches them. Revit's own exports and a strict IFC4 reader can tell the difference.

Rule Models and findings What is written
IfcShapeRepresentation.CorrectItemsForType rst_basic 2024: 14, rac_advanced 2024: 2, Snowdon structural 2024: 10 (#1426 carries it to 2026 and 2027) An IfcFixedReferenceSweptAreaSolid under RepresentationType SweptSolid, which IFC4 reserves for extruded and revolved solids; it belongs under AdvancedSweptSolid (src/ifc/step_writer.rs, the SolidShape arm that returns (solid_id, "SweptSolid"))
IfcAirTerminalType, IfcElectricApplianceType, IfcSpaceType .CorrectPredefinedType BIM4LCA office as built and at permit: 1 each PredefinedType USERDEFINED with no ElementType
IfcRelAssociatesMaterial.AllowedElements BIM4LCA office as built and at permit: 1, and both terrain files: 1 A material associated with an entity the rule does not allow

Measure's held-out runs report rule findings as counts too.

Done when: an unfiltered Measure with samples and held-out models reports findings 0 in the rules: section on every model, and every value that moves is measured against Revit's export (an element or property Revit writes stays, as written by Revit), and CI fails if a finding comes back on a model it holds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ifcpriority:P1priority:P2type:bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions