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
@@ -131,7 +131,7 @@ class Annotator:
) -> bpy.types.Object:
camera = tool.Ifc.get_object(drawing)
# those annotations you want to obey the depth of the 3d cursor
if object_type == 'PLAN_LEVEL':
if object_type == "PLAN_LEVEL":
co1 = bpy.context.scene.cursor.location.copy()
else:
co1, _, _, _ = Annotator.get_placeholder_coords(camera)
@@ -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")