IFC EXPRESS file

Example IFC files

  • https://standards.buildingsmart.org/IFC/DEV/IFC4_2/FINAL/HTML/link/listing-ifc4x2.htm
  • http://www.ifcwiki.org/index.php?title=KIT_IFC_Examples

STEPcode

Build

  • Building SC from the command prompt see INSTALL:

    • Download current IFC EXPRESS file here and save it into folder e.g. ../stepcode/data/ifc4x2
    • cd stepcode
    • mkdir build
    • cd build
    • cmake .. -DSC_BUILD_SCHEMAS=ifc4x2 // Defaults to special value ALL, which builds all schemas in SC/data.
    • make -j12
    • make sdai_IFC4x2 generate_cpp_sdai_IFC4x2 lazy_sdai_IFC4x2 sdai_IFC4x2 p21read_sdai_IFC4x2 -j12

      • these binaries will be saved in ../stepcode/build/bin
      • use e.g. p21read_sdai_IFC4x2 like: ./bin/p21read_sdai_IFC4x2 ./bin/KIT-Bridge.ifc
    • make install // will put bin & lib in sc-install folder outside stepcode folder

WASM

Visual Studio & C++

  • Create new C++ project like this
  • Install debugger sudo apt-get install build-essential gdb
  • STEPcode:
    • emcmake cmake .. -DSC_BUILD_SCHEMAS=ifc4x2
    • emmake make -j12
    • emmake make sdai_IFC4x2 -j12
    • emmake make install
    • emmake make sdai_IFC4x2 generate_cpp_sdai_IFC4x2 lazy_sdai_IFC4x2 sdai_IFC4x2 p21read_sdai_IFC4x2
  • emmake make
  • emcc ifc-wasm.so -o ifc-wasm.html