Skip to content

feat(ifc): a GGTag is walked as a group of one point, so the roofs it alone kept as a block are drawn from their saved meshes (#1630) (RE-401) - #1650

Merged
DrunkOnJava merged 6 commits into
mainfrom
feat/ggtag-group
Nov 10, 2026
Merged

DrunkOnJava merged 6 commits into
mainfrom
feat/ggtag-group

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Summary

A GGTag in a body's saved graphics is a group of exactly one GPoint, with a test point to select the group by and no surface. The walk refused the class, which kept every roof that holds one partial, and 4 of Snowdon Towers Architectural's 10 roofs that stayed the level block of their sketch outline had no other reason. Walked as a group, 6 bodies of Snowdon are drawn from their saved meshes: the 4 roofs (each Revit's volume to 1.5e-7, every vertex of Revit's body within 0.000006 ft of rvt-rs's) and 2 slabs (within 0.009% in volume), and one roof on each of rac_advanced's five saves, which have no Revit export. No other export of the 118 models Measure reads moves.

Motivation

#1630: 10 of Snowdon Towers' 20 roofs stay a level block, 4.9% to 133% above Revit's volume. probe_re389_roof_blocks lists what keeps each: GGTag is the one reason of 9 of the 10 and the only one of 4.

Changes

  • src/research/native_graphics_traversal.rs: "GGTag" joins the group arm (GElement, GGroup, GFilter), so its children are visited and its GPoint is excluded as a branch with no surface, as every point is.
  • probes/examples/probe_re389_roof_blocks.rs and probe_re389_roof_graphics_tree.rs: what keeps each roof a block, and the graph of four of them.
  • reports/element-framing/RE-401-ggtag-group.md, changelog.d/changed/1630-ggtag-group.md, docs/format-reconnaissance.md (addendum) and the roofs sentence of docs/status.md.

Testing

Unit tests are banned in this repository; none are added.

  • Verified end to end on real Revit files. Measure run 42890115878, unfiltered (nordic, r2025, samples, racadv, bimcollab, holdout), head 008437f5 (this change before its rebase onto main, kept under refs/archive/2026-11-10/cited/) against main at 38dff86c, 118 models on each side: 6 exports move (rac_advanced 2023 to 2027 and Snowdon Towers Architectural 2024), the other 112 are byte-identical, no census regression and no body or placement regression.
  • Against Revit's own export: run 42895732087 kept the exports of the 2024 samples, and Snowdon's, scored against the local copy of Revit's IFC4 export, gain 6 meshes (IfcRoof 10 to 14 triangulated bodies, IfcSlab 3 to 5, no other class): 4 of 4 roofs match in roof_bodies_vs_ifc (with the IfcSite repair of ci: Measure scores the BIM4LCA housing and timber office pairs, and RE-402 records the first measurement of the shipped rules on them (#1636) (RE-402) #1653), 2 of 2 slabs within 0.00046 ft and 0.009%. The roofs match on 2 of 20 on main and on 6 of 20 on the head.
  • The second project, pre-registered on List the shipped rules that rest on one project, and the second model that could test each #1636 (comment) before any run of this rule on it: Measure run 42903219538 (head c8aeb4cd against main at 0bb8067f, the BIM4LCA housing and the timber office): 0 exports move and no counter or scorer output differs, so the rule is not exercised there, which is not holding: it rests on Snowdon Towers Architectural alone, and on rac_advanced's five roofs that no Revit export scores.
  • CI runs the gates of tools/check-local.sh; the fast set runs while the PR is a draft and the full set once it is ready.

Audit-honesty checklist

  • Docs reflect the state after this PR: the roofs sentence of docs/status.md and the addendum of docs/format-reconnaissance.md.
  • Changelog fragment under changelog.d/changed/.
  • The limitations are in the report's section 6: the other 6 roofs keep their blocks for the reasons stated, Snowdon's Revit export is local only, and the rule is not exercised on the BIM4LCA housing or timber office.
  • No emojis, no private paths.
  • A reverse-engineering finding: two probes under probes/examples/ and a dated report.

Legal and contribution hygiene

  • Apache-2.0; no Autodesk proprietary source (the class is read from the file's own saved graphics; Revit's export is the oracle).
  • No fixtures.

Breaking changes

None to the library's API. A roof or slab whose only reason for a block was a GGTag is drawn from its saved mesh; --no-saved-meshes keeps the blocks.

Related issues

Refs #1630 (the other 6 roofs keep their blocks: the issue stays open), #1612, #1636 (the second-project row), RE-389.

@DrunkOnJava DrunkOnJava changed the title feat(ifc): a GGTag is walked as a group of one point, so the roofs it alone kept as a block are drawn from their saved meshes (#1630) (RE-400) feat(ifc): a GGTag is walked as a group of one point, so the roofs it alone kept as a block are drawn from their saved meshes (#1630) (RE-401) Nov 10, 2026
… alone kept as a block are drawn from their saved meshes (#1630) (RE-400)
…he saved-graphics tree of four of them (#1630) (RE-400)
…t walking it so draws 4 roofs and 2 slabs of Snowdon Towers from their saved meshes, each Revit's (#1630) (RE-401)
…ot exercised on the housing or the timber office (#1630) (RE-401)
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 10, 2026 21:39
rvt-rs-review[bot]
rvt-rs-review Bot previously approved these changes Nov 10, 2026
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) November 10, 2026 22:18
@DrunkOnJava
DrunkOnJava merged commit 15767c3 into main Nov 10, 2026
36 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/ggtag-group branch November 10, 2026 22:37
DrunkOnJava added a commit that referenced this pull request Nov 11, 2026
…ad for several symbols no longer repeats the writer's fallback (#1667) (#1668)

## Summary

Every type object now has a GlobalId of its own. In the type-object loop
of `src/ifc/step_writer.rs`, a type object that finds no Revit GlobalId
left to take gets the writer's fallback `gid(&["type", entity_name,
tag])` only when no earlier object used it, and otherwise the same
fallback with its index; the fallback is entered in `used_gids`, which
it was not. The BIM4LCA office at permit (timber), where one mullion
type was written as 7 `IfcMemberType` objects with one GlobalId
(IfcOpenShell flags the 6 repeats), now writes 7 different ones, and its
property sets and relationships, which derive theirs from the type's,
follow.

## Motivation

Closes #1667. The timber permit office is the one Measure model whose
export fails IfcOpenShell's validation: `validate: findings 24`, all
`IfcRoot.UR1` ("The attribute GlobalId should be unique"): 6
`IfcMemberType` + 12 `IfcPropertySet` + 6 `IfcRelDefinesByType` repeats
of the type `Rectangular Mullion:150 x 50 mm alumiini maalattu` (Tag
1907093). A repeated GlobalId is invalid IFC4, and importers that key
objects by GlobalId merge or drop the later ones. The same 24 findings
are in every Measure run read since #1650 on both sides, so they are on
`main`.

## Changes

- `src/ifc/step_writer.rs`: the type-object loop takes Revit's GlobalId
when it is unused, else the writer's fallback when it is unused, else
the fallback with the type object's index.
- `changelog.d/fixed/1667-unique-type-global-ids.md`.

## Testing

No unit tests added. Measured end to end on Measure's models (every
scorer, `samples=true`): run 42934767155, this head (main merged in, so
the only difference between the two sides is this change) against main.
The rows were registered on #1667 before the first run and are judged as
registered:

1. `nordic-office-timber-permit`: `validate` reads 0 findings (24 on
main), and the six `IfcMemberType` of Tag 1907093 have six different
GlobalIds.
2. Every other export is byte-identical (`ifc.sha256` of the other
models does not move), since no other model has a repeated type
GlobalId.
3. The timber permit office keeps every object it wrote: entity counts
by class unchanged, only GlobalIds differ.

Result of run 42934767155 (100 models with results on each side), judged
as registered:

1. Holds. `nordic-office-timber-permit`: `validate` reads `findings 0`
(24 on main) and `ports_vs_ifc.txt` "0 findings, 0 about the port
entities". The run keeps no IFC, so "six different GlobalIds" is read as
the validator's `IfcRoot.UR1` finding no GlobalId repeated anywhere in
the file.
2. Holds. One export moved, `nordic-office-timber-permit`; the other 99
are byte-identical (`ifc.sha256`), and no scorer line of any other model
changed.
3. Holds on its substance, with one scorer line I did not foresee. Total
entities are 76,041 on both sides, `by_ifc_type` and the whole
diagnostics are identical, and `global_ids_vs_ifc` (10,511 equal, 9 not
in Revit's export) and `class_sets_vs_ifc` are identical.
`type_objects_vs_ifc.txt` reads "type objects in ours: 1391" on main and
1397 here: it counts distinct GlobalIds, so the +6 is the repeats
becoming six further distinct ids, not new objects. That also corrects
the issue's count: 7 `IfcMemberType` shared the GlobalId, and
IfcOpenShell flags the 6 repeats. "The type objects' count the same" is
true of the objects, not of that line.

The first unfiltered run, 42928822492, compared this change, which then
lacked #1647, against newer main, so its other differences were #1647's;
this re-run, after merging main, is the one judged. The same-project
gates passed on this head (check run of 2026-11-11T01:07:24Z, "pass: 15
samples held to their earlier saves"); the semantic check read NOT
MEASURED on it (#1675: the timber office had no dump, fixed by #1677).

- [ ] `tools/check-local.sh` passes: not run locally (no local builds
here); CI runs it
- [x] Verified end to end on real Revit files: the runs above (BIM4LCA
office, Revit 2024, CC BY-SA 4.0, fetched by Measure)
- [x] If this touches the IFC exporter: the witness verdicts replay or
the changed observations are refreshed: Core Interior's GlobalIds are
not changed (row 2), so no observation moves
- [x] If this is a performance change: N/A

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR: no
capability claim changes
- [x] A user-visible change has its changelog fragment under
`changelog.d/fixed/`
- [x] No emojis, private paths or personal addresses in committed files

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0
- [x] No Autodesk proprietary source, decompiled internals or NDA'd SDK
content
- [x] No new test fixtures

## Breaking changes

None. A type object that already had a unique GlobalId keeps it; only
the repeats change.
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