specklesystems / speckle-sharp

.NET SDK, Schema and Connectors: Revit, Rhino, Grasshopper, Dynamo, ETABS, AutoCAD, Civil3D & more.
https://speckle.systems
Apache License 2.0
354 stars 166 forks source link

Fix revit threading #3498

Closed oguzhankoral closed 1 month ago

oguzhankoral commented 1 month ago

Revit was syncing before with its current thread. This behavior changed when syncing with the Main thread became the default. I overridden it to the current thread.

JR-Morgan commented 1 month ago

Should we be implementing our own Revit sync to thread, implemented using APIContext.Run? I foresee we'll need to do this for receive if not also for send.

oguzhankoral commented 1 month ago

Should we be implementing our own Revit sync to thread, implemented using APIContext.Run? I foresee we'll need to do this for receive if not also for send.

Hmm, don't know yet the difference using the current thread or APIContext.Run. We can consider this when we start to implement revit receive