Forgot rabbit branding.

This commit is contained in:
Dion Moult
2023-11-02 15:15:04 +11:00
parent 0f0d600f3f
commit cc338d8acc
+9 -9
View File
@@ -54,7 +54,7 @@ class Patcher:
self.logger = logger self.logger = logger
def patch(self): def patch(self):
self.file.wrapped_data.header.file_name.name = "" self.file.wrapped_data.header.file_name.name = "Rabbit"
self.file.wrapped_data.header.file_name.time_stamp = ( self.file.wrapped_data.header.file_name.time_stamp = (
datetime.datetime.utcnow() datetime.datetime.utcnow()
.replace(tzinfo=datetime.timezone.utc) .replace(tzinfo=datetime.timezone.utc)
@@ -62,17 +62,17 @@ class Patcher:
.replace(microsecond=0) .replace(microsecond=0)
.isoformat() .isoformat()
) )
self.file.wrapped_data.header.file_name.preprocessor_version = "" self.file.wrapped_data.header.file_name.preprocessor_version = "Rabbit"
self.file.wrapped_data.header.file_name.originating_system = "" self.file.wrapped_data.header.file_name.originating_system = "Rabbit"
for element in self.file.by_type("IfcApplication"): for element in self.file.by_type("IfcApplication"):
element.Version = "" element.Version = "Rabbit"
element.ApplicationFullName = "" element.ApplicationFullName = "Rabbit"
element.ApplicationIdentifier = "" element.ApplicationIdentifier = "Rabbit"
for element in self.file.by_type("IfcOrganization"): for element in self.file.by_type("IfcOrganization"):
element[0] = None # Id element[0] = None # Id
element.Name = "" element.Name = "Rabbit"
element.Description = None element.Description = None
element.Roles = [] element.Roles = []
element.Addresses = [] element.Addresses = []
@@ -91,8 +91,8 @@ class Patcher:
self.file.remove(element) self.file.remove(element)
for element in self.file.by_type("IfcRoot"): for element in self.file.by_type("IfcRoot"):
element.Name = "" element.Name = "Rabbit"
element.Description = "" element.Description = "Rabbit"
for element in self.file.by_type("IfcContext"): for element in self.file.by_type("IfcContext"):
element.ObjectType = None element.ObjectType = None