IFCFile.from_entity

IFCFile.from_entity(entity)

Convert an ifcopenshell entity to a compas_ifc entity. Will return an existing entity if it has already been converted.

Parameters:
entityifcopenshell.entity_instance

The ifcopenshell entity to convert.

Returns:
compas_ifc.entities.base.Base

The converted compas_ifc entity.