Use schema_identifier to get IFC4X3 schema more precisely

This commit is contained in:
Andrej730
2025-03-14 14:49:19 +05:00
parent 9f78d9881e
commit 2f87029434
11 changed files with 17 additions and 16 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ def get_ifc_classes(self, context):
file = SvIfcStore.get_file()
if not file:
return []
schema = ifcopenshell.ifcopenshell_wrapper.schema_by_name(file.schema)
schema = ifcopenshell.ifcopenshell_wrapper.schema_by_name(file.schema_identifier)
declaration = schema.declaration_by_name(self.ifc_product)
def get_classes(declaration):
+1 -1
View File
@@ -64,7 +64,7 @@ def get_ifc_classes(self, context):
file = SvIfcStore.get_file()
if not file:
return []
schema = ifcopenshell.ifcopenshell_wrapper.schema_by_name(file.schema)
schema = ifcopenshell.ifcopenshell_wrapper.schema_by_name(file.schema_identifier)
declaration = schema.declaration_by_name(self.ifc_product)
def get_classes(declaration):
+1 -1
View File
@@ -58,7 +58,7 @@ class SvIfcReadEntity(bpy.types.Node, SverchCustomTreeNode, ifcsverchok.helper.S
ifc_class = entity.is_a()
file = SvIfcStore.get_file()
if file:
schema_name = file.wrapped_data.schema
schema_name = file.schema_identifier
else:
schema_name = "IFC4"
self.schema = ifcopenshell.ifcopenshell_wrapper.schema_by_name(schema_name)