How can I call information from IFC?


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

import ifcopenshell

ifc ="P:\Projekte\House of Hell\CAD\Revit\ARCH\IFC")

OUT = ifc.schema


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