From 3f5880156b6bf0672b1a777ac9be66ddfe851a2a Mon Sep 17 00:00:00 2001 From: Jonathon Broughton <760691+jsdbroughton@users.noreply.github.com> Date: Thu, 5 Jun 2025 15:29:02 +0100 Subject: [PATCH] Update rule_processor.py (#67) --- src/rule_processor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rule_processor.py b/src/rule_processor.py index fc7b991..e9f40da 100644 --- a/src/rule_processor.py +++ b/src/rule_processor.py @@ -335,9 +335,12 @@ def apply_rules_to_objects( ): speckle_print(f"Rule {rule_id_str} Skipped") + newBase = Base() + newBase.id = "123" + automate_context.attach_info_to_objects( category=f"Rule {rule_id_str} Skipped", - affected_objects=[Base()], + affected_objects=[newBase], # This is a hack to get a rule to report with no valid objects message=f"No objects found for rule {rule_id_str}", metadata={},