Repository navigation
Description
Your work
BIM coordinator; I also maintain an internal IfcOpenShell-based clash tool
rvt-rs version
0.18.0 (Windows binary from the Releases page, SHA256 checked against SHA256SUMS)
Models
Revit 2027 (build 20260907_1515(x64), locale ESP, not workshared), structural, 68 MB, 2518 production elements. Called CHL here.
Concrete frame (beams, columns, shear walls modelled as structural columns, foundation slabs, cast-in-place stairs) and a steel roof frame of rectangular hollow sections (Autodesk's Spanish 2025 library family RHS-Sección hueca rectangular.rfa, renamed and placed through the Revit API).
Also read: the same model's backup from one day earlier (.0004.rvt, same Revit release).
What you ran
- Installed it (say how below)
- Opened a model (CLI, Python or the browser viewer)
- Inspected elements and their data
- Exported IFC
- Compared the IFC with Revit's own IFC export of the same model (rvt-ifc-compare, IfcOpenShell, or another viewer)
- Opened the IFC in other software (name it below)
Against Revit's own export
Revit's export: IFC4 Reference View, shared coordinates, exported 8 days before the .rvt was last saved. I separated model changes from reader differences by ElementId: of the 478 elements rvt-rs had and Revit's export did not, 430 have an ElementId above the export's highest one (created after the export).
- GlobalId and Tag (ElementId) are the same as Revit's for all 1925 elements in common.
- IFC class matches on 96.9 % (1865 / 1925). The rest: 59
Losa de cimentación(foundation slab) that Revit writes asIfcSlaband rvt-rs asIfcFooting; oneIfcMemberwritten asIfcBeam. - With saved meshes, box and volume match Revit's within 10 mm / 5 % for 72.6 % of elements (1392 / 1917); with
--no-saved-meshes, 18.7 %. - Storey matches for 75 % of common elements (104 reported
unsupported_geometry_missing_level). - Clash engine (structural vs. the plumbing model): with the saved-mesh IFC it finds 96.4 % of the clashes it finds with Revit's IFC (2910 / 3020), with identical penetration depths (median and p90 difference 0 mm); 99.7 % where the structural element has the same geometry in both IFCs.
What worked and what did not
Installed from the Windows zip, no build. Ran rvt-info --json, rvt-elements --counts, rvt-ifc (default and --no-saved-meshes, with --diagnostics), rvt-ifc-compare, and IfcOpenShell element by element (GlobalId, Tag, class, storey, axis-aligned box, mesh volume). Opened the IFC in our clash engine.
Worked well: identity (same GlobalId/Tag as Revit), so rvt-rs can check what a delivered IFC is missing; clash results equal to Revit's where the geometry is decoded. Performance (Ryzen 7 5800H, 32 GB): rvt-info 0.1 s / 3 MB; rvt-elements --counts 7.8 s / 698 MB; rvt-ifc --no-saved-meshes 9.4 s / 695 MB; rvt-ifc with saved meshes 22.6 s / 3.0 GB.
Did not work:
- 84 element records not exported (RE-30), depending on the save, not on the elements. All 84 are steel roof members of the RHS family (structural framing, upper storeys). From the backup saved one day earlier rvt-rs reads the same 84 GlobalIds without the warning; from the latest save it drops them. Revit's export has them.
- Joins not trimmed: only 275 of 694 beams match Revit's box and volume; beams come out longer (median about +475 mm, not cut back at columns), and shear walls modelled as structural columns are not cut either. In the clash run this adds about 160 clashes Revit's IFC does not give.
- Floor parts change GlobalId between saves. A multi-layer floor is exported as parts (
…:<ElementId>:4,:5,:11). Between the two consecutive saves all 40 parts kept their names but none kept its GlobalId, so tools that track elements across versions (clash status, BCF) see them as removed and new on every save. - Stairs: 8 without geometry (
unsupported_geometry_profile); 6 flights 13 to 20 times Revit's volume. - Memory with saved meshes is 4.3 times the box export on this 68 MB file.
Trying to reproduce item 1 on a shareable model (not reproduced). In Revit 2027 I built a small model with only our own families (an RHS framing family and a concrete column family made from Revit's templates): 51 members like the lost ones (same section and storeys, placed through the API, centred, end joins disallowed), then 720 more joined to them in one save, then 38 columns plus edits to the first 51 saved with Ctrl+S rather than Save As (as CHL was). rvt-rs read every element of every save (51, 51, 771, 809) with no RE-30 warning, so the trigger is something else in CHL's history. I cannot share CHL, but I can run any probe, build or --redacted report you send on it locally and post the output.
Suggestion: rvt-diff compares streams, not elements. Reading two saves and diffing by GlobalId worked well for "what changed between saves" (here: 163 beams and 10 columns added in one day, plus the 84 above). An element-level mode would be useful.
Anonymized diagnostics attached (--anonymize). No model or IFC is shared.
May we count this as a practitioner report for the 1.0 criteria?
Yes
Activity
HWT-25 commentedon Nov 12, 2026
CHL-structural.diagnostics.json
CHL-structural.diagnostics.zip
DrunkOnJava commentedon Nov 12, 2026
Thank you. This is the first outside comparison with Revit's own export, element by element.
What it shows:
The 1.0 criteria. Yes, it counts. It is the second practitioner report for criterion P1 (
docs/release-1.0-criteria.md), and the first measured against Revit's export. The criterion asks that each finding become an issue, so here is where each one stands.IfcFooting, 1 member asIfcBeamStructuralFoundationmaps toIfcFootingas a whole category today. A slab has to be told from a footing.rvt-diffTwo things you could run, since you offered. Neither prints a name or an ElementId.
For Revit 2027: 84 framing records of one save are read with no ElementId, and the save a day before reads all 84 (#1829) #1838. On both saves:
For each partition, it counts the placed instances whose ElementId comes from an enclosing record: in a declared record, in an undeclared record, or after the partition's record chain. The difference between the two saves locates the 84.
For A layered floor's parts take new GlobalIds on every save of a Revit 2027 model (#1829) #1840. For both saves:
Unique Document GUIDfromrvt-info --json;If the document GUID is the same and the Tags are the same, the GlobalIds we derive should not change, so that would be our bug.
Memory. Your 3.0 GB was 0.18.0. In 0.19.0, our release timing of the default export against 0.18.0 put the peak on the largest models at 0.53 to 0.67 of 0.18.0's, and on the
rac_basicsamples at 0.30. On the Autodesk structural samples, though, it rose (rst_basic, 143 to 168 MiB, 1.18). So whether CHL falls is not known. If you rerunrvt-ifcon CHL with 0.19.0, the peak and time would tell us. Its exports differ from 0.18.0's (property and quantity additions), so compare the identity and clash results again rather than assume them.HWT-25 commentedon Nov 12, 2026
Thank you for the issues. Here is what I could run today, on the same two saves of CHL (09/11 backup and 10/11 latest).
0.19.0 on CHL (Windows binary, SHA256 checked; same machine: Ryzen 7 5800H, 32 GB; Revit closed):
--no-saved-meshesIdentity and clash results, re-measured rather than assumed: the same 2403 elements and the same 84 records not exported (RE-30); against Revit's IFC, the same 1925 GlobalIds and Tags in common, class equal on 1865, box and volume equal on 1392 / 1917. Clash run against the same plumbing model: 3314 clashes (0.18.0 gave 3316; the 3314 are all among 0.18.0's), 96.4 % of Revit-IFC clashes found, penetration depths still identical (median and p90 difference 0 mm).
For #1840 (floor parts). The documents differ:
ff4a120b-40a3-4ae9-89d8-86a210cecc728add98bc-4759-400d-9c68-97877eef9b2aOne layered floor (Tag
499263), its 11 parts, fromrvt-ifc --no-saved-mesheson each save:1sv3ZCCUc3Pg_MvcMV7UWX0I3MzxJcY5TAm$1KdeFIv11AregEvZo0ePY31A0b7oJ31SM6cIIcc2Ogi2W1peuyRI2yMqqB1KAAaeHyf7AJkP1z0UYTcPaxc9Lx9GiLLVRzs_2ZAebWcQc35QyOMJETCi2E2bCakpups7ahGMVnwv3ypb3Pips6Amg9DQfDOn7SJpiJ2JkI9d6is9XgTK4mFa5Jmv1nxLOi_Xg2gRTHW9O96naA1xvidnNkM1z9qvKjfQsION3zOjuLVW22hhlhMcA0593X2koeTbfNc8BvU1VWQZCaNk2yCAo4jMwBGOnRNoOqYknE0DwvVuqVU0mx$9I9pupYHS1tpQKC9AIDlhKBHvfS$XpU1ELjEXX1M0kPTAkLQpgU2O2HbQOku9Q5ev3rSCoWSgZm3pztHoji_0dQrHxiA7CadS1WnddtY52AceDZFORkVAX$3QhjgPgFIFHu_DkfDMSU7_So the Tags and part numbers are the same, while the document GUID changes with the save. If the parts' GlobalIds are derived from the document GUID, that would explain it. For reference, Revit's own IFC4 export writes this floor as a single
IfcSlabwith a stable GlobalId and no parts, and rvt-rs writes the host floor itself with that same GlobalId (1GIEblKKb9aOPHLDpftUL6) on both saves: onlythe parts change.
For #1838 (the probe). There is no Rust toolchain on the machine that holds CHL, and the file cannot leave it. Could you attach a Windows build of
probe_re35_record_wrapper(or ship it in the next release's zip)? I will run it on both saves and post the output.The anonymized 0.19.0 diagnostics (
rvt-ifc --anonymize) follow in the next comment.HWT-25 commentedon Nov 12, 2026
CHL-structural-0.19.0.diagnostics.zip
docs(release): P1 counts HWT-25's Revit 2027 structural report, the f…
DrunkOnJava commentedon Nov 12, 2026
Thank you, this settles one issue outright and gives two numbers we didn't have.
#1840 is ours. A layered floor's first piece takes Revit's own GlobalId, which the file keeps from save to save, and that is why the host floor holds
1GIEblKKb9aOPHLDpftUL6. Revit gives the further pieces no GlobalId, so rvt-rs derives one from the document'sUnique Document GUID, the Tag and the piece's place (element_global_idsinsrc/ifc/step_writer.rs). Your two saves have different document GUIDs, so every derived id moves while the Tags stay the same. The fix is to derive a further piece's GlobalId from its host's Revit GlobalId, which holds across saves and is still unique to the document. That changes the GlobalIds of every further piece once, in every file that has them, so it goes through a full Measure first. I'll link the pull request on #1840.Your note that Revit's IFC4 export writes this floor as one
IfcSlabwith no parts is a separate question: whether rvt-rs should write the parts at all for this export. I've added it to #1840 to be looked at after the GlobalIds hold.Memory and time on CHL.
rst_basicof 2023 to 2027 took 1.05 to 1.08 the time, and Snowdon Towers Structural 1.27, because the beams' saved graphics are read now.--no-saved-meshesat 1.26 (9.4 to 11.8 s) is a path we have not timed. Measure run 43322060634 times exactly that: 0.19.0 against 0.18.0 with--no-saved-meshes, onrst_basicof 2023 to 2027 and Snowdon Towers Structural and Architectural. I'll post what it shows here.#1838's probe. Understood that CHL stays on its machine, which has no Rust toolchain. No workflow builds a probe for Windows today. I'll add one that builds any probe for Windows, macOS and Linux and keeps the binary as a run artifact (downloading needs a GitHub login), and post the link here once it has run.
The diagnostics. They agree with the issues as filed:
ci: a workflow builds one probe for Windows, macOS and Linux as run a…
DrunkOnJava commentedon Nov 12, 2026
#1838's probe, built for Windows. Run 43323817009 built
probe_re35_record_wrapperfrommain's probe code. Its artifacts are at the bottom of the run page (downloading needs a GitHub login):probe_re35_record_wrapper-g852f3cad-x86_64-pc-windows-msvc: the.exe, statically linked like the released CLIs, withSHA256SUMSandBUILT-FROM.txtbeside it.On each of the two saves:
It prints, for each partition, how many placed instances take their ElementId from an enclosing record: in a declared record, in an undeclared record, or after the partition's record chain. It prints no name or ElementId. Posting the two outputs locates the 84 framing records.
Also new, for #1840. #1850 makes a layered floor's parts keep their GlobalIds between saves. #1854 tracks the same for openings, property sets and relationships, whose GlobalIds still follow the document GUID.
DrunkOnJava commentedon Nov 12, 2026
--no-saved-meshes, 0.18.0 against 0.19.0 on our files: no rise. Measure run 43322060634 timed both releases with--no-saved-mesheson 35 files: each file exported three times in turn on one runner, with the median kept. 0.19.0 takes 0.76 to 0.95 of 0.18.0's time on every one of them:rst_basicof 2023 to 2027: 0.92 to 0.95;Peak memory is 0.81 to 1.02 of 0.18.0's.
So CHL's 9.4 to 11.8 s is not something these files show. If you can, run each version three times in turn on CHL (0.18.0, 0.19.0, 0.18.0, ...) with the same flags and post the six times. That tells a real rise from run-to-run variance, which on a laptop can be large (thermal limits, the file cache warming on the first run). If the rise holds, it is specific to something CHL has and our samples do not, and we would find it with a stage timing.
DrunkOnJava commentedon Nov 12, 2026
#1841's probe, built for Windows. This is for the beams and braces Revit writes as IfcMember, or the reverse. Run 43331994944 built
probe_1841_framing_usagefrom #1853's branch (12564944). Its artifacts are at the bottom of the run page (downloading needs a GitHub login):probe_1841_framing_usage-g12564944-x86_64-pc-windows-msvc: the.exe, statically linked, withSHA256SUMSandBUILT-FROM.txtbeside it. macOS and Linux builds are there too.On each save, with Revit's own IFC export of that save as the second argument:
It exports the model, takes every element rvt-rs writes as IfcBeam or IfcMember, and reads each one's structural usage from the file. Then, for each usage value, it counts how many rvt-rs writes as each class and how many Revit's export writes as each class. It prints counts only, no names or ElementIds, so the output can be posted as it is.
On Autodesk's samples (PR #1853), every framing instance reads a usage. rvt-rs writes usages 3 to 6 as IfcBeam and 0 as IfcMember. Your pair would show which usage Revit writes as IfcMember, which is the half of #1841 the samples cannot answer, since they have no Revit export.
HWT-25 commentedon Nov 13, 2026
#1838's probe on the two saves (the Windows build from run 43323817009; SHA256 checked; the
.rvthash is the same before and after):re35-0911.txt(09/11 backup, where the 84 are read):re35-1011.txt(10/11 latest, where the 84 are dropped):What I read in it (you will know better):
Partitions/0keeps the same chain (49818 records, same end) but 143 fewer of its records are declared, and its placed instances in an undeclared record go from 2 to 86, which is +84. The latest save also has partitions the backup does not (5, 9, 10, 11, 12), with 68 more placed instances in undeclared records inPartitions/9. Revit's numbered backups beside the file (.0004on 09/11,.0010to.0012on 10/11) suggest both were plain saves (Ctrl+S) over the same local file rather than Save As.--no-saved-meshes, six runs in turn on CHL (same flags each time:--no-saved-meshes -o <file>, no--diagnostics; peak working set in brackets):Medians: 0.18.0 13.3 s, 0.19.0 12.6 s (0.95). So no rise: my earlier 9.4 to 11.8 s was run-to-run variance on the laptop (the same version ranges from 10 to 16 s here), and also not the same flags (the 0.19.0 run had
--diagnostics, the 0.18.0 one did not). Sorry for the noise.#1841's probe: it needs Revit's export of the same save. My Revit IFC is from an earlier state than either save, so I will run it with the next export of this model and post the counts.
HWT-25 commentedon Nov 13, 2026
A correction to #1838, and #1841's probe. I now have Revit's IFC4 export of the latest save itself (its header says
NumberOfSaves: 14, the same count of incrementsrvt-infogives for the.rvt), so the comparison no longer mixes in model changes.#1838: the 84 were deleted from the model, not lost by rvt-rs. None of the 84 GlobalIds, and none of their Tags, is in Revit's export of the latest save. The roof framing was redrawn between the 09/11 and 10/11 saves (other section types now), and Revit's plain save left the old records in
Partitions/0while the element table no longer declares them, which fits the probe's +84 undeclared. Against the same-save export, everything Revit writes, rvt-rs writes too:IfcFooting, and the one member below)So the RE-30 warning here ("the IFC is incomplete: 84 model element record(s) … not exported") reports records of deleted elements. My report called them lost because I compared with an export made eight days earlier. Sorry for that: #1838 may be a warning to reword (records of elements no longer declared are not missing elements) rather than missing data.
#1841's probe (the Windows build from run 43331994944; SHA256 checked; the
.rvtand the IFC hashes are the same before and after):The one framing instance Revit writes as
IfcMemberhas usage 8.research: probe_1841_framing_usage counts each framing instance's str…
8 remaining items
HWT-25 commentedon Nov 13, 2026
#1841: the structural usage values, and the slab export.
Structural usage (read through the Revit API on the latest save, the instance parameter Structural Usage that a
schedule groups by; Revit's interface here is in Spanish, so the English names are the API's):
915 in all. The stored value equals the API's
StructuralInstanceUsagevalue in all three. So the one framing instanceRevit writes as
IfcMemberis the horizontal bracing.The slab export:
the model's active IFC category template is the one Revit ships (
exportlayers-ifc-IAI). It maps StructuralFoundations to
IfcSlab/BASESLABand Floors toIfcSlab/FLOOR. None of the 59, and no type of theirs, sets"Export to IFC As" or a predefined type.
IfcSlabare Revit floors in the StructuralFoundations category. All 59 carry
$as their own PredefinedType. Their 4IfcSlabTypeall carryBASESLAB. Theother slabs' types carry
FLOOR(and oneLANDING).#1856: this export holds no
Qto_StairFlightBaseQuantities(base quantities were on, but Revit wrote none forthe flights), so it cannot settle that one.
fix(ifc): a floor of the Structural Foundations category is written a…
fix(ifc): a stair landing of a Revit 2025 to 2027 save gets its landi…
DrunkOnJava commentedon Nov 19, 2026
@HWT-25, thank you for the Structural Usage table and the slab answers above. They settled #1841, and I should have said so here at the time. So that nothing in this report is left hanging, here is where each part stands:
IfcMembertypedBRACE, and the 59 slabs areIfcSlabtypedBASESLAB, as Revit writes them.This issue stays open as the report's home until those are done. You do not owe anything here.