IFC 4x3 FacilityPart sample

Hello,

I’m currently implementing the read/write of IFC4x3, focusing on railways entities.
I’m facing an issue for writing the entity IFCFacilityPart. I don’t know how the predefined type argument should be written. Before it was an enum, it became a select in IFC4x3.

Does someone has sample with IFCFacilityPart ?

Thank you.
Kevin.

Here’s my understanding of this topic.

STEP serializes a Select by wrapping the value with the class name. So it should look like this:

#76= IFCFACILITYPART(‘2rZAYplcf7Hu4GBw_FfuTH’,,'Circular Quay',,,#77,,,,IFCMARINEPARTTYPEENUM(.BERTHINGSTRUCTURE.),.NOTDEFINED.);

I’ve attached a test example file from Geometry Gym grasshopper plugin.
200703 TfNSW Location Breakdown.ifc (5.7 KB)

Here’s an image showing the spatial structure nominated within this.

Our c# toolkit for serializing and deserializing is open source, so you can see our implementation (using generics) here. https://github.com/GeometryGym/GeometryGymIFC/blob/WorkInProgress/Core/IFC/Enumerations.cs Search for IfcFacilityPartTypeSelect

Cheers,

Jon

4 Likes