Print Spatial Structure
The PRINT_SPATIAL sample program recursively prints the spatial structure defined in an IFC file, beginning with the IfcProject root. Use this as the starting point for a more sophisticated program.
This program reads an IFC Part 21 file called "output_file.ifc", although you can easily modify the code to read other files. This is a text file, so you can look at it with a text editor or the STEP Part 21 file browser to see how the information is represented.