Skip to content

re: the joins the list form missed (RE-170) and the native connectors that hold every join (RE-171) - #717

Merged
DrunkOnJava merged 3 commits into
mainfrom
re/re170-re171-reports
Oct 5, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
re/re170-re171-reports

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Research behind B86 (#716).

  • RE-170 (examples/probe_re170_unread_joins.rs, run 37301472228) finds B54's ten unread joins on RE1. Each is a list in RE-138's form with the terminal or equipment first, which the reader never looked for.
  • RE-171 (examples/probe_re171_connector_refs.rs, run 37303312731) reads joins from a family instance's Connector objects: the own index is m_nIndex, and the joins are the type-1 references in m_arrRefs.
    • On RE1 they give Revit's 73 joins on Mechanical and 126 on Plumbing. The only extras are the two on the tank Revit leaves out.
    • On Autodesk's 2025 MEP samples the list form disagrees with them. 207 of its 265 extra joins on rme_advanced put the duct's end the other way round, and it joins 11 duct and pipe ends twice. The connectors join no end twice.
  • examples/probe_re170_join_list.rs prints every join an export writes, one per line, for diffing two refs on files Revit has not exported.

The two reports are in reports/element-framing/.


Note

Low Risk
New Cargo examples and markdown reports only; no library or export behavior changes in this PR.

Overview
Adds research probes and write-ups for MEP port joins (#528, B54/B86), without changing export logic in this diff.

RE-170 adds probe_re170_unread_joins to compare Revit’s MODEL.ifc IfcRelConnectsPorts against the rvt-rs export, then scan partition bytes for RE-138-style join lists that name missing connections (including lists with terminals/equipment first, which RE-138/RE-141 never matched). probe_re170_join_list prints every join the export writes, one sorted line per IfcRelConnectsPorts, for ref-to-ref diffs when there is no Revit IFC baseline.

RE-171 adds probe_re171_connector_refs, which walks native FamilyInstance / curve records, reads each Connector’s type-1 m_arrRefs, and scores candidate own-index fields (notably m_nIndex) against Revit’s IFC joins.

The reports in reports/element-framing/ capture the conclusions: the ten RE1 gaps live in list form but widening list scanning would add hundreds of false joins on Autodesk samples; native connector refs match Revit on RE1 and motivate B86 reading records instead of lists.

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

… that hold every join (RE-171)

RE-170's probe found B54's ten unread joins as lists with the terminal or
equipment first (run 37301472228). RE-171's probe found that a family
instance's Connector objects (own index m_nIndex, references of type 1 in
m_arrRefs) give Revit's 73 joins on RE1 Mechanical and 126 on Plumbing, the
tank Revit leaves out aside (run 37303312731), and that on Autodesk's 2025
MEP samples the list form misreads duct ends (207 of 265 disagreements) and
joins 11 duct and pipe ends twice, where the connectors join none twice. B86
(#716) reads the connectors. The probes and both reports.
@DrunkOnJava
DrunkOnJava merged commit e769a5e into main Oct 5, 2026
24 checks passed
@DrunkOnJava
DrunkOnJava deleted the re/re170-re171-reports branch October 5, 2026 13:15
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