From 5ed6ab2f69cca4f6a62d1ff69ce6537a05b59f2e Mon Sep 17 00:00:00 2001 From: Claire Kuang Date: Thu, 1 Feb 2024 17:25:12 +0000 Subject: [PATCH] attach warning test --- SpeckleAutomateDotnetExample/AutomateFunction.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SpeckleAutomateDotnetExample/AutomateFunction.cs b/SpeckleAutomateDotnetExample/AutomateFunction.cs index 4fb61f3..70221e0 100644 --- a/SpeckleAutomateDotnetExample/AutomateFunction.cs +++ b/SpeckleAutomateDotnetExample/AutomateFunction.cs @@ -223,6 +223,11 @@ static class AutomateFunction $"MODIFIED object: id( {o.Item1} ), type( {o.Item2} ), changed props:( {o.Item3} )" ) ); + + automationContext.AttachWarningToObjects( + MODIFIED, + modifiedList.Select(o => o.Item1).ToList() + ); } else {