Skip to main content

Goal

Understand how project creation, publishing, versions, and loading fit together by publishing a small model of your own and reading it back.

What you will build

In this optional deep dive, you will:
  1. Paste the one-time SDK bootstrap (dependency injection setup you copy, not a concept you study)
  2. Authenticate with Speckle Server
  3. Create a workspace project and model
  4. Describe a wall and a door with a BundleBuilder
  5. Publish them as a new version with Send3
  6. Load the version back with Receive3

When to use this

Use this page when you want the full publish workflow from scratch. For most AEC automation — loading connector-published models, QA checks, CSV exports — start with Build your first model analysis tool instead. Creating data in code is less common in practice.
Updating a tour or script written for Send / Receive with ServerTransport, or Send2 / Receive2? See Migrate to 2026.9.

Prerequisites

  1. Install the package. From your project directory, run:
You should see <PackageReference Include="Speckle.Sdk" Version="2026.9.0-beta.7" /> in your .csproj. A later stable 2026.9.0 replaces the beta pin without changing the calls on this page.
  1. Get a personal access token. In the web app, open the workspace switcher (the workspace name at the top of the left sidebar), select your name, then open Developer and create a token. See Building with PATs. You will paste it in Step 2 below.

Full workflow

Step 1: Bootstrap the SDK (copy once)

Register Speckle.Sdk once at startup.
Example
This is boilerplate, not a DI tutorial. You are not expected to register your own services or understand container lifetimes. Automate with scripts shows how to wrap this in a static helper for notebook cells and Grasshopper scripts.

Step 2: Authenticate

Example
If this works, you’ll see your name printed!

Step 3: Create a workspace project and model

Projects are the top-level containers for your data. A model holds the versions you publish. Replace your_workspace_id with an id returned by client.ActiveUser.GetWorkspaces().
Example
If the workspace plan is already at your maximum project limit, you’ll need to delete some projects before creating a new one.

Step 4: Describe objects with a BundleBuilder

A BundleBuilder collects objects, their properties, their geometry, and the relations between them. Each object is identified by an application id you choose.
Example
Nested property dictionaries become dotted paths: the wall’s offset is stored as Constraints.Base Offset. door.Host = wall records a typed relation instead of nesting the door inside the wall. See Object model and Relations.

Step 5: Publish a version

Example
Send3 returns as soon as the upload finishes. The server then processes the bundle and creates the version. WaitForVersion waits for that, so the version exists before you load it in the next step.
Go to that URL to see the new version in the web app.

Step 6: Load the version back

Example
Receive3 downloads the version’s bundle to a scratch directory and returns a Model. Wrap it in using so the files are deleted when you are done.
You’ve now completed your first full Speckle workflow with .NET.

Complete example

Complete example

FAQ

Use Automate with scripts for Grasshopper, notebooks, and one-off automations that load existing models — it needs only the bootstrap and Receive3. Use this quickstart when you want to publish your own data and see the whole round trip.
The server processes every upload before it creates the version. Send3 returns a reserved version id when the upload finishes; the version appears when processing completes. Call WaitForVersion when the same script needs it. See Publish through model ingestions.
It fails. Send3 finishes the builder, so it cannot be reused. Create a new BundleBuilder for each version you publish.
Processing may still be running, or it failed. Wait for WaitForVersion to return; if it throws, the publish did not create a version and you should send again.

Next Steps

Build your first model analysis tool

Recommended next — load and analyse existing models

Load and publish model data

Choose the right load and publish path

Object model

How properties and relations are stored

Need Help?

Community Forum

Ask questions and get help

GitHub

View source code and report issues
Last modified on October 19, 2026