Skip to content

Ports carry no PredefinedType or SystemType: Revit's IFC4 export gives PIPE/CABLE by connector domain (BIM4LCA office, 67 ports) #828

Closed

Description

@DrunkOnJava

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:

  1. 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.
  2. 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).
  3. 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. added
    area:ifc
    priority:P2
    type:bug
    on Oct 19, 2026
  2. 1 remaining item

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:ifcpriority:P2type:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions