Repository navigation
Description
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
inevitable-co-ai commentedon Nov 4, 2026
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:
We can share the element ids that disappear if that helps.
DrunkOnJava commentedon Nov 5, 2026
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_projecthas 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 isroom_not_in_export_phasein the diagnostics, anddecoded_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 showroom_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.SpaceOutlineSourceon eachIfcSpace: Areas readarea_boundaryorarea_boundary_joined, anddocs/rooms.mdlists 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.fix(py): schedule_csv takes the py handle its fallback warning needs (#…
docs(rooms): the room-phase fallback measured on rac_basic and the 11…
fix(ifc): the room fallback counts placed rooms only, and the handle,…
docs(mcp): the tool contract as the server writes it, from CI run 420…
DrunkOnJava commentedon Nov 5, 2026
Correction to the Area advice in my earlier reply. I told you to read
RvtElementRecordGeometry.SpaceOutlineSourceand treatarea_boundaryandarea_boundary_joinedas the Areas. Do not keep that filter.SpaceOutlineSourcesays 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 valuearea_plan_topology, andarea_plan_topology_uncheckedon 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 readsnone, which that filter also misses.From 0.16.0 every
IfcSpacecarriesRvtElementRecordGeometry.SpaceKind:room,area,mep_spaceorfamily_instance, taken from the record's Revit class and not from the outline. Filter onSpaceKind == "area", and never on the values ofSpaceOutlineSource, whatever they are. The same value isspace_kindon each room of the MCP server'slist_roomsand the last column of the room schedule.docs/rooms.mdnow 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 aSpaceKind. 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,SpaceKindisareaon 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 givesarea_boundary,area_boundary_joinedandnoneonly to Areas, so use those three values for those versions only. ReadSpaceKindwhere it is present, so your importer keeps working when you move to 0.16.0. Never treat an unknown outline value as a room.feat(ifc): every IfcSpace says what it is: SpaceKind room, area, mep_…
docs(rooms): the room-phase fallback measured on the merged head, run…
fix(ifc): a project whose last phase holds no room writes the rooms o…
feat(ifc): the export phase is applied on Revit 2015, where a Revit e…
DrunkOnJava commentedon Nov 9, 2026
@inevitable-co-ai an update on both halves.
Rooms. Fixed on
mainsince 2026-11-05 (dd3dc11): a project whose last phase holds no room now writes the rooms of the latest phase that holds any. Sorac_basic's 14 rooms come back with nophase=argument, androom_phase_fallbackin 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_unifamiliarsaves 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.
chore(release): prepare v0.16.0 (#1564)
DrunkOnJava commentedon Nov 9, 2026
@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, androom_phase_fallbackin 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_advancedAreas (#1261) and to the door flips (#1357).docs: 0.17.0 is the published release, each channel checked from what…