mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
@@ -0,0 +1,19 @@
|
||||
class Usecase:
|
||||
def __init__(self, file, **kwargs):
|
||||
"""location, axis and ref_direction defines the plane"""
|
||||
self.file = file
|
||||
self.entity: "IfcRelSpaceBoundary"
|
||||
self.relating_space: "IfcSpace | IfcExternalSpatialElement"
|
||||
self.related_building_element: "IfcElement"
|
||||
self.parent_boundary: "IfcRelSpaceBoundary" = None
|
||||
self.corresponding_boundary: "IfcRelSpaceBoundary" = None
|
||||
for key, value in kwargs.items():
|
||||
setattr(self, key, value)
|
||||
|
||||
def execute(self):
|
||||
self.entity.RelatingSpace = self.relating_space
|
||||
self.entity.RelatedBuildingElement = self.related_building_element
|
||||
if hasattr(self.entity, "ParentBoundary"):
|
||||
self.entity.ParentBoundary = self.parent_boundary
|
||||
if hasattr(self.entity, "CorrespondingBoundary"):
|
||||
self.entity.CorrespondingBoundary = self.corresponding_boundary
|
||||
Reference in New Issue
Block a user