How can I call information from IFC?

Hello,

I want to go more into ifc. How can i use these libraries to call information from an IFC?

import ifcopenshell

ifc = ifcopenshell.open("P:\Projekte\House of Hell\CAD\Revit\ARCH\IFC")

OUT = ifc.schema

https://wiki.osarch.org/index.php?title=IfcOpenShell_code_examples

2022-04-11_12h46_58

How can i call these moduls?

You will need to download the modules then add a path to them within your code.

EG this loads the iron python library
sys.path.append(r’C:\Program Files (x86)\IronPython 2.7\Lib’)

1 Like

Hello @Draxl_Andreas
ifcopenshell is not a pure python library, it contains Windows dll file (pyd files)
Ironpython engine currently does not support using PYDs built for CPython since they leverage implementation details of CPython.

Try with CPython engine (Revit 2022+)

1 Like