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
- STEPcode Repo
- STEPCode Wiki
- https://github.com/wikifactory/stepcode-example
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 stepcodemkdir buildcd buildcmake .. -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_IFC4x2like:./bin/p21read_sdai_IFC4x2 ./bin/KIT-Bridge.ifc
- these binaries will be saved in
make install// will putbin&libinsc-installfolder outsidestepcodefolder
- Download current IFC EXPRESS file
here
and save it into folder e.g.
WASM
- Developer’s Guide - WebAssembly
source ~/Documents/git/emsdk/emsdk_env.sh --build=Release
Visual Studio & C++
- Create new C++ project like this
- Install debugger
sudo apt-get install build-essential gdb - STEPcode:
emcmake cmake .. -DSC_BUILD_SCHEMAS=ifc4x2emmake make -j12emmake make sdai_IFC4x2 -j12emmake make installemmake make sdai_IFC4x2 generate_cpp_sdai_IFC4x2 lazy_sdai_IFC4x2 sdai_IFC4x2 p21read_sdai_IFC4x2
emmake makeemcc ifc-wasm.so -o ifc-wasm.html