I am trying to send some linked model elements from a view to the Speckle viewer, but when I select the checkbox to “Send Linked Models” and try to send the view, this error gets thrown:
Method GetSelectionFilterObjects threw an error of type Autodesk.Revit.Exceptions.ArgumentException. Reason: viewId is not a view.
Parameter name: viewId
The good news is that this will work if you are on Revit 2024 (or higher), the bad news is that in older versions there is no way from the API to get the visibility of objects inside linked models.
I found here a hacky solution, that we might try at some point, but it doesn’t seem to be 100% safe, as it requires unloading linked models, adding a clone of the current view, and reloading them (and ofc undoing the changes), which seems a bit risky.
@bowen_utahbim I also just realized that for your specifc use case, you can actually use a Filter selection filter, and have that get only the phase you’re interested in:
Hi Matteo, we are still experiencing this error for a similar problem where sending views with links produces the error above. We are on Revit 2024 and speckle connector 2.20.2, any ideas?