Update src/ifcopenshell-python/ifcopenshell/validate.py

Co-authored-by: Thomas Krijnen <t.krijnen@gmail.com>
This commit is contained in:
Geert Hesselink
2025-05-05 17:50:43 +01:00
committed by Thomas Krijnen
parent bbdc9c45dd
commit d00c3735ec
@@ -601,9 +601,6 @@ def to_string_header_entity(header_entity):
"""Recreate IFC header string representation, like FILE_NAME(...)"""
# Prefer native .toString() if available (native IfcOpenShell wrapper)
if hasattr(header_entity, 'toString'):
return header_entity.toString()
if hasattr(header_entity, 'toString'):
return header_entity.toString()
elif hasattr(header_entity, '_fields'):