Repository navigation
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
Conversation
DrunkOnJava
force-pushed
the
feat/ggtag-group
branch
from
November 10, 2026 21:15
008437f to
c8aeb4c
Compare
…ot exercised on the housing or the timber office (#1630) (RE-401)
DrunkOnJava
marked this pull request as ready for review
November 10, 2026 21:39
DrunkOnJava
enabled auto-merge (squash)
November 10, 2026 22:18
…1 addenda of the reconnaissance notes
This was referenced Nov 11, 2026
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A
GGTagin a body's saved graphics is a group of exactly oneGPoint, 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 ofrac_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_blockslists what keeps each:GGTagis 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 itsGPointis excluded as a branch with no surface, as every point is.probes/examples/probe_re389_roof_blocks.rsandprobe_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 ofdocs/status.md.Testing
Unit tests are banned in this repository; none are added.
nordic,r2025,samples,racadv,bimcollab,holdout), head008437f5(this change before its rebase ontomain, kept underrefs/archive/2026-11-10/cited/) againstmainat38dff86c, 118 models on each side: 6 exports move (rac_advanced2023 to 2027 and Snowdon Towers Architectural 2024), the other 112 are byte-identical, no census regression and no body or placement regression.IfcRoof10 to 14 triangulated bodies,IfcSlab3 to 5, no other class): 4 of 4 roofsmatchinroof_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 roofsmatchon 2 of 20 onmainand on 6 of 20 on the head.c8aeb4cdagainstmainat0bb8067f, 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 onrac_advanced's five roofs that no Revit export scores.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/status.mdand the addendum ofdocs/format-reconnaissance.md.changelog.d/changed/.probes/examples/and a dated report.Legal and contribution hygiene
Breaking changes
None to the library's API. A roof or slab whose only reason for a block was a
GGTagis drawn from its saved mesh;--no-saved-mesheskeeps 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.