ifcpatch.recipes.ResetSpatialElementLocations
¶
Module Contents¶
- class ifcpatch.recipes.ResetSpatialElementLocations.Patcher(file: ifcopenshell.file, logger: logging.Logger, ifc_class: str = 'IfcSite')¶
Resets the location of a spatial element to 0,0,0
Another more specialised patch to fix incorrect coordinate usage is to reset the location of spatial elements (sites, buildings, storeys) back to 0,0,0.
- Parameters:
ifc_class – The class of spatial element to reset coordinates for.
Example:
# All IfcSites will shift back to 0,0,0. ifcpatch.execute({"input": "input.ifc", "file": model, "recipe": "ResetSpatialElementLocations", "arguments": ["IfcSite"]})
- find_decomposed_ifc_class(element: ifcopenshell.entity_instance, ifc_class: str) list[ifcopenshell.entity_instance] ¶
- patch() None ¶
- patch_placement_to_origin(element: ifcopenshell.entity_instance) None ¶
- file¶
- ifc_class = 'IfcSite'¶
- logger¶