Skip to content

fix(ifc): a mass whose Export to IFC As names an entity is written as it, as Revit's export writes the office's VOLUME masses (#864) - #867

Merged
DrunkOnJava merged 2 commits into
mainfrom
fix/864-family-masses
Oct 20, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
fix/864-family-masses

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

Closes #864. rvt-rs read no mass instances, because OST_Mass was not one of the element-record categories. The BIM4LCA office's two VOLUME masses carry "Export to IFC As" IfcSpace, and Revit's export writes them as IfcSpace.

Measured

Measure A/B against main with the office files and the sample projects, run 39372962012. On each office file:

Only the two office exports change. The samples' diagnostics count the decoded masses: the 2019 basic sample has one, and it is not written.

… it, as Revit's export writes the office's VOLUME masses (#864)

OST_Mass joins the product record categories. Revit's exporter writes a mass only where its own Export to IFC As names an entity: the BIM4LCA office's two VOLUME masses carry IfcSpace and are IfcSpace in Revit's export (#864). A mass with no such value is not written.
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 20, 2026 05:21
@DrunkOnJava
DrunkOnJava merged commit 9fc4662 into main Oct 20, 2026
26 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/864-family-masses branch October 20, 2026 05:24

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b983b3860c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/ifc/export_content.rs
Comment on lines +518 to +519
if decoded.class == "Mass" && ifc_export_override(&decoded).is_none() {
continue;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Exclude skipped masses from unapplied-value diagnostics

When a mass carries an unrecognized Export to IFC As value, this branch emits no entity, but unapplied_export_value still treats it as retaining the Mass mapping. The resulting user-facing warning says the mass “keeps its category's entity” even though it was omitted entirely. This affects any mass whose nonempty override is not in EXPORT_OVERRIDE_TARGETS; either suppress it from that diagnostic or report it as skipped rather than exported as a proxy.

Useful? React with 👍 / 👎.

(OST_ELECTRICAL_FIXTURES, "ElectricalFixture"),
(OST_ELECTRICAL_EQUIPMENT, "ElectricalEquipment"),
(OST_MECHANICAL_EQUIPMENT, "MechanicalEquipment"),
(OST_MASS, "Mass"),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid treating every unattributed mass as missing output

When a supported-version file contains a second-prologue mass frame with no attributable ElementId and no IFC override, adding Mass to RECOVERED_CATEGORIES makes scan_unattributed_frames count it as an unexported model element. build_export_diagnostics then warns that the model is incomplete, lowers confidence, and can reject strict exports, even though this change intentionally omits default masses and Revit does not export them. The diagnostic scan needs to distinguish export-enabled masses before including them in the missing-element count.

Useful? React with 👍 / 👎.

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.

BIM4LCA office: 2 mass instances Revit writes as IfcSpace are not written (VOLUME / OFFICE, VOLUME / GARAGE)

1 participant