Repository navigation
feat(ifc): write the witness's .NOTDEFINED. on IfcShadingDevice instead of $ - #270
Merged
Merged
Conversation
…ad of $ #220 adopted the rule that PredefinedType follows the authoring witness where the recorded artifact shows its choice, and applied it to walls, spaces, doors and windows. The fifth row on the same artifact was left on a documented prior decision: IfcShadingDevice wrote `$` because rvt-rs decodes no value for it. Revit writes `.NOTDEFINED.` on all 20 IFCSHADINGDEVICE rows of `IFC Exports/2024_Core_Interior_slim.ifc`, so under the rule that value is the witness's own answer, not an invention. Measured on 2024_Core_Interior.rvt after the change: 20 of 20 shading devices carry `.NOTDEFINED.`, so per-type PredefinedType agreement with the export is exact for every type rvt-rs emits. The witness-agreement gate in tools/ci/ifc_schema_arity.py now lists IfcShadingDevice.
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_23bac124-507a-4edc-a2c6-da1babd07cf8) |
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.
#220 adopted the rule that PredefinedType follows the authoring witness
where the recorded artifact shows its choice, and applied it to walls,
spaces, doors and windows. The fifth row on the same artifact was left
on a documented prior decision: IfcShadingDevice wrote
$becauservt-rs decodes no value for it. Revit writes
.NOTDEFINED.on all 20IFCSHADINGDEVICE rows of
IFC Exports/2024_Core_Interior_slim.ifc, sounder the rule that value is the witness's own answer, not an invention.
Measured on 2024_Core_Interior.rvt after the change: 20 of 20 shading
devices carry
.NOTDEFINED., so per-type PredefinedType agreement withthe export is exact for every type rvt-rs emits. The witness-agreement
gate in tools/ci/ifc_schema_arity.py now lists IfcShadingDevice.
Testing
cargo test --lib ifc::(360 passed; the two tests that pinned$now pin.NOTDEFINED.)tools/check-local.shexit 0rvt-ifc 2024_Core_Interior.rvt --mode geometry: 20 of 20IFCSHADINGDEVICErows end in.NOTDEFINED., 0 in$Breaking changes
None at the API level. Output change:
IFCSHADINGDEVICErows now carry.NOTDEFINED.where they carried$.Legal and contribution hygiene
Related issues
Closes #235
Note
Low Risk
Narrow IFC output change for one proven export-override type; no API or auth/data-path changes.
Overview
Extends the #220 witness rule to
IfcShadingDeviceelements routed through the proven IFC Export As override: exportedIFCSHADINGDEVICErows now write.NOTDEFINED.instead of a null$forPredefinedType, matching Revit on all 20 rows in2024_Core_Interior_slim.ifc.The change is in
EXPORT_OVERRIDE_TARGETSincategory_map.rs(predefined_type: Some("NOTDEFINED")), with unit tests incategory_mapandexport_contentupdated accordingly. CI witness-agreement intools/ci/ifc_schema_arity.pynow expectsIfcShadingDevice→NOTDEFINEDwhen--witness-agreementruns.Reviewed by Cursor Bugbot for commit 2bda411. Configure here.