related to #7298 - skip material, as well.

This commit is contained in:
Ryan Schultz
2025-11-06 20:56:56 -06:00
parent 06c1668e42
commit 862713cda4
+4 -4
View File
@@ -489,8 +489,8 @@ class IfcCsv:
bool_false: str,
concat: str,
) -> None:
# Read-only attributes that should be skipped during import
READ_ONLY_ATTRIBUTES = {'count'}
# Patterns to skip during import (substrings)
SKIP_PATTERNS = {'count', 'material'}
try:
element = ifc_file.by_guid(row[0])
@@ -510,8 +510,8 @@ class IfcCsv:
value = False
key = attributes[i] or headers[i]
# Skip read-only attributes
if key.lower() in READ_ONLY_ATTRIBUTES:
# Skip keys containing certain patterns
if any(pattern in key.lower() for pattern in SKIP_PATTERNS):
continue
ifcopenshell.util.selector.set_element_value(ifc_file, element, key, value, concat=concat)