mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-01 17:36:27 +00:00
Use schema_identifier to get IFC4X3 schema more precisely
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user