Unfortunately, it isn’t working on my end. It is slightly different then before so I just share my findings.
Manager: v2.1.3
Connector for Revit: 2.2.1-BETA
Revit 2021 crashes. One time it crashed when I tried to send a newly created stream (so creating a new stream and choosing a filter worked). The other time it already crashed when I click the “Create a new stream” button.
In Revit 2019 and 2020, I am able to create a new stream and choose the “Set/Edit Objects Filter” and set some kind of filter. When clicking on the send button, I get the errors below (Revit doesn’t crash).
Revit 2019 error (is different):
Array cannot be null.
at Speckle.Core.Serialisation.BaseObjectSerializerV2.Dict2Json(Dictionary`2 obj)
at Speckle.Core.Serialisation.BaseObjectSerializerV2.PreserializeBase(Base baseObj, Boolean computeClosures, DetachInfo inheritedDetachInfo)
at Speckle.Core.Serialisation.BaseObjectSerializerV2.PreserializeObject(Object obj, Boolean computeClosures, DetachInfo inheritedDetachInfo)
at Speckle.Core.Serialisation.BaseObjectSerializerV2.PreserializeObject(Object obj, Boolean computeClosures, DetachInfo inheritedDetachInfo)
at Speckle.Core.Serialisation.BaseObjectSerializerV2.PreserializeBasePropertyValue(Object baseValue, DetachInfo detachInfo)
at Speckle.Core.Serialisation.BaseObjectSerializerV2.PreserializeBase(Base baseObj, Boolean computeClosures, DetachInfo inheritedDetachInfo)
at Speckle.Core.Serialisation.BaseObjectSerializerV2.PreserializeObject(Object obj, Boolean computeClosures, DetachInfo inheritedDetachInfo)
at Speckle.Core.Serialisation.BaseObjectSerializerV2.Serialize(Base baseObj)
at Speckle.Core.Api.Operations.<Send>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Speckle.ConnectorRevit.UI.ConnectorBindingsRevit.<SendStream>d__9.MoveNext() in C:\Users\circleci\project\ConnectorRevit\ConnectorRevit\UI\ConnectorBindingsRevit.Send.cs:line 136
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Speckle.DesktopUI.Streams.StreamsRepository.<ConvertAndSend>d__2.MoveNext() in C:\Users\circleci\project\DesktopUI\DesktopUI\Streams\StreamsRepository.cs:line 22
Revit 2020 error (appears to be the same):
The type initializer for 'PerTypeValues`1' threw an exception.
at System.Text.Json.PooledByteBufferWriter.Dispose()
at System.Text.Json.JsonSerializer.Serialize[TValue](TValue& value, Type inputType, JsonSerializerOptions options)
at System.Text.Json.JsonSerializer.Serialize[TValue](TValue value, JsonSerializerOptions options)
at Speckle.Core.Serialisation.BaseObjectSerializerV2.Dict2Json(Dictionary`2 obj)
at Speckle.Core.Serialisation.BaseObjectSerializerV2.PreserializeBase(Base baseObj, Boolean computeClosures, DetachInfo inheritedDetachInfo)
at Speckle.Core.Serialisation.BaseObjectSerializerV2.PreserializeObject(Object obj, Boolean computeClosures, DetachInfo inheritedDetachInfo)
at Speckle.Core.Serialisation.BaseObjectSerializerV2.PreserializeObject(Object obj, Boolean computeClosures, DetachInfo inheritedDetachInfo)
at Speckle.Core.Serialisation.BaseObjectSerializerV2.PreserializeBasePropertyValue(Object baseValue, DetachInfo detachInfo)
at Speckle.Core.Serialisation.BaseObjectSerializerV2.PreserializeBase(Base baseObj, Boolean computeClosures, DetachInfo inheritedDetachInfo)
at Speckle.Core.Serialisation.BaseObjectSerializerV2.PreserializeObject(Object obj, Boolean computeClosures, DetachInfo inheritedDetachInfo)
at Speckle.Core.Serialisation.BaseObjectSerializerV2.Serialize(Base baseObj)
at Speckle.Core.Api.Operations.<Send>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Speckle.ConnectorRevit.UI.ConnectorBindingsRevit.<SendStream>d__9.MoveNext() in C:\Users\circleci\project\ConnectorRevit\ConnectorRevit\UI\ConnectorBindingsRevit.Send.cs:line 136
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Speckle.DesktopUI.Streams.StreamsRepository.<ConvertAndSend>d__2.MoveNext() in C:\Users\circleci\project\DesktopUI\DesktopUI\Streams\StreamsRepository.cs:line 22