nest.assign_object - support batching #4474

This commit is contained in:
Andrej730
2024-04-09 16:41:34 +05:00
parent d1bcec7a6a
commit 97db95085a
15 changed files with 173 additions and 45 deletions
@@ -82,7 +82,7 @@ class Usecase:
rel = ifcopenshell.api.run(
"nest.assign_object",
self.file,
related_object=cost_item,
related_objects=[cost_item],
relating_object=to_element,
)
# elif inverse.is_a("IfcRelAssignsToProduct"):
@@ -104,4 +104,4 @@ class Usecase:
elif isinstance(value, (tuple, list)) and from_element in value:
new_value = list(value)
new_value.append(to_element)
inverse[i] = new_value
inverse[i] = new_value