mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
Forgot rabbit branding.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user