This commit is contained in:
Andrej
2025-06-02 10:58:39 +05:00
parent 5a211c67eb
commit a614fac71a
8 changed files with 59 additions and 55 deletions
-3
View File
@@ -74,9 +74,6 @@ class Loader(bonsai.core.tool.Loader):
def get_representation_id_from_shape(cls, geometry: ifcopenshell.geom.ShapeType) -> int:
representation_id: str = geometry.id
if "-" in representation_id:
# Example: 2432-openings-2468, where
# 2432 is mapped representation id
# and 2468 is IFCRELVOIDSELEMENT
representation_id = re.sub(r"\D", "", representation_id.split("-")[0])
else:
representation_id = re.sub(r"\D", "", representation_id)