Skip to content

fix(ifc): write the owner history's change action as Revit does, meeting IFC4's CorrectChangeAction rule - #1107

Merged
DrunkOnJava merged 2 commits into
mainfrom
fix/owner-history-change-action
Oct 29, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
fix/owner-history-change-action

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

Every rvt-rs export wrote IFCOWNERHISTORY(...,$,.ADDED.,$,#user,#app,<time>): ChangeAction .ADDED. with no LastModifiedDate. IFC4's WHERE rule IfcOwnerHistory.CorrectChangeAction allows a change action without a last-modified date only when it is NOTDEFINED or NOCHANGE, 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 writes IFCOWNERHISTORY(#user,#app,$,.NOCHANGE.,$,$,$,<time>).

Changes

  • src/ifc/step_writer.rs: the one line.
  • tests/fixtures/synthetic-project.ifc, synthetic-structural.ifc: the same line, as DUMP_IFC would 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.

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

Copy link
Copy Markdown
Owner Author

Measure run 40954452674 (this head, with #1106's EXPRESS rule pass: Core Interior, Einhoven, RE1 Architecture, R2025 01 and 13): rules: findings 0 on all five, where main gives one, IfcOwnerHistory.CorrectChangeAction, on each (run 40953734973).

@DrunkOnJava
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.
@DrunkOnJava
DrunkOnJava merged commit cf9f04f into main Oct 29, 2026
28 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/owner-history-change-action branch October 29, 2026 22:15
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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.

1 participant