Not all curve annotation types were detected at the import #3090

This commit is contained in:
Andrej730
2023-05-11 10:54:27 +05:00
parent 8643aff800
commit ca09ff2ef0
+3 -9
View File
@@ -36,7 +36,7 @@ import ifcopenshell.util.geolocation
import blenderbim.tool as tool import blenderbim.tool as tool
from itertools import chain, accumulate from itertools import chain, accumulate
from blenderbim.bim.ifc import IfcStore from blenderbim.bim.ifc import IfcStore
from blenderbim.bim.module.drawing.prop import get_diagram_scales from blenderbim.bim.module.drawing.prop import ANNOTATION_TYPES_DATA
class FileCopy(threading.Thread): class FileCopy(threading.Thread):
@@ -1711,14 +1711,8 @@ class IfcImporter:
bpy.context.scene.collection.objects.link(obj) bpy.context.scene.collection.objects.link(obj)
def is_curve_annotation(self, element): def is_curve_annotation(self, element):
return element.ObjectType in [ object_type = element.ObjectType
"DIMENSION", return object_type in ANNOTATION_TYPES_DATA and ANNOTATION_TYPES_DATA[object_type][3] == "curve"
"EQUAL_DIMENSION",
"PLAN_LEVEL",
"SECTION_LEVEL",
"STAIR_ARROW",
"TEXT_LEADER",
]
def get_drawing_group(self, element): def get_drawing_group(self, element):
for rel in element.HasAssignments or []: for rel in element.HasAssignments or []: