Repository navigation
fix(ifc): write the owner history's change action as Revit does, meeting IFC4's CorrectChangeAction rule - #1107
Merged
Merged
Conversation
…ing IFC4's CorrectChangeAction rule IfcOpenShell's check of IFC4's EXPRESS rules found one violation on every rvt-rs export: IfcOwnerHistory with ChangeAction .ADDED. and no LastModifiedDate. Revit's exports (Core Interior, RE1, puzzbobb's 2025 models) write .NOCHANGE. with no last-modifying user or application; so does rvt-rs now. The synthetic IFC fixtures carry the same line.
1 task done
Owner
Author
|
Measure run 40954452674 (this head, with #1106's EXPRESS rule pass: Core Interior, Einhoven, RE1 Architecture, R2025 01 and 13): |
DrunkOnJava
enabled auto-merge (squash)
October 29, 2026 21:08
DrunkOnJava
added a commit
that referenced
this pull request
Oct 29, 2026
…chema report (#1106) ## Summary IfcOpenShell's default validation reports nothing on any of Measure's 89 exports (2026-10-29 practitioner sweep, baseline run 40927543524), so it tells no export from another. Each model's `schema.txt` now also has a `rules:` section: IfcOpenShell's check of the IFC4 schema's WHERE and global rules (`ifcopenshell.express.rule_executor`), with the findings counted by kind, instance numbers replaced by `#`, most frequent first. It reports; it gates nothing (Measure's compare job diffs it between base and head like the rest of `schema.txt`). The rule executor imports pytest's assertion rewriter (`from _pytest import assertion`), so `tools/ci/requirements-ifc.in` gains `pytest` and the hashed lock adds pytest 9.2.0 and its dependencies. Every existing pin, IfcOpenShell's included, is unchanged. ## First result Measure run 40953734973 (main ed337dd, Core Interior, Einhoven, RE1 Architecture, R2025 01 and 13): one finding on each, `IfcOwnerHistory.CorrectChangeAction`: rvt-rs writes `ChangeAction` `.ADDED.` with no `LastModifiedDate`, which the rule forbids. Revit's own exports write `.NOCHANGE.`. Fixed in #1107. ## Testing - [x] The run above, with this branch's scripts.
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
Every rvt-rs export wrote
IFCOWNERHISTORY(...,$,.ADDED.,$,#user,#app,<time>):ChangeAction.ADDED.with noLastModifiedDate. IFC4's WHERE ruleIfcOwnerHistory.CorrectChangeActionallows a change action without a last-modified date only when it isNOTDEFINEDorNOCHANGE, and IfcOpenShell's EXPRESS rule check (#1106) reported it on every export it read. Revit's exports (Core Interior, RE1, puzzbobb's 2025 models) all write.NOCHANGE.with no last-modifying user or application, so rvt-rs now writesIFCOWNERHISTORY(#user,#app,$,.NOCHANGE.,$,$,$,<time>).Changes
src/ifc/step_writer.rs: the one line.tests/fixtures/synthetic-project.ifc,synthetic-structural.ifc: the same line, asDUMP_IFCwould regenerate it.changelog.d/fixed/owner-history-change-action.md.Testing
Unit tests are banned in this repository: do not add them.
No change to what is exported.