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_typeargument accepts flexible input. If the value matches an IFC class (case-insensitive, with or without theIfcprefix —"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 toIfcBuildingElementProxyand the original string is stored asObjectTypeso 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