mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 14:33:28 +00:00
Not all curve annotation types were detected at the import #3090
This commit is contained in:
@@ -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 []:
|
||||||
|
|||||||
Reference in New Issue
Block a user