Skip to content

feat(ifc): write the witness's .NOTDEFINED. on IfcShadingDevice instead of $ - #270

Merged
DrunkOnJava merged 1 commit into
mainfrom
feat/shading-device-predefined-type
Sep 19, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
feat/shading-device-predefined-type

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 19, 2026 •

Copy link
Copy Markdown
Owner

#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.

Testing

  • cargo test --lib ifc:: (360 passed; the two tests that pinned $ now pin .NOTDEFINED.)
  • tools/check-local.sh exit 0
  • rvt-ifc 2024_Core_Interior.rvt --mode geometry: 20 of 20 IFCSHADINGDEVICE rows end in .NOTDEFINED., 0 in $
  • The IfcOpenShell witness-agreement job on this PR checks the value against the recorded export

Breaking changes

None at the API level. Output change: IFCSHADINGDEVICE rows now carry .NOTDEFINED. where they carried $.

Legal and contribution hygiene

  • Licensable under Apache-2.0; no Autodesk material; the witness is the MIT magnetar sample export

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 IfcShadingDevice elements routed through the proven IFC Export As override: exported IFCSHADINGDEVICE rows now write .NOTDEFINED. instead of a null $ for PredefinedType, matching Revit on all 20 rows in 2024_Core_Interior_slim.ifc.

The change is in EXPORT_OVERRIDE_TARGETS in category_map.rs (predefined_type: Some("NOTDEFINED")), with unit tests in category_map and export_content updated accordingly. CI witness-agreement in tools/ci/ifc_schema_arity.py now expects IfcShadingDevice → NOTDEFINED when --witness-agreement runs.

Reviewed by Cursor Bugbot for commit 2bda411. Configure here.

…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.
@cursor

cursor Bot commented Sep 19, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot 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)

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) September 19, 2026 19:16
@DrunkOnJava
DrunkOnJava merged commit 3c14125 into main Sep 19, 2026
22 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/shading-device-predefined-type branch September 19, 2026 19:18
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.

IFCSHADINGDEVICE emits $ where Revit writes .NOTDEFINED. on all 20 — the #220 witness rule was not applied to this row

1 participant