A little hard to tell from such limited amount of detail. Please post the full steps and details (which Visual Studio, CMake etc. versions) what you did. If you follow the instructions carefully (also the build-deps.cmd print some additional instructions) there should be little that can go wrong.
Last edit: Stinkfist 2016-11-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To provide more information, the Cmake version is 3.7.0 and Visual Studio is VS 14.0 2015 x64.
I have been able to build dependencies now by using set IFCOS_USE_OCCT=TRUE and building the OC 7.0.0 release.
Now, when executing run-cmake.bat OCC library files were report missing, which I found in /deps/.../win64/lib and copy/pasted into deps-vs2015-x64-installed\opencascade
Following error is now UNICODE_SUPPORT enabled, but unable to find ICU. Any suggestions?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'll update CMake and try doing a fresh clone and build of IfcOpenShell. I see OCE has had a update quite recently and it might have broken something. I'll get back to you tomorrow.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
One important note: the current working directory must be IfcOpenShell\win before calling any of the build scripts, i.e. e.g. IfcOpenShell\win\run-cmake.bat doesn't work, but after a successful build-deps.cmd run, the .bat files can be invoked also by double-clicking from File Explorer.
Last edit: Stinkfist 2016-11-23
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is it possible to support both IFC2x3 and IFC4 when building? The IfcConvert downloadable binary does seem to work with both, but my own compilation seems to work only for one scheme (or did I do something wrong?)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am a new comer to the programming field and the configurations confuse me the most. I tried to understand the above but no luck. Can someone please help me with easy steps on how I can get the IFC4ADD2 configured IfcOpenShell-python files?
Also is python interface as powerful as C++. Can I convert all geometries to Brep and calculate Element quantity from Ifc geometry using python?
Thank you in advance.
Last edit: Mohit 2019-01-20
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Is IfcOpenShell supports or plans to support IFCv4?
Regards,
Vitaliy.
IFC4 support exists, but 2x3 TC1 is used by default. One can build a IFC4 version by using this build option https://github.com/IfcOpenShell/IfcOpenShell/blob/master/cmake/CMakeLists.txt#L28
Thank you very much, I managed to do it!
Hello
Could you give support on how to build v0.5.0 on Windows for IFCv4?
Regards,
Yannic
Hi. Simply follow the README instructions in https://github.com/IfcOpenShell/IfcOpenShell and https://github.com/IfcOpenShell/IfcOpenShell/tree/master/win The important line is the
run-cmake.bat vs2015-x64 -DUSE_IFC4=1
one.Thanks
When building I receive the following error
'cecho.cmd' is not recognized as an internal or external command, operable program or batch file
A little hard to tell from such limited amount of detail. Please post the full steps and details (which Visual Studio, CMake etc. versions) what you did. If you follow the instructions carefully (also the build-deps.cmd print some additional instructions) there should be little that can go wrong.
Last edit: Stinkfist 2016-11-22
To provide more information, the Cmake version is 3.7.0 and Visual Studio is VS 14.0 2015 x64.
I have been able to build dependencies now by using set IFCOS_USE_OCCT=TRUE and building the OC 7.0.0 release.
Now, when executing run-cmake.bat OCC library files were report missing, which I found in /deps/.../win64/lib and copy/pasted into deps-vs2015-x64-installed\opencascade
Following error is now UNICODE_SUPPORT enabled, but unable to find ICU. Any suggestions?
I'll update CMake and try doing a fresh clone and build of IfcOpenShell. I see OCE has had a update quite recently and it might have broken something. I'll get back to you tomorrow.
I just tried a fresh clone and build and almost [1] everything went fine (Windows 10, CMake 3.7.0, VS 2015 Update 3).
Opened VS2015 x64 Native Tools Command Prompt and then:
git clone https://github.com/IfcOpenShell/IfcOpenShell.git
cd IfcOpenShell\win
build-deps.cmd
run-cmake.bat vs2015-x64 -DUSE_IFC4=1
build-ifcopenshell.bat
[1] A small problem with findind the Python dependency encountered, but most likely completely irrelevant to your case.
One important note: the current working directory must be IfcOpenShell\win before calling any of the build scripts, i.e. e.g.
IfcOpenShell\win\run-cmake.bat
doesn't work, but after a successful build-deps.cmd run, the .bat files can be invoked also by double-clicking from File Explorer.Last edit: Stinkfist 2016-11-23
I managed to do the build! It seems accidentally environment variables were set to x86 in VS.
Is conversion usually taking much longer for IFCv4 files to .stp?
Great to hear. I haven't done any STEP conversions so can't comment on that.
Conversion to step is a slow process indeed.
Kind regards,
Thomas
Is it possible to support both IFC2x3 and IFC4 when building? The IfcConvert downloadable binary does seem to work with both, but my own compilation seems to work only for one scheme (or did I do something wrong?)
Not at this moment unfortunately.
It will do its best to parse all instances that conform to the schema that is compiled in. Instances that are not understood are ignored.
So to that extent depending on the use case an executable built for IFC4 might work reasonably well for 2x3 as well, but there are subtle differences.
Please, how was generated the IfcConvert that supports both IFC2x3 and IFC4?
Indeed, with IfcConvert-master-9ad68db-linux64.zip (downloaded from http://ifcopenshell.org/ifcconvert.html), I get:
But it generates a perfectly correct OBJ file.
Whereas with the IfcConvert I built I get:
Last edit: Xavier Lamorlette 2019-01-02
Hello Guys,
I am a new comer to the programming field and the configurations confuse me the most. I tried to understand the above but no luck. Can someone please help me with easy steps on how I can get the IFC4ADD2 configured IfcOpenShell-python files?
Also is python interface as powerful as C++. Can I convert all geometries to Brep and calculate Element quantity from Ifc geometry using python?
Thank you in advance.
Last edit: Mohit 2019-01-20
The files in the repository are now for IFC4Add2TC1 https://github.com/IfcOpenShell/IfcOpenShell/commit/ef7eee411b29a82b55e3eec308baa20b8d3987c6
Does that help?