when test importing one of the ifc-houses I get the error message:
Code: Select all
import importIFC
importIFC.DEBUG = True
path=""
>>> importIFC.open(path+"window-house--Allplan2012.ifc")
openingwindow-house--Allplan2012.ifc...
Parsed from schema /home/kubuntu/.FreeCAD/ifc4.exp: 766 entities and 126 types
Couldn't locate IfcOpenShell
IfcOpenShell not found or disabled, falling back on internal parser.
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/home/kubuntu/.FreeCAD/Mod/Arch/importIFC.py", line 59, in open
read(filename,skip)
File "/home/kubuntu/.FreeCAD/Mod/Arch/importIFC.py", line 387, in read
ifc = ifcReader.IfcDocument(filename,schema=schema)
File "/home/kubuntu/.FreeCAD/Mod/Arch/ifcReader.py", line 337, in __init__
f = IfcFile(filename,schema)
File "/home/kubuntu/.FreeCAD/Mod/Arch/ifcReader.py", line 169, in __init__
self.entById, self.entsByName, self.header = self.read()
File "/home/kubuntu/.FreeCAD/Mod/Arch/ifcReader.py", line 188, in read
e = self.parseLine(line)
File "/home/kubuntu/.FreeCAD/Mod/Arch/ifcReader.py", line 217, in parseLine
return {"id": id, "name": name, "attributes": self.parseAttributes(name, attrs)}
File "/home/kubuntu/.FreeCAD/Mod/Arch/ifcReader.py", line 235, in parseAttributes
(len(schema_attributes), len(parts), ent_name)
AssertionError: Expected 5 attributes, got 4 (entity: IFCCURVESTYLE
>>> App.setActiveDocument("window_house__Allplan2012")
>>> App.ActiveDocument=App.getDocument("window_house__Allplan2012")
>>> Gui.ActiveDocument=Gui.getDocument("window_house__Allplan2012")
I installed ifcopenshell before
Code: Select all
..
-- Installing: /usr/local/bin/IfcConvert
-- Removed runtime path from "/usr/local/bin/IfcConvert"
-- Installing: /usr/local/lib/libIfcParse.a
-- Installing: /usr/local/lib/libIfcGeom.a
...
Word size: 64-bit
Version: 0.15.3782 (Git)
Branch: master
Hash: f0eb27f710aa74adf744d05fdf8c5d5ace62d386
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
SoQt version: 1.6.0a
OCC version: 6.7.0