From b4d41790a5f100d9bee00763b382fea4ab30d0f1 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 20 Jun 2025 14:19:27 +0500 Subject: [PATCH] ifcopenshell.validate - fix mixed up rule names (IfcApplication.UR) --- src/ifcopenshell-python/ifcopenshell/validate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/validate.py b/src/ifcopenshell-python/ifcopenshell/validate.py index 2eb29c431a..ad468a8f94 100644 --- a/src/ifcopenshell-python/ifcopenshell/validate.py +++ b/src/ifcopenshell-python/ifcopenshell/validate.py @@ -691,7 +691,7 @@ def validate_ifc_applications(f: ifcopenshell.file, logger: Logger) -> None: else: if hasattr(logger, "set_state"): logger.set_state("instance", inst) - rule = "Rule IfcApplication.UR1:\n The attribute ApplicationFullName should be unique" + rule = "Rule IfcApplication.UR2:\n The attribute ApplicationFullName should be unique" previous_element = used_names[app_name] logger.error( "On instance:\n %s\n %s\n%s\nViolated by:\n %s\n %s", @@ -708,7 +708,7 @@ def validate_ifc_applications(f: ifcopenshell.file, logger: Logger) -> None: else: if hasattr(logger, "set_state"): logger.set_state("instance", inst) - rule = "Rule IfcApplication.UR2:\n The attribute ApplicationIdentifier should be unique" + rule = "Rule IfcApplication.UR1:\n The attribute ApplicationIdentifier should be unique" previous_element = used_ids[app_id] logger.error( "On instance:\n %s\n %s\n%s\nViolated by:\n %s\n %s",