BuildingInformationModel.create_element

BuildingInformationModel.create_element(ifc_type='IfcBuildingElementProxy', parent=None, geometry=None, frame=None, transformation=None, properties=None, name=None)

Create a building element and add it to the model.

The ifc_type argument accepts flexible input. If the value matches an IFC class (case-insensitive, with or without the Ifc prefix — "IfcWall", "Wall", "wall" are all equivalent), the element is created with that IFC class. If the value matches no known class, the element falls back to IfcBuildingElementProxy and the original string is stored as ObjectType so semantic identity is preserved.

Parameters:
ifc_typestr

The IFC class name (e.g. "IfcWall", "Wall") or any custom string for non-standard products.

parentGenericElement, optional

Parent in the spatial hierarchy.

geometryBrep | Mesh | Shape, optional

Element geometry.

frameFrame, optional

Placement frame (converted to Transformation).

transformationTransformation, optional

Local transformation. Overrides frame if both provided.

propertiesdict, optional

Property sets.

namestr, optional

Element name.

Returns:
GenericElement