Skip to content

feat(ifc)!: the project, site, building and storeys take the GlobalIds the file stores (#878) (RE-220) - #970

Merged
DrunkOnJava merged 8 commits into
mainfrom
feat/878-stored-guids
Oct 25, 2026
Merged

DrunkOnJava merged 8 commits into
mainfrom
feat/878-stored-guids

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

Summary

The project, site, building and storeys take the GlobalIds the file stores, as Revit's export does, where rvt-rs generated all four kinds. On BIMcollab's Revit 2015 structural example the project's, site's and building's GlobalIds are now Revit's (0 → 3 of 3) and so are its five storeys' (0 → 5 of 5); on both BIM4LCA office files the project's, site's and building's (0 → 3 of 3). Part of #878 (RE-220).

Motivation

#878 is Revit's own GlobalIds on Revit 2015, where none were rebuilt. revit-ifc's GUIDUtil.CreateProjectLevelGUID (CLEANROOM.md source 5) takes the project's, building's and site's from the project information's IFC_PROJECT_GUID, IFC_BUILDING_GUID and IFC_SITE_GUID where they hold a valid value, and a Level's from its IFC_GUID. RE-208 found the 2015 example's storey values stored; RE-220 finds where all of them sit and reads them.

Changes

  • src/revit_global_ids.rs: stored_global_ids reads each stored value (<i32 parameter><u32 22><22 UTF-16 chars>): the project's, site's and building's under their own parameters where the file holds one value each; else, among values under parameter -1, the one triple related as Revit's export relates them (building = project XOR 1, site = project XOR 2 in the last bits); a storey's IFC_GUID value where its Level's id stands twice, 58 bytes apart, within 512 bytes before it, and none for a Level given two.
  • src/ifc/mod.rs: RevitGlobalIds carries project, site and building (serde default); a storey prefers its stored value over RE-48's.
  • src/ifc/step_writer.rs: the project, site and building take them in place of generated ones.
  • Probes examples/probe_878_stored_guids.rs, probe_878_project_guids.rs, probe_878_text_guids.rs; scorers tools/re/stored_guids_vs_ifc.py, project_guids_vs_ifc.py, text_guids_vs_ifc.py; tools/re/global_ids_vs_ifc.py now scores storeys by GlobalId as well as by name, and the project, site and building.
  • reports/element-framing/RE-220-stored-global-ids.md, docs/status.md, docs/support-matrix.json (revit-global-ids), docs/release-1.0-criteria.md (W5), changelog.d/added/stored-global-ids.md.

Testing

Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead.

  • tools/check-local.sh: CI.

  • Verified end to end on real Revit files. Measure 40176601924, this change against main (fa7e56b), default models plus -f nordic=true -f r2025=true -f bimcollab=true, global_ids_vs_ifc:

    model project, site, building equal to Revit's storeys with one of Revit's GlobalIds
    BIMcollab 2015 structural example 0 → 3 of 3 0 → 5 of 5
    BIM4LCA office as built (CC BY-SA 4.0) 0 → 3 of 3 10 of 10, unchanged
    BIM4LCA office at building permit 0 → 3 of 3 10 of 10, unchanged
    Core Interior, Einhoven, RE1, R2025 0 of 3, unchanged (they store none) unchanged

    Only those three files' IFC changes, and no other scorer's output.

  • Measured negative, recorded in RE-220 §1: for files that store none, the base GUID revit-ifc's GetExportId XORs the fake ids -16/-15/-14 into is no element's RE-48 GlobalId, no history episode, not BasicFileInfo's Unique Document GUID, and no GUID the file holds as text (0 of 30 models each; Measure 40176521028 for the text GUIDs).

  • Not re-measured: Snowdon Towers (local only).

Audit-honesty checklist

  • README / docs reflect the current state after this PR
  • A user-visible change has its entry as a fragment under changelog.d/
  • Resolved limitation updated (support matrix, status, 1.0 criteria W5)
  • Limitation documented: a file that stores none keeps generated project, site and building GlobalIds; the storey rule is measured on one 2015 file; the 2015 example's 241 elements' GlobalIds are still not Revit's (RE-220 §5)
  • Commit messages describe what changed and why
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files
  • Finding recorded as RE-220

Legal and contribution hygiene

  • Apache-2.0
  • No Autodesk proprietary content. Clean-room declaration: the stored values are byte observations of the files' own streams, the parameter ids are Revit's public BuiltInParameter values, and the rule for which value Revit uses is from revit-ifc, the open-source LGPL exporter CLEANROOM.md lists as source 5, read for behaviour, not copied. No Autodesk SDK source, disassembly or NDA material was used.
  • No fixtures

Breaking changes

BREAKING CHANGE: ifc::RevitGlobalIds gains three public fields, project, site and building (Option<String>, serde default). Code that builds a RevitGlobalIds with a struct literal needs them or ..Default::default(); serialised values without them deserialise as None. stored_global_ids and StoredGlobalIds are new, in the research surface. Recorded in changelog.d/changed/revit-global-ids-fields.md.

Screenshots or output samples

storeys whose GlobalId is one of Revit's: 5 of 5
IfcProject: 1 of 1 equal Revit's
IfcSite: 1 of 1 equal Revit's
IfcBuilding: 1 of 1 equal Revit's

Related issues

Refs #878

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 25, 2026 08:41
@DrunkOnJava DrunkOnJava changed the title feat(ifc): the project, site, building and storeys take the GlobalIds the file stores (#878) (RE-220) feat(ifc)!: the project, site, building and storeys take the GlobalIds the file stores (#878) (RE-220) Oct 25, 2026
@DrunkOnJava
DrunkOnJava merged commit 0304c03 into main Oct 25, 2026
28 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/878-stored-guids branch October 25, 2026 09:36
DrunkOnJava added a commit that referenced this pull request Oct 25, 2026
… as retitled (#979)

## Summary

The contribution map's rows for #323, #810, #824 and #878 take their
issues' current titles, and ROADMAP's 0.8.0 paragraph names what each
still owes.

## Motivation

Today's landings narrowed four issues: #968 and #974 left #323 only its
roof parts, #972 left #810 two doors, #975 and #978 left #824 the roof
hatch openings, and #970 left #878 the 2015 elements' GlobalIds. The map
says it lists each open issue "with each issue's own title".

## Changes

- `docs/contribution-map.md`: four rows retitled.
- `ROADMAP.md`: #323 (roof parts), #810 (two doors), #824 (roof hatch
openings).

## Testing

Unit tests are banned in this repository: do not add them. Show the
change working end to end on real files instead.

- [ ] `tools/check-local.sh`: CI.
- [x] Docs only; every map row compared with `gh issue list --state
open`.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [ ] A user-visible change has its entry as a fragment under
`changelog.d/`: not needed, docs only
- [x] Commit messages describe what changed and why
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in
committed files

## Legal and contribution hygiene

- [x] Apache-2.0
- [x] No Autodesk proprietary content
- [x] No fixtures

## Breaking changes

None.

## Related issues

Refs #323, #810, #824, #878
@DrunkOnJava DrunkOnJava mentioned this pull request Oct 25, 2026
12 tasks done
DrunkOnJava added a commit that referenced this pull request Oct 25, 2026
## Summary

Prepares v0.8.0 (RELEASE.md steps 4 to 8), on the maintainer's go-ahead
in chat (2026-10-25: "Cut 0.8.0 after #988"). Scope: `main` at 7483b2b
(#988), nothing after it.

## Changes

- Version 0.8.0 in `Cargo.toml`, `rvt-py/Cargo.toml` (and its `=0.8.0`
pin), `rvt-wasm/Cargo.toml`, `tools/stream_evidence/Cargo.toml`,
`viewer/package.json`, `CITATION.cff` (dated 2026-10-25),
`.release-please-manifest.json`, `Cargo.lock` and `fuzz/Cargo.lock`.
- `CHANGELOG.md`: the 25 fragments assembled (`changelog.py assemble`)
into `[0.8.0] — 2026-10-25`, with an introduction and "Upgrading from
0.7" (`ElementId`, `IfcModel::type_property_sets`, `RevitGlobalIds`'s
new fields); `[Unreleased]` empty above it.
- `README.md`: the release section names 0.8.0 (packed into the crate
and the wheel).
- `rvt-py/README.md` (the wheel's README): saved parameters reach IFC
with `--revit-property-sets`.
- The Core Interior witness observations and verdicts follow from this
pull request's CI run (the IFC header carries the version), in a second
commit.

## Testing

Unit tests are banned in this repository: do not add them. Show the
change working end to end on real files instead.

- [x] `tools/check-local.sh`: CI run 40223501543 green on e8e450d (`CI
passed`).
- [x] Witness files refreshed from run 40223501543's
`octetproof-core-interior` artifact (5c701eb): only `witness_version`
(0.7.0 to 0.8.0) and the two verdict hashes differ; the IfcOpenShell and
IFClite observations are unchanged.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [x] A user-visible change has its entry in `CHANGELOG.md` (the release
assembles the fragments)
- [x] Resolved limitation updated (support matrix, status): no change in
this PR
- [x] Limitation documented: no change
- [x] Commit messages describe what changed and why
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in
committed files

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0 (see
`CONTRIBUTING.md`)
- [x] This PR contains no Autodesk proprietary source, decompiled
internals, or NDA'd SDK content (see `CLEANROOM.md`)
- [x] Any new test fixtures use synthetic values: none added

## Breaking changes

The release carries #923, #934 and #970's, listed under "Upgrading from
0.7".
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant