From 089a1a1a34522660d99af7b2bca140af0952dd89 Mon Sep 17 00:00:00 2001 From: Pawel Baran Date: Thu, 25 Feb 2021 12:28:53 +0100 Subject: [PATCH] #979 fix --- Revit_Adapter/RevitAdapter.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Revit_Adapter/RevitAdapter.cs b/Revit_Adapter/RevitAdapter.cs index 21918cd17..5d5960744 100644 --- a/Revit_Adapter/RevitAdapter.cs +++ b/Revit_Adapter/RevitAdapter.cs @@ -144,10 +144,8 @@ private void RaiseEvents() if (m_ReturnEvents == null) return; - Engine.Reflection.Query.CurrentEvents().AddRange(m_ReturnEvents); - Engine.Reflection.Query.AllEvents().AddRange(m_ReturnEvents); - - m_ReturnEvents = new List(); + m_ReturnEvents.ForEach(x => Engine.Reflection.Compute.RecordEvent(x)); + m_ReturnEvents.Clear(); } /***************************************************/