Skip to content

0.14.0: no rooms in rac_basic and other projects that 0.13.0 reads #1359

Closed

Description

@inevitable-co-ai

rvt 0.14.0 (PyPI wheel, macOS arm64, Python 3.11) reads no rooms from several projects that 0.13.0 reads in full. Same files, same calls: RevitFile(path).decoded_elements() (records with class_name "Room") and write_ifc(mode="geometry", allow_partial=True) (IFCSPACE count).

Autodesk's public sample rac_basic_sample_project.rvt (every saved year we have, 2016 to 2027; checked directly on 2016, 2020, 2025 and 2027):

rvt Room records IfcSpace element_counts total (2025 file)
0.13.0 14 14 639
0.14.0 0 0 625

Other public projects (Room records / IfcSpace):

File (Revit version) 0.13.0 0.14.0
renatogcruz/bim-modeling ANTEPROJETO_Residencia_unifamiliar.rvt (2018) 21 / 21 0 / 1
DynamoDS RefineryToolkits dt_GenerativeToolkit_TestRVT.rvt (2019) 15 / 15 0 / 0
luhansheng/revit-to-database canteen.rvt (2019) 28 / 28 28 / 29
VTT BIM4LCA ARK_NordicLCA_Office_Concrete_As-Built.rvt (2024) 234 / 308 234 / 308

The NordicLCA file keeps its counts, but in 0.14.0 about 30 IfcSpace that had no body in 0.13.0 now get one, including area plan regions named "GFA", "GFA 250mm" and "HEATED NETAREA" (about 1200 to 1300 m2 each per storey). Their footprints cover the real rooms, so a consumer that places rooms by footprint loses most of them (our import: 224 rooms placed with 0.13.0, 36 with 0.14.0). The NordicLCA Housing files behave the same way (Housing Concrete As-Built: 78 rooms placed with 0.13.0, 7 with 0.14.0). In rac_advanced_sample_project.rvt, 94 spaces have a body with 0.14.0 against 91 with 0.13.0.

Also seen: Dynamo SampleModel.rvt (2017, 16 to 0 rooms) and RefineryPrimer 03-07-01_Primer_sample_OfficeLayout.rvt (2019, 3 to 0).

Gains, for comparison: tub-bimspeed ALD26 Before.rvt (2018) has 73 rooms in both 0.13.0 and 0.14.0 (0 in 0.12.0), so that gain predates 0.14.0. The losses above are all between 0.13.0 and 0.14.0; the room-related changes in that range are the 2018 room work (#1286) and the bodiless IfcSpace filter (#1279).

Repro:

import rvt, re
m = rvt.RevitFile("rac_basic_sample_project.rvt")
print(sum(1 for e in m.decoded_elements() if e.get("class_name") == "Room"))
print(len(re.findall(r"=IFCSPACE\(", m.write_ifc(mode="geometry", allow_partial=True))))

0.13.0 prints 14 and 14; 0.14.0 prints 0 and 0.

Activity

  1. inevitable-co-ai commented on Nov 4, 2026

    @inevitable-co-ai
    Author

    A smaller one we also see from 0.12.0 to 0.13.0, still present in 0.14.0 and separate from the rooms above. Counts are doors and windows written, with the same importer code:

    • ANTEPROJETO_Residencia_unifamiliar (the three Revit 2018 saves): doors 48 to 27, windows 35 to 24 in total.
    • dach-sample: windows 27 to 15.
    • DistributingLights: 2 fewer windows.
    • Autodesk rme basic 2026 and 2027: 1 fewer door each.

    We can share the element ids that disappear if that helps.

  2. DrunkOnJava commented on Nov 5, 2026

    @DrunkOnJava
    Owner

    Thank you for the report and the repro. It reproduces here, apart from the rme_basic door.

    Rooms. The 0 comes from a different change than the two you pointed at. Since 0.14.0 an export leaves out a room whose own phase is not the export phase, and the export phase defaults to the project's last, as in Revit's exporter. rac_basic_sample_project has 14 rooms, all in Working Drawings, and its last phase is Learning Content, so on the 2016 to 2027 saves none is written. The only sign is room_not_in_export_phase in the diagnostics, and decoded_elements() drops them too.

    Today you can name the phase: m.write_ifc(mode="geometry", allow_partial=True, phase="Working Drawings"). We are also changing the default in #1435, not yet measured: when no phase is named and the last phase holds no room, the export writes the rooms of the latest phase that has any, says which, and warns in Python. We have not run your other files. If their diagnostics show room_not_in_export_phase, it is the same cause; if not, please tell us.

    Area regions. The "GFA" spaces are Revit Areas. Revit's own export of the office writes them as spaces too, and those bodies match Revit's within 0.1%. To keep them out of footprint placement, read RvtElementRecordGeometry.SpaceOutlineSource on each IfcSpace: Areas read area_boundary or area_boundary_joined, and docs/rooms.md lists every value.

    Doors and windows. We could not reproduce the rme_basic loss. On Autodesk's rme_basic 2024 to 2027, rvt-rs writes the same 124 IfcDoor (same ElementIds and GlobalIds) from 0.12.0 through 0.15.0. The only change is that 107 of them are now drawn from the saved mesh instead of a box (#1257). Across the 18 projects with a Revit IFC export that we can score, doors and windows do not drop across 0.13.0. Yes, please send the ElementIds that 0.12.0 writes and 0.13.0 does not, with each file's Revit version, and say how you count a door (IfcDoor entities, doors that fill an opening, or doors your importer places). For a few of them in Revit, we would also like Phase Created and Phase Demolished against the last phase, the Design Option and whether it is primary, and whether they are nested in another door or window. If you have a Revit IFC export of the same save, please say whether those ElementIds are in it.

  3. DrunkOnJava commented on Nov 5, 2026

    @DrunkOnJava
    Owner

    Correction to the Area advice in my earlier reply. I told you to read RvtElementRecordGeometry.SpaceOutlineSource and treat area_boundary and area_boundary_joined as the Areas. Do not keep that filter. SpaceOutlineSource says where an outline came from, not what the space is, and its values change with the rules that read outlines. A change we have open (#1428, Areas read from Revit's own plan topology) gives Areas the value area_plan_topology, and area_plan_topology_unchecked on Revit 2025 to 2027, instead. A filter on the two old values would then catch none of them, and the "GFA" regions would be back among your rooms. An Area with no body reads none, which that filter also misses.

    From 0.16.0 every IfcSpace carries RvtElementRecordGeometry.SpaceKind: room, area, mep_space or family_instance, taken from the record's Revit class and not from the outline. Filter on SpaceKind == "area", and never on the values of SpaceOutlineSource, whatever they are. The same value is space_kind on each room of the MCP server's list_rooms and the last column of the room schedule. docs/rooms.md now says which property answers which question.

    We measured it on Autodesk's samples, the BIM4LCA office, our reference models and held-out models (counts only for the held-out ones). The 111 exports hold 3,493 IfcSpaces: 3,187 rooms, 214 Areas and 92 family instances. Every one has a SpaceKind. Every Area has one of the Area outline sources, and no room or family instance has any. On the office, as built and at permit, SpaceKind is area on exactly the 30 Areas, and its 234 rooms and 44 family instances are not.

    Until 0.16.0, rvt-rs 0.14.0 and 0.15.0 write no SpaceKind. In those releases the writer gives area_boundary, area_boundary_joined and none only to Areas, so use those three values for those versions only. Read SpaceKind where it is present, so your importer keeps working when you move to 0.16.0. Never treat an unknown outline value as a room.

  4. added
    type:bug
    area:elements
    priority:P2
    community
    on Nov 8, 2026
  5. DrunkOnJava commented on Nov 9, 2026

    @DrunkOnJava
    Owner

    @inevitable-co-ai an update on both halves.

    Rooms. Fixed on main since 2026-11-05 (dd3dc11): a project whose last phase holds no room now writes the rooms of the latest phase that holds any. So rac_basic's 14 rooms come back with no phase= argument, and room_phase_fallback in the diagnostics says it happened. It wasn't in time for 0.15.0, so it ships in the next release.

    Doors and windows. The drop you saw from 0.12.0 to 0.13.0 is now its own issue, #1563, so it isn't lost under the rooms one. You offered the ElementIds of the doors and windows that disappear: for the Revit 2018 ANTEPROJETO_Residencia_unifamiliar saves they would be the quickest way to find the cause, so please post them there if you can.

    I'll leave this open until the release with the rooms fix is out.

  6. DrunkOnJava commented on Nov 9, 2026

    @DrunkOnJava
    Owner

    @inevitable-co-ai the rooms fix is out in 0.16.1, the first published release with it (dd3dc11 is in its tag; 0.15.0 was the last without it). A project whose last phase holds no room now writes the rooms of the latest phase that holds any, with no phase= argument, and room_phase_fallback in the diagnostics says it happened.

    The doors and windows half continues in #1563, where the 2018 project's own Revit export shows which ones it leaves out. I'm closing this one as I said I would. Thank you for these reports: they led to this fix, to the rac_advanced Areas (#1261) and to the door flips (#1357).

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:elementscommunitypriority:P2type:bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions