IFCFile.__init__

IFCFile.__init__(model, filepath=None, schema='IFC4', use_occ=False, load_geometries=True, verbose=True, extensions=None)

Construct the IFCFile object.

Parameters:
modelcompas_ifc.model.Model

The model object.

filepathstr, optional

The path to the IFC file. If not provided, a new IFC file is created.

schemastr, optional

The IFC schema to use. Default is “IFC4”.

use_occbool, optional

Whether to use OCC for geometry processing. Default is False.

load_geometriesbool, optional

Whether to load the geometries of the IFC file. Default is True.

verbosebool, optional

Whether to print verbose output. Default is True.

extensionsDict[str, Type]

A dictionary of extensions to use, with the key being the IFC class name and the value being the extension class.