From 862713cda4b4034e8fb869a1d9bb2ddfddb311ef Mon Sep 17 00:00:00 2001 From: Ryan Schultz Date: Thu, 6 Nov 2025 20:56:56 -0600 Subject: [PATCH] related to #7298 - skip `material`, as well. --- src/ifccsv/ifccsv.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ifccsv/ifccsv.py b/src/ifccsv/ifccsv.py index 58bdff945a..88541f1e2a 100755 --- a/src/ifccsv/ifccsv.py +++ b/src/ifccsv/ifccsv.py @@ -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)