mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 10:06:47 +00:00
Remap deprecated entities in Brick 1.4 to new RealEstateCore URIs.
This commit is contained in:
@@ -53,6 +53,8 @@ def get_brick_type(element: ifcopenshell.entity_instance) -> Union[str, None]:
|
||||
if not result:
|
||||
result = ifc4_to_brick_map.get(ifc_type_class, None)
|
||||
if result:
|
||||
if result.startswith("http"):
|
||||
return result
|
||||
return f"https://brickschema.org/schema/Brick#{result}"
|
||||
# Generic fallback
|
||||
if element.is_a("IfcDistributionElement"):
|
||||
|
||||
Reference in New Issue
Block a user