Skip to main content

ports

Function ports 

Source
pub fn ports(
    model: &Model,
) -> Result<(Vec<Port>, Vec<SystemAnomaly>), SchemaResolutionError>
Expand description

Every port in the file, with its owning element resolved.

Both attachment mechanisms are read. IfcRelNests is applied first because it is the IFC4 form, so when an exporter writes both and they disagree the modern one wins and the conflict is reported.

Port ancestry is read against the release the model’s FILE_SCHEMA declares: IFC2X3, IFC4 or IFC4X3.

§Errors

SchemaResolutionError when the model’s FILE_SCHEMA binds no release this crate is verified for (see crate::schema_of). Nothing is read against a release the file did not declare.