Repository navigation
feat(ifc): a shading device carries its type's name as Pset_ShadingDeviceCommon.Reference (#1016) - #1763
Merged
Conversation
…ames beside another curve (#1016)
…viceCommon.Reference
…ng devices' Pset_ShadingDeviceCommon (#1016) Both artifacts' observations are the ones Measure run 43058225020 wrote for this change (IFCPROPERTYSET 6578 to 6598, IFCPROPERTYSINGLEVALUE 28569 to 28589, IFCRELDEFINESBYPROPERTIES 7107 to 7127); tools/ci/witness-verdict.py replays both to PASS with the committed verdicts unchanged.
…th timber office files (#1016)
DrunkOnJava
marked this pull request as ready for review
November 11, 2026 19:19
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
Pset_ShadingDeviceCommonjoinsCONFIRMED_REFERENCE_SETSinsrc/ifc/export_content.rs, so a shading device now carries its type's name asPset_ShadingDeviceCommon.Reference, the set Revit's own IFC4 export writes it in. This is the smallest change that lets the next measurement score the value: the counts prove Revit writes 44 of them, and the equality of rvt-rs's value to Revit's is what that measurement decides.IsExternalis deliberately not written; see "What was not checked".Evidence
What the timber office's census says (
evidence/nordic-office-timber-as-built/psets_vs_ifc.txt):Pset_ShadingDeviceCommon.Reference: 44, equal 0, different 0, missing 44, and the value census reads('IfcIdentifier', 'JSV-1') x44; on IfcShadingDevice x44. So Revit writes the property on everyIfcShadingDeviceit holds and on no other entity, and every value is the same string,JSV-1.Pset_ShadingDeviceCommon.IsExternal: 45, ... missing 45,('IfcBoolean', True) x45; on IfcShadingDevice x44, IfcShadingDeviceType x1.Pset_ShadingDeviceCommon.Roughness: 1, ... missing 1(one value, on the type).The elements are the same elements.
class_sets_vs_ifc.txtreadsIfcShadingDevice 44 44 0 0: Revit's export holds 44 and rvt-rs writes 44, none extra, none missing.names_vs_ifc.txtreads44 system family | IfcShadingDevice | Name equal | ObjectType equal.How
Referenceis derived for a confirmed set.reference_set_kinds(export_content.rs:2499) takes every IFC4 standard set thatapplies_tothe entity and predefined type, keeps the ones inCONFIRMED_REFERENCE_SETS, andreference_property_setswrites the element's type name into each asReference. The type name isfamily_and_type's second field (export_content.rs:1040-1044), the same value every other confirmed set already carries.Pset_ShadingDeviceCommonapplies toIFCSHADINGDEVICEwith no predefined-type scope (standard_property_sets/table.rs:3681-3700), and declaresReferenceasIdentifier, so the existing machinery writes it with no other change.Why the value is likely Revit's, and why that is still a measurement.
type_objects_vs_ifc.txtreadsTypeName carried: 10518 of 10518; equal to Revit's type: 10518, andObjectType(whichstep_writer.rs:3240-3248writes asFamily:Type) is equal to Revit's on all 44 shading devices. So the type name rvt-rs reads for these 44 is Revit's type name, andJSV-1is a type name of this project (its wall sweeps areJSV-4,JSV-5,JSV-6inmesh_bodies_vs_ifc.txt). What is not measured is that Revit'sReferenceis that type name on these elements: the timber office's IFC files are not in the evidence, so the 44 values' equality to rvt-rs's rule is unmeasured. The set is added on the strength of the counts, and the next measurement decides whether it stays.What the rule leaves out. Nothing on the element side: Revit writes the property on all 44
IfcShadingDeviceand on no other entity, and rvt-rs writes the same 44. rvt-rs still writes nothing where it reads no type name for the element, which is a missing value, not a wrong one. The set is written on no type object, as Revit writes noReferenceon theIfcShadingDeviceType.History.
CONFIRMED_REFERENCE_SETSwas introduced by #1120 (RE-239 §7) with the rule "a set joins the list when a reference export confirms it".Pset_ShadingDeviceCommonwas removed on 2026-10-29 because no IFC4 export then held a shading device (RE-239 §7, and the note on theproperty_setsrow oftests/fixtures/project-counts/2024-core-interior.json). The timber office's export now holds 44 of them, so the condition that removed it no longer holds.Changes
src/ifc/export_content.rs:Pset_ShadingDeviceCommonadded toCONFIRMED_REFERENCE_SETS, in alphabetical order.src/ifc/export_content.rs: the list's doc comment records that the set joins on the timber office's export, which writes it on all 44 of itsIfcShadingDeviceand on no other element, and that the value's equality is what the next measurement scores.changelog.d/added/shading-device-reference.md: the fragment for the new property.tests/fixtures/project-counts/2024-core-interior.jsonand2024-core-interior-slim.json: theproperty_setsrow'sdecoder_expectedmoves 6578 -> 6598, with a note sentence. This is a test edit, and it is required: Core Interior holds 20 shading devices, the 2026-10-29 removal moved this same pin by exactly 20 (6528 -> 6508), and 20 is past the row'sdecoder_toleranceof 8. The 6598 is arithmetic from that recorded move, not a measurement; CI measures it.IFCPROPERTYSINGLEVALUEandIFCRELDEFINESBYPROPERTIESare not pinned in these fixtures, only named in the note, and the note says they move by 20 with it.No docs sentence states this value:
rg Pset_ShadingDeviceCommon docs/ README.mdfinds nothing, so no docs page is updated.reports/element-framing/RE-239-export-file-values.md§7 still lists the set as "in no reference export"; that is a dated finding of 2026-10-29 and is left as it stands, superseded by this pull request.Measured
One Measure run scored this change together with the four others it was drafted beside (run 43058225020, head
d17975d3, baseaa5dc4c6): every model, with the BIM4LCA office and housing, the 23 Revit 2025 models, Autodesk's samples of every release, rac_advanced, BIMcollab and the held-out pairs. All 39 shards and both same-project gates passed, and the check runsame-project gatesond17975d3reads pass. 20 of 126 exports change; each changed row carries the name of the value its change writes, so the rows below are this change's alone. A second run kept both sides' exports of the 25 sample saves of 2024 to 2027, which no Revit export scores, and they were compared entity by entity with the step ids taken out (run 43073245751). A third measured the four office files with--revit-set-placement, as W7 is measured (run 43073951032). After the second read's two fixes, the stack's final head withmainmerged (e41d96b5against39826420) was measured again in full (run 43077331708, rows registered on #1636 before it was read): every row below repeats, 24 of 126 exports move and no other, and both same-project gates pass on that head.Pset_ShadingDeviceCommon.Referenceequal, before--revit-set-placement.IFCPROPERTYSET6,578 to 6,598,IFCPROPERTYSINGLEVALUE28,569 to 28,589,IFCRELDEFINESBYPROPERTIES7,107 to 7,127. Revit's export of that model writes no standard property set at all, so the census counts these apart (4,680 to 4,700 values not scored) and no Revit value checks them.rvt-rs.jsonobservations are refreshed from that run in a commit of their own;tools/ci/witness-verdict.pyreplays both to PASS with the committed verdicts unchanged.Still open
Pset_ShadingDeviceCommon.IsExternal(45 values on the timber office, 44 devices and their type) is not written: nothing read gives the value.Stack: this is change 3 of 5 measured together; each branch holds the ones before it, so its own diff is its last commit until those land. First draft: #1727.
Testing
gh workflow run measure.yml --ref main -f ref=<this head> -f base=aa5dc4c6d93e861015c10e0a0d8f9f16c8b57e71 -f nordic=true -f r2025=true -f samples=true -f racadv=true -f bimcollab=true -f holdout=true.Audit-honesty checklist
changelog.d/Legal and contribution hygiene
Breaking changes
None.