This commit is contained in:
Andrej730
2024-06-17 11:30:38 +05:00
parent 8b6235f42f
commit a594a6cfe2
3 changed files with 22 additions and 10 deletions
@@ -18,13 +18,22 @@
import ifcopenshell
import ifcopenshell.api
from typing import Any, Optional
from typing import Any, Optional, Literal
SURFACE_STYLE_TYPES = Literal[
"IfcExternallyDefinedSurfaceStyle",
"IfcSurfaceStyleLighting",
"IfcSurfaceStyleRefraction",
"IfcSurfaceStyleShading",
"IfcSurfaceStyleWithTextures",
]
def add_surface_style(
file: ifcopenshell.file,
style: ifcopenshell.entity_instance,
ifc_class: str = "IfcSurfaceStyleShading",
ifc_class: SURFACE_STYLE_TYPES = "IfcSurfaceStyleShading",
attributes: Optional[dict[str, Any]] = None,
) -> None:
"""Adds a new presentation item to a surface style