mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
related to #7298 - skip material, as well.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user