mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-29 16:22:53 +00:00
ty: detect unresolved references
This commit is contained in:
@@ -71,11 +71,13 @@ class Patcher:
|
||||
|
||||
# Sort elements by GlobalId to ensure consistent order
|
||||
elements_sorted = sorted(elements, key=lambda x: x.GlobalId)
|
||||
element_quantities = None
|
||||
for element in elements_sorted:
|
||||
quantities = self.get_element_quantities(element)
|
||||
if quantities:
|
||||
element_quantities = quantities
|
||||
break
|
||||
assert element_quantities is not None
|
||||
|
||||
if not element_quantities:
|
||||
continue
|
||||
|
||||
@@ -521,7 +521,7 @@ class Patcher(ifcpatch.BasePatcher):
|
||||
data_type = "JSON"
|
||||
json_attrs.append(i)
|
||||
else:
|
||||
print("Possibly not implemented attribute data type:", attribute, primitive)
|
||||
assert False, f"{attribute}, {primitive}"
|
||||
if not self.is_strict or derived[i]:
|
||||
optional = "DEFAULT NULL"
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user