ifcpatch.recipes.SplitByBuildingStorey
¶
Module Contents¶
- class ifcpatch.recipes.SplitByBuildingStorey.Patcher(file: ifcopenshell.file, logger: logging.Logger, output_dir: str | None = None)¶
Split an IFC model into multiple models based on building storey
The new IFC model names will be named after the storey name in the format of {i}-{name}.ifc, where {i} is an ascending number starting from 0 and {name} is the name of the storey.
- Parameters:
output_dir – Specifies an output directory where the new IFC models will be saved.
Example:
ifcpatch.execute({"input": "input.ifc", "file": model, "recipe": "SplitByBuildingStorey", "arguments": ["C:/.../output_files"]})
- is_in_storey(element: ifcopenshell.entity_instance, storey: ifcopenshell.entity_instance) bool ¶
- patch() None ¶
- file¶
- logger¶
- output_dir = None¶