You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MEP ports and pipe cylinders outside Revit 2024 and 2025: no 2026 or 2027 MEP model has a Revit export to measure against #869
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.
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.
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.
Activity
docs(release): 1.0's requirements as passed, failed or not measured, …
research(ifc): the port-place scorer also scores rvt-rs's placement o…
docs: the joined ports' placement, as measured on RE1 Plumbing and Me…
docs(support-matrix): the row's user impact names the joined ports' p…
research(ports): the RE-212 probe prints the families' and instances'…
DrunkOnJava commentedon Oct 23, 2026
Measured for the ports no duct or pipe joins, from the RE-212 probe output (Measure run 40004442760,
examples/probe_re212_connector_data.rson #929). That output holds, per symbol connector, itsm_trf(a 3×3 and an originm_orin the family's frame) and, per instance,m_instOrigin,m_RefDir,m_zAxis,m_flippedX/Yandm_insertOrientation.Placing a port at
m_instOrigin + m_orin the frame (m_RefDir,m_zAxis×m_RefDir,m_zAxis) puts it within 0.01 ft of Revit's port for: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_instOriginin that face's frame, not the model's. Washbasin 442581's is (−0.556, −1.563, 0), withm_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_fieldsand the hosted turns), and the next step is to composem_trfwith it instead of with the nativem_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.
research(ports): the RE-212 probe prints each family instance's model…
DrunkOnJava commentedon Oct 23, 2026
Measured, with each instance's model-space transform from RE-87 (Measure run 40010011721,
re/834-connector-data, the probe printingscan_instance_transforms). A port is placed atorigin + X·m_or.x + Y·m_or.y + Z·m_or.z, where X, Y and Z are the transform's axes andm_oris the symbol connector's origin. Its Z axis is the transform applied to column 2 of the connector'sm_3x3.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_trfdoes not hold.The hosted case my previous comment found (
m_instOriginin a face's frame) is what RE-87's transform resolves.This goes in
attach_family_instance_portsonce #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.feat(ifc): a port joined to a placed duct or pipe port is placed at t…
feat(ifc): every port takes Revit's flow direction, name and descript…
48 remaining items