IOperations to load model data from Speckle Server (Receive3), publish results back (Send3), or serialize object graphs locally. For most AEC scripts, Receive3 is the recommended path — see Load and publish model data before reading signatures here.
Guides: Build your first model analysis tool · Migrate to 2026.9
Example
Receive3 / Send3
Task<Model> Receive3(Account account, string projectId, string modelId, string versionId, ReceiveOptions? options, CancellationToken cancellationToken)
Downloads the version’s bundle and returns a
Speckle.Sdk.Bundles.Model: a flat list of objects
with path-keyed properties and relation accessors. Model is IDisposable and owns the
downloaded files until you dispose it. Pass null for options to use the defaults.Task<Model> Receive3(Account account, Uri modelUrl, ReceiveOptions? options, CancellationToken cancellationToken)
Same as above, addressed by the URL the web app copies:
{server}/projects/{projectId}/models/ {modelId}[@{versionId}]. Without @versionId it loads the latest version. Throws
ArgumentException when the URL is on a different server than account.Task<SendResult> Send3(Account account, string projectId, string modelId, BundleBuilder builder, SendOptions? options, CancellationToken cancellationToken)
Publishes the objects described in
builder as a new version. Returns once the upload finishes,
with a reserved VersionId; the version appears when the server finishes processing. The builder
cannot be reused.Task<SendResult> Send3(Account account, Uri modelUrl, BundleBuilder builder, SendOptions? options, CancellationToken cancellationToken)
Same as above, addressed by the model URL the web app copies.
Task<Version> WaitForVersion(Account account, SendResult sent, TimeSpan? timeout = null, CancellationToken cancellationToken = default)
Waits until the server has created the version from a
Send3 result and returns it. Throws when
processing fails or timeout elapses.Example
Receive3 throws a SpeckleException when the version has no bundle — a version published before
2026.9 that the server has not converted. Load that version with Receive2.Serialize / Deserialize
Serializes an object graph to a JSON string with no transport involved. No detachment occurs
beyond what’s declared via
[DetachProperty]/@ prefixes; nested objects are still inlined
unless detached.Reconstructs a
Base graph from a JSON string previously produced by Serialize.Send / Receive (transports, before 2026.9)
Transport-basedSend and Receive are marked [Obsolete]. They work only with versions published before 2026.9: Receive throws NotSupportedException when you pass a 2026.9 bundle reference.
Task<(string rootObjId, IReadOnlyDictionary<string, ObjectReference> convertedReferences)> Send(Base value, IReadOnlyCollection<ITransport> transports, IProgress<ProgressArgs>? onProgressAction = null, CancellationToken cancellationToken = default)
Sends
value to every transport in transports. Returns the root object’s id and a map of converted references.Overloads accept a single IServerTransport/ITransport plus a useDefaultCache flag, which adds a matching local SQLiteTransport/SQLiteTransport2 automatically.Task<Base> Receive(string objectId, ITransport? remoteTransport = null, ITransport? localTransport = null, IProgress<ProgressArgs>? onProgressAction = null, CancellationToken cancellationToken = default)
Receives the object graph identified by
objectId. Checks localTransport first (defaults to a
new SQLiteTransport if omitted); falls back to remoteTransport and copies the result into the
local transport.Example
Send2 / Receive2 (before 2026.9)
Send2 and Receive2 are marked [Obsolete], and Speckle does not guarantee them for new work. Keep Receive2 to read versions published before 2026.9 as an object graph; on a 2026.9 version it returns only a best-effort Base projection. Publish with Send3 instead of Send2: after Send2, the version a following Version.Create returns is reserved until the server finishes processing. See Publish through model ingestions.
Task<SerializeProcessResults> Send2(Uri url, string streamId, string? authorizationToken, Base value, IProgress<ProgressArgs>? onProgressAction, CancellationToken cancellationToken, SerializeProcessOptions? options = null)
Sends
value directly to the server at url for project streamId (the project id), using the
V2 serialization pipeline.Task<Base> Receive2(Uri url, string streamId, string objectId, string? authorizationToken, IProgress<ProgressArgs>? onProgressAction, CancellationToken cancellationToken, DeserializeProcessOptions? options = null)
Receives an object graph directly from the server, using the V2 deserialization pipeline. When
objectId is a 2026.9 bundle reference (bundle.<projectId>.<modelId>.<versionId>), it returns
a projected Base tree instead.Example
The
streamId parameter name is a legacy holdover — pass your project id.SerializeNew
An experimental
System.Text.Json-based serializer, not yet the default. Avoid for production
workflows — see Load and publish model
data.SendPipeline
Connector-scale ingestion is a separate factory-created pipeline, not a method onIOperations. See Publish large models (connectors) for the full workflow.
Example
WaitForUpload, the server processes the uploaded pack and creates the version asynchronously — the caller does not call client.Version.Create on this pathway. See Publish large models (connectors).
uploadProgress must be IProgress<StreamProgressArgs> — pass new Progress<StreamProgressArgs>() if you don’t need to report progress.Exceptions
See Exceptions for the full hierarchy.
FAQ
Which method should a new script call?
Which method should a new script call?
Receive3 to load and Send3 to publish — see Automate with
scripts. Use Receive2 only for
a version published before 2026.9 that Receive3 cannot load, and Send/Receive only for
local MemoryTransport/SQLiteTransport work or to read versions published before 2026.9.Does Send3 create a version automatically?
Does Send3 create a version automatically?
Yes. The server creates the version when it finishes processing the upload; call
WaitForVersion if your script needs it. For Send and Send2 you call
client.Version.Create yourself, and the id it returns is reserved until processing completes.
SendPipeline also creates the version on the server — see Publish large models
(connectors).When do I need SendPipeline instead of Send3?
When do I need SendPipeline instead of Send3?
When uploading a whole host-application model from a connector — thousands of elements
converted incrementally. See Publish large models
(connectors).
Next Steps
Load and publish model data
Choose Receive3, Send3, or SendPipeline
Build your first model analysis tool
Receive3 worked example
Migrate to 2026.9
Receive2 and Send2 side by side with Receive3 and Send3