This commit is contained in:
Andrej730
2024-06-27 14:07:48 +05:00
parent 56d3b2ca36
commit 4ec8345716
5 changed files with 98 additions and 71 deletions
@@ -22,10 +22,13 @@ import ifcopenshell.api
from typing import Literal
ACTOR_TYPE = Literal["IfcActor", "IfcOccupant"]
def add_actor(
file: ifcopenshell.file,
actor: ifcopenshell.entity_instance,
ifc_class: Literal["IfcActor", "IfcOccupant"] = "IfcActor",
ifc_class: ACTOR_TYPE = "IfcActor",
) -> ifcopenshell.entity_instance:
"""Adds a new actor