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
Ports carry no PredefinedType or SystemType: Revit's IFC4 export gives PIPE/CABLE by connector domain (BIM4LCA office, 67 ports) #828
rvt-rs writes each connector as an IfcDistributionPort (RE-138, RE-169) with FlowDirection.NOTDEFINED. and no PredefinedType or SystemType. Revit's IFC4 export of the BIM4LCA office (as built) gives all 67 of its ports all three:
Ports
FlowDirection
PredefinedType
SystemType
43
.SOURCEANDSINK.
.CABLE.
.ELECTRICAL.
24
.SOURCEANDSINK.
.PIPE.
.HEATING.
rvt-rs writes the same 67 ports there (tools/re/ports_vs_ifc.py, which pairs them by ElementId and connector index but does not compare these attributes).
Besides matching Revit's export, the port's PredefinedType decides which IFC4 property sets apply to it: Pset_DistributionPortTypePipe, Pset_DistributionPortTypeDuct and Pset_DistributionPortTypeCable are scoped to IfcDistributionPort/PIPE, /DUCT and /CABLE. IFC4 keeps a pipe connection's NominalDiameter in Pset_DistributionPortTypePipe, where IFC2X3 kept a fitting's diameters in Pset_PipeFittingTypeCommon (#822).
What would close this:
Give each port the PredefinedType of its connector's domain, which RE-169 reads (piping .PIPE., HVAC .DUCT., electrical .CABLE.), and .NOTDEFINED. where the domain is not read.
Measure FlowDirection and SystemType against the office export: whether every connector the file stores is .SOURCEANDSINK., and whether the system type follows the connector's system classification (RE-162).
Extend ports_vs_ifc to compare the three attributes on the ports both exports hold.
Edited 2026-10-19: this said a fitting's measured diameters could only leave Pset_PipeFittingTypeCommon once the ports are typed. Revit's IFC4 export does not write Pset_DistributionPortTypePipe: revit-ifc certifies none of the typed port sets for the IFC4 Reference View or Design Transfer View (IFCCertifiedEntitiesAndPSets.json), and its Reference View export of the BIM4LCA office writes no property set on any of its 67 ports. The diameter is taken out of Pset_PipeFittingTypeCommon separately (#822), without waiting on this issue.
Activity
1 remaining item
feat(ifc): a port on a connector of a domain with no direction is SOU…
research(re-197): ports_vs_ifc compares the port attributes the refer…
docs(re-197): the port type and direction rules say what Revit's expo…
docs(re-197): port types and flow directions measured against Revit's…
feat(ifc): a port is typed by its connector's domain, a duct's or pip…
research(re-197): probe which connector cell field gives a port's flo…
research(re-197): follow a connector cell's relevant parameters to th…
research(re-197): resolve a connector cell's relevant parameters thro…
feat(ifc): a port on a connector of a domain with no direction is SOU…
research(re-197): ports_vs_ifc compares the port attributes the refer…
docs(re-197): the port type and direction rules say what Revit's expo…
docs(re-197): port types and flow directions measured against Revit's…
fix(ifc): a port's direction and type are written only as IFC4 enumer…
feat(ifc): a port is typed by its connector's domain, and an electric…