Skip to content

MEP ports and pipe cylinders outside Revit 2024 and 2025: no 2026 or 2027 MEP model has a Revit export to measure against #869

Open

Description

@DrunkOnJava

Split from #847. #865 places a pipe's ports and #868 a duct's, at the end their connector entry keys name (RE-131, RE-138). Measured on RE1: 124 of 124 Plumbing ports and 62 of 62 Mechanical ports on flow segments are within 0.01 ft of Revit's export.

A family instance's ports (fittings, terminals, equipment: B54, RE-169) still have no placement. Their connectors come from the symbol's m_arrConnectorData, in the family's coordinates, which rvt-rs does not read. Revit's export places each one at its connector, relative to the instance's placement. For a fitting, that is where the duct or pipe joined to it ends (0.1413 ft beyond the pipe's end in RE-131's example).

What would close this: a placement for each family-instance port whose position is decoded, from the symbol's connector data and the instance's transform (RE-87's instance transform), or from the joined segment's end where the join is read. Measure against Revit's export of the RE1 models by name, position within 0.01 ft. A port whose position is not decoded keeps none.

Activity

  1. added
    area:elements
    area:ifc
    priority:P3
    type:feature
    on Oct 20, 2026
  2. DrunkOnJava commented on Oct 23, 2026

    @DrunkOnJava
    OwnerAuthor

    Measured for the ports no duct or pipe joins, from the RE-212 probe output (Measure run 40004442760, examples/probe_re212_connector_data.rs on #929). That output holds, per symbol connector, its m_trf (a 3×3 and an origin m_or in the family's frame) and, per instance, m_instOrigin, m_RefDir, m_zAxis, m_flippedX/Y and m_insertOrientation.

    Placing a port at m_instOrigin + m_or in the frame (m_RefDir, m_zAxis × m_RefDir, m_zAxis) puts it within 0.01 ft of Revit's port for:

    model within 0.01 ft of family-instance ports
    RE1 Plumbing 13 136
    RE1 Mechanical 28 88
    RE1 Electrical 10 53

    The misses are not the connector data. Most are off by about the length of the model-space origin, around 240 ft. An instance placed on a face keeps m_instOrigin in that face's frame, not the model's. Washbasin 442581's is (−0.556, −1.563, 0), with m_zAxis (0, −1, 0). So the connector origins are right, and what is missing is each hosted instance's world transform. RE-87 reads that transform from the instance's partition record (instance_x_axis_from_fields and the hosted turns), and the next step is to compose m_trf with it instead of with the native m_instOrigin.

    The free-standing case (the 51 above) could ship on its own. I'd rather land both once the composition with RE-87's transform is measured.

  3. DrunkOnJava commented on Oct 23, 2026

    @DrunkOnJava
    OwnerAuthor

    Measured, with each instance's model-space transform from RE-87 (Measure run 40010011721, re/834-connector-data, the probe printing scan_instance_transforms). A port is placed at origin + X·m_or.x + Y·m_or.y + Z·m_or.z, where X, Y and Z are the transform's axes and m_or is the symbol connector's origin. Its Z axis is the transform applied to column 2 of the connector's m_3x3.

    model unjoined ports placed within 0.01 ft Z axis as Revit's
    RE1 Electrical 53 of 53 53 of 53
    RE1 Mechanical 1 of 1 1 of 1
    RE1 Plumbing 1 of 2 2 of 2

    The one miss is 447727 connector 1, 0.054 ft off. The joined ports are placed exactly by #922 from the duct's or pipe's end. The same composition misses most of them, by 0.03 to 0.8 ft, because a fitting's connectors move with its instance's size and angle, which the symbol's m_trf does not hold.

    The hosted case my previous comment found (m_instOrigin in a face's frame) is what RE-87's transform resolves.

    This goes in attach_family_instance_ports once #922 and #929 have landed, since both change that function. It places an unjoined port from the transform and keeps #922's placement for a joined one. 447727 is the case that needs a guard or an answer first.

  4. 48 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:elementsarea:ifcpriority:P3type:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions