This commit is contained in:
Andrej730
2025-05-09 19:26:20 +05:00
parent 0f37eca333
commit 381fca0812
2 changed files with 4 additions and 2 deletions
@@ -85,7 +85,9 @@ class TestAppendAssetIFC2X3(test.bootstrap.IFC2X3):
library = ifcopenshell.api.project.create_file(version=self.file.schema)
ifcopenshell.api.root.create_entity(library, ifc_class="IfcProject")
lib_context = ifcopenshell.api.context.add_context(library, context_type="Model")
lib_subcontext = ifcopenshell.api.context.add_context(library, context_type="Model", context_identifier="Body", target_view="MODEL_VIEW", parent=lib_context)
lib_subcontext = ifcopenshell.api.context.add_context(
library, context_type="Model", context_identifier="Body", target_view="MODEL_VIEW", parent=lib_context
)
# It has no contexts right now
ifcopenshell.api.root.create_entity(self.file, ifc_class="IfcProject")