Create Wall Properties, Quantities, and Material
The HELLO WALL sample program creates a standard wall and attaches property sets and quantities to it. The program also adds the wall to a simple spatial tree consisting of an IfcProject containing an IfcBuilding with a single IfcBuildingStorey.
This program saves the data set as a STEP Part 21 file called "output_wall.ifc". 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.
The make_units.cxx file contains code for creating an IfcUnitAssignment for the file. The sample code creates foot and degree units, but you can easily change it to use meters instead.
The make_history.cxx file contains sample code for creating a IfcOwnerHistory description. You should extend this code as with a description of your own application.
The make_guid.cxx file contains code for creating the base64 encoded 128bit IDs used by most IFC objects. This is implemented using some #ifdefed platform-specific code that calls operating system functions to generate the ID. Because of this, the Windows, MacOS X, and Linux projects each link some platform-specific OS libraries. This is described in more detail in the source code.