This commit is contained in:
Andrej730
2025-01-28 14:59:01 +05:00
parent 7b94a8d1f5
commit c0306fc729
4 changed files with 10 additions and 2 deletions
@@ -22,7 +22,7 @@ import ifcopenshell.api.owner
import ifcopenshell.util.unit
import ifcopenshell.util.element
import ifcopenshell.util.placement
from typing import Optional, Union
from typing import Optional, Union, Any
NPArrayOfFloats = npt.NDArray[np.float64]
@@ -46,6 +46,9 @@ def edit_object_placement(
class Usecase:
file: ifcopenshell.file
settings: dict[str, Any]
def execute(self):
if not hasattr(self.settings["product"], "ObjectPlacement"):
return