From ad9ad3f06060e0d2a422fe86737e6b9be7145c09 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Wed, 15 Nov 2023 14:22:08 +1100 Subject: [PATCH] Purge data recipe now also purges shape aspect names and layers. --- src/ifcpatch/ifcpatch/recipes/PurgeData.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ifcpatch/ifcpatch/recipes/PurgeData.py b/src/ifcpatch/ifcpatch/recipes/PurgeData.py index 0fc7ed4c44..33ecbfda71 100644 --- a/src/ifcpatch/ifcpatch/recipes/PurgeData.py +++ b/src/ifcpatch/ifcpatch/recipes/PurgeData.py @@ -173,3 +173,10 @@ class Patcher: for element in self.file.by_type("IfcProfileDef"): element.ProfileName = None + + for element in self.file.by_type("IfcShapeAspect"): + element.Name = None + element.Description = None + + for element in self.file.by_type("IfcPresentationLayerAssignment"): + self.file.remove(element)