I am getting an error when sending from Revit.
Method GetSelectionFilterObjects threw an error of type Autodesk.Revit.Exceptions.ArgumentNullException
This only occurs when selecting the include linked files option. Sending by manually selecting or without the check selected is fine.
The last post about this issue is more than a year ago (Feb 2024) with nothing conclusive:
I have the most recent Speckle version for Revit : 2.21.5
This is the full error:
SendCommand failed - Method GetSelectionFilterObjects threw an error of type Autodesk.Revit.Exceptions.ArgumentNullException. Reason: The input argument "document" of function `anonymous-namespace'::FilteredElementCollector_constructor or one item in the collection is null at line 315 of file E:\Ship23.0.1\2023_px64\Source\Revit\RevitDBAPI\gensrc\APIFilteredElementCollectorProxy.cpp.
Parameter name: document
Speckle.Core.Logging.SpeckleException: Method GetSelectionFilterObjects threw an error of type Autodesk.Revit.Exceptions.ArgumentNullException. Reason: The input argument "document" of function `anonymous-namespace'::FilteredElementCollector_constructor or one item in the collection is null at line 315 of file E:\Ship23.0.1\2023_px64\Source\Revit\RevitDBAPI\gensrc\APIFilteredElementCollectorProxy.cpp.
Parameter name: document ---> Autodesk.Revit.Exceptions.ArgumentNullException: The input argument "document" of function `anonymous-namespace'::FilteredElementCollector_constructor or one item in the collection is null at line 315 of file E:\Ship23.0.1\2023_px64\Source\Revit\RevitDBAPI\gensrc\APIFilteredElementCollectorProxy.cpp.
Parameter name: document
at ?A0xcce20d0d.FilteredElementCollectorProxy_constructor(Document document)
at Speckle.ConnectorRevit.ConnectorRevitUtils.GetSupportedElements(Document doc, IRevitDocumentAggregateCache cache)
at Speckle.ConnectorRevit.UI.ConnectorBindingsRevit.GetEverything(Dictionary`2 linkedDocs)
at Speckle.ConnectorRevit.UI.ConnectorBindingsRevit.GetSelectionFilterObjects(ISpeckleConverter converter, ISelectionFilter filter)
--- End of inner exception stack trace ---
at Speckle.ConnectorRevit.UI.ConnectorBindingsRevit.GetSelectionFilterObjects(ISpeckleConverter converter, ISelectionFilter filter)
at RevitSharedResources.Models.ExternalEventHandler`2.Execute(UIApplication app)
--- 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 RevitSharedResources.Models.APIContext.<Run>d__8`2.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 RevitSharedResources.Models.APIContext.<Run>d__5`1.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__128.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 DesktopUI2.ViewModels.StreamViewModel.<SendCommand>d__213.MoveNext()
Side question:
Speckle.Core.Logging.SpeckleException: Conversion of Opening with id 2607799 (ToSpeckle) returned null
at Speckle.ConnectorRevit.UI.ConnectorBindingsRevit.ConvertToSpeckle(Element revitElement, ISpeckleConverter converter)
at Speckle.ConnectorRevit.UI.ConnectorBindingsRevit.<>c__DisplayClass128_0.<SendStream>b__2()
Why are there these errors and should I be concerned?