Problems with IFC
Problems with IFC
Hey,
I have some issues with exporting and importing IFC files.
FreeCAD Version: 0.18.4, Win 10
I modeled a simple house with, I think, no complex structure.
I downloaded the latest version of IfcOpenShell (https://github.com/IfcOpenShell/IfcOpenShell, master branch) and followed the installation instructions of the FreeCAD wiki. An error message was not displayed.
But every time I try to export an IFC file, I get the following error:
I'm not an IFC expert but I assume that meas the wrong IFC version is used?
According to the Preflight Checks - Tool the IFC4 support is not enabled but all my Psets are IFC4 Add2, so maybe this causes the error?
But I have no clue where to change the used IFC version...According to the wiki entry of FreeCAD (https://www.freecadweb.org/wiki/Arch_IFC), the used IFC version (2x3 or 4) should be visible in the Arch preferences, but I can't find anything there regarding IFC.
The other problem is, I tried to import some really easy IFC files exported from Revit but every time FreeCAD crashes. I also tried to open this IFC file I found on another Forum post (https://forum.freecadweb.org/viewtopic.php?f=39&t=36754).
file: http://ifcopenshell.org/ifcopenhouse/v4 ... nHouse.ifc
But it's not working. But it is IFC 2x3 which is most likely set.
So did I do something wrong with the IfcOpenShell installation?
I would be very grateful if someone could help me out!
I have some issues with exporting and importing IFC files.
FreeCAD Version: 0.18.4, Win 10
I modeled a simple house with, I think, no complex structure.
I downloaded the latest version of IfcOpenShell (https://github.com/IfcOpenShell/IfcOpenShell, master branch) and followed the installation instructions of the FreeCAD wiki. An error message was not displayed.
But every time I try to export an IFC file, I get the following error:
I'm not an IFC expert but I assume that meas the wrong IFC version is used?
According to the Preflight Checks - Tool the IFC4 support is not enabled but all my Psets are IFC4 Add2, so maybe this causes the error?
But I have no clue where to change the used IFC version...According to the wiki entry of FreeCAD (https://www.freecadweb.org/wiki/Arch_IFC), the used IFC version (2x3 or 4) should be visible in the Arch preferences, but I can't find anything there regarding IFC.
The other problem is, I tried to import some really easy IFC files exported from Revit but every time FreeCAD crashes. I also tried to open this IFC file I found on another Forum post (https://forum.freecadweb.org/viewtopic.php?f=39&t=36754).
file: http://ifcopenshell.org/ifcopenhouse/v4 ... nHouse.ifc
But it's not working. But it is IFC 2x3 which is most likely set.
So did I do something wrong with the IfcOpenShell installation?
I would be very grateful if someone could help me out!
Re: Problems with IFC
ifcopenshell 0.5 can either import 2x3 or 4 never both. Best is to use 0.6 which can import both. In FreeCAD 0.19 dev versions for windows it is included allready but you can use it with FreeCAD 0.18 too.
Re: Problems with IFC
btw.
if you are on windows the right version of ifcopenshell was installed already. You may broke it or installed a outdated version of ifcopenshell.
if you are on windows the right version of ifcopenshell was installed already. You may broke it or installed a outdated version of ifcopenshell.
Re: Problems with IFC
if you have 0.5 installed you can check the shema of ifcopenshell with
FreeCAD 0.18.3 for Windows gives me:
Code: Select all
import ifcopenshell
ifcopenshell.version
ifcopenshell.schema_identifier
Code: Select all
>>>
>>> import ifcopenshell
>>> ifcopenshell.version
'0.5.0-dev'
>>> ifcopenshell.schema_identifier
'IFC2X3'
>>>
Re: Problems with IFC
I also downloaded the branch v0.6 but it didn't worked neither..
So now I downloaded FreeCAD v0.19 and it's pretty amazing to see the development from v0.18 to 0.19. Thanks to everyone.
But unfortunately the export is still not working. Now this error appears:
So now I downloaded FreeCAD v0.19 and it's pretty amazing to see the development from v0.18 to 0.19. Thanks to everyone.
But unfortunately the export is still not working. Now this error appears:
Re: Problems with IFC
From a quick look this may be a property value with a wrong type, e.g. you entered a String or Real for a property of type Integer. Can you try to export without property sets to confirm?
Last edited by hlg on Fri Nov 15, 2019 11:30 am, edited 1 time in total.
Re: Problems with IFC
in addition ... Would you share a simple FreeCAD file which only contains one object to reproduce the problem?
Re: Problems with IFC
Thanks for that hint.
I exported one object without Psets and after this again with and both worked. So in order to locate the problem I exported level for level and object for object. And that brought me to one of my structure objects. In order to reproduce my error I attached a reduced version of my project. I already tried to export this structure without Pset but its still the same error...
- Attachments
-
- Haus_Uebung2_reduced.FCStd
- (879.83 KiB) Downloaded 57 times
Re: Problems with IFC
I can confirm the problem.
BTW if you add an Project object it works for me ...
BTW if you add an Project object it works for me ...