BHoM / Speckle_Toolkit

GNU Lesser General Public License v3.0
10 stars 2 forks source link

Speckle_Toolkit: see how to ask Speckle to clone the stream #15

Closed alelom closed 5 years ago

PaulPoinet commented 5 years ago

basically:

SpeckleClient = new SpeckleApiClient() { BaseUrl = SpeckleAccount.RestApi, AuthToken = SpeckleAccount.Token, Stream = SpeckleStreamParent };

SpeckleClient.StreamCloneAsync()
didimitrie commented 5 years ago

I think you still need to pass a streamId. The gh client does it like this:

https://github.com/speckleworks/SpeckleRhino/blob/dev/SpeckleGrasshopper/BaseComponents/GhSenderCoreClient.cs#L411-L419

It then also broadcasts an event (to do that you have to previously join the "resource" room, but that's another story).