ElementFactoryMixin

class compas_ifc.factory.ElementFactoryMixin

Bases: object

Mixin that adds element creation shortcuts to a Model subclass.

Expects the host class to provide: - self.add_element(element, parent=...) — from compas_model.Model - self._fileIFCFile - self.unit (settable) - self.name (settable)

Methods

create_beam

Create an IfcBeam and add it to the model.

create_column

Create an IfcColumn and add it to the model.

create_door

Create an IfcDoor and add it to the model.

create_element

Create a building element and add it to the model.

create_roof

Create an IfcRoof and add it to the model.

create_slab

Create an IfcSlab and add it to the model.

create_wall

Create an IfcWall and add it to the model.

create_window

Create an IfcWindow and add it to the model.

template

Create a template BIM model with default spatial hierarchy.

Inherited Methods

__init__