Skip to content

IFC4 export writes property sets from Revit's IFC2X3 exports: Pset_QuantityTakeOff, Pset_DistributionFlowElementCommon, Pset_FlowSegment*, Pset_ProductRequirements #822

Closed

Description

@DrunkOnJava

rvt-rs writes IFC4, but some of the standard property sets it writes are IFC2X3's. They were taken from Revit's exports of the RE1 models, which are IFC2X3 (Coordination View 2.0), not IFC4 as RE-154 recorded; #820 corrected the same misreading for a room's floor finish. buildingSMART's IFC4 property set definitions (features/resources/IFC4/pset_definitions.csv of buildingSMART/ifc-gherkin-rules, the list its validation service checks property sets against) have none of these sets, and IFC reserves the Pset_ prefix for the sets it defines.

Written by rvt-rs In IFC4 What Revit's IFC4 export writes (BIM4LCA office, as built) Office values rvt-rs writes
Pset_QuantityTakeOff.Reference (the type's name), on every element with a type no such set Pset_EnvironmentalImpactIndicators.Reference, which IFC4 applies to every IfcElement (12,693 elements) 11,791
Pset_DistributionFlowElementCommon.Reference, on MEP elements no such set the entity's own set: Pset_PipeSegmentTypeCommon, Pset_SanitaryTerminalTypeCommon, Pset_LightFixtureTypeCommon and so on 358
Pset_FlowSegmentPipeSegment (Length, InvertElevation) and Pset_FlowSegmentDuctSegment (Length) no such sets Pset_PipeSegmentOccurrence.InvertElevation; the length in Qto_PipeSegmentBaseQuantities.Length none (RE1 Mechanical and Plumbing: on 94 ducts and pipes)
Pset_ProductRequirements.Name, on storeys and spaces no such set none 201
Pset_AirSideSystemInformation.Name, on storeys and spaces applies to spaces and zones, not storeys none 201

What would close this:

  1. Reference. Write the type's name in each IFC4 set that applies to the element's entity and declares Reference, from the table List every IFC4 property set of the entities rvt-rs writes, so a parameter named for any of them is written #817 generates. This replaces both Pset_QuantityTakeOff and Pset_DistributionFlowElementCommon. Revit's office export gives each class exactly those sets, apart from sets revit-ifc matches by a prefix of the entity's name (Pset_SpaceHeaterTypeCommon on spaces, Pset_StairFlightCommon on stairs, Pset_RampFlightCommon on ramps), which IFC4 does not apply to those entities.
  2. Pipes and ducts. The invert in Pset_PipeSegmentOccurrence, the length in IFC4's base quantities.
  3. Storeys and spaces. Neither name set.
  4. A check that every Pset_ set rvt-rs writes is an IFC4 set, with that property, applying to the entity it is written on, so this cannot come back.

The comparisons with the RE1 models' IFC2X3 exports (tests/common_reference.rs, tests/reference_values.rs, tests/duct_fields.rs and tools/re/psets_vs_ifc.py) then compare each IFC2X3 set with the IFC4 one that holds the same value, as #820 does for the space coverings.

Related, separate: Revit's office export writes FireRating on 26 walls and 2 doors that carry no parameter named for it (RE-194). RE-77 reads a type's Fire Rating, but rvt-rs writes it only in its own set; whether those values are the types' Fire Rating is to be measured.

Activity

  1. added
    area:ifc
    priority:P1
    type:bug
    on Oct 19, 2026
  2. 16 remaining items

  3. DrunkOnJava commented on Oct 19, 2026

    @DrunkOnJava
    OwnerAuthor

    All four parts shipped in v0.6.0:

    1. Reference (fix(ifc): an element's Reference is in IFC4's sets, and storeys and spaces lose IFC2X3's name sets (#822) #825): the type's name is in Pset_EnvironmentalImpactIndicators and in each IFC4 set that applies to the element's entity and declares Reference, from List every IFC4 property set of the entities rvt-rs writes, so a parameter named for any of them is written #817's table. Pset_QuantityTakeOff and Pset_DistributionFlowElementCommon are no longer written.
    2. Pipes and ducts (fix(ifc): segment lengths in IFC4's base quantities and a pipe's invert in Pset_PipeSegmentOccurrence, not IFC2X3's flow-segment sets (#822) #829): a pipe's invert is in Pset_PipeSegmentOccurrence, and a pipe's or duct's length is in Qto_PipeSegmentBaseQuantities or Qto_DuctSegmentBaseQuantities, written as IfcElementQuantity. A pipe fitting's nominal diameter moved to rvt-rs's own RvtElementRecordGeometry (fix(ifc): a pipe fitting's nominal diameter is in rvt-rs's own set, not in Pset_PipeFittingTypeCommon, which IFC4 gives none (#822) #833), as IFC4 gives a fitting type no such property.
    3. Storeys and spaces (fix(ifc): an element's Reference is in IFC4's sets, and storeys and spaces lose IFC2X3's name sets (#822) #825): neither name set is written.
    4. The check (ci: Measure reports each export's standard property sets against IFC4's definitions (#822) #826): Measure compares every standard property set of every export with buildingSMART's published IFC4 definitions. On main at 23a9d76 (run 39273188597) it has no finding on any of the 89 exports: the reference models, both BIM4LCA office files, Autodesk's 58 samples and the 23 R2025 models. IfcOpenShell's schema validation has none either.

    The RE1 comparisons map each IFC2X3 set to the IFC4 one that holds the same value, as #820 did for the space coverings. The type Fire Rating noted at the end also shipped in 0.6.0, in Pset_*Common.FireRating.

    What this does not cover: quantity sets are not checked against definitions, and buildingSMART's own Validation Service has not been run on these exports.

  4. added a commit that references this issue on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ifcpriority:P1type:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions