[ Solved ] [ Bug ] Arch_BuildingPart wrong IFC type in V0.19

If I create an Arch_BuildingPart in V0.19 it has ‘Actuator’ as its IFC type. This seems wrong to me. In V0.18 the IFC type (then called ‘IFC role’) is ‘Undefined’.

OS: Windows 8.1 (6.3)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18024 (Git)
Build type: Release
Branch: master
Hash: 9cc8f6eb666b0a0ae2dc256f7bc0beb8c987710c
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Dutch/Netherlands (nl_NL)

You should ask this in the Arch IFC subforum. I remember that in the last weeks, Moult and Yorik were updating some IFC files, and they mentioned something about the “Undefined” type.


I just checked the code. See pull request #2259, and a937461d6f.

The BuildingPart class now is derived from ArchIFC.IfcProduct, which defines a bunch of IFC products, types and contexts, in .json files. This probably changes how some objects are initialized. So, just give some days for Moult and Yorik to fix it.

moved thread to Arch/IFC subforum

I can confirm. But only if you have set IFC version to IFC4. If you have set to IFC version 2x3 it is an Annotation. But this is wrong too.

d563d90 I made some comment as well.

Thanks for fixing this.

@Roy_043 is this then [Solved] ?

I have edited the topic title.

:+1: