RSJ 3D Packer 3D bin packing, palletising and load optimisation

← All posts

2026-10-30

Google Sheets Container Packing Add-On: A Quick Start

Google Sheets Container Packing Add-On: A Quick Start
RSJ 3D Packer packing optimization item packer

Google Sheets Container Packing Add-On: A Quick Start

Your item list already lives in a spreadsheet. Then someone copies the dimensions into a separate packing tool, runs a calculation, waits, and retypes the container numbers and coordinates back into the same sheet they started from. Next week a colleague does the same thing with slightly different numbers, and now you have two plans that disagree.

The Google Sheets container packing add-on for RSJ 3D Packer removes that loop. The item list stays where it is, the solve happens against the same cloud solver that powers the web app and the REST API, and the result is written back as new columns. This article walks through the one-time setup, the pipeline from rows to a plan, what to do when items come back unpacked, and the practices that keep repeated runs trustworthy.

Why Automate Container Packing in Google Sheets?

The manual loop has three failure points, and none of them are about the solver:

  • Transcription. Every dimension you retype is a chance to swap width and depth or drop a digit. A 120 cm depth that becomes 102 cm produces a plan that looks perfectly reasonable and is wrong.
  • Staleness. The sheet gets updated; the packing tool’s copy of the data does not. You end up optimising a plan for last month’s item list.
  • Divergence. When each planner keeps their own intermediate file, two people asking the same question get two different answers, and nobody can say which one is current.

The add-on closes all three by making the sheet the single input. You select a range, trigger a solve, and the plan lands next to the data it was derived from — same file, same version, same tab.

Two things to understand about what you get back. First, the add-on is part of the cloud subscription and talks to the same solver as the web application and the API, so results are consistent across all three. Second, the solver handles the static problem: items may be packed in any order, and every solve is a fresh plan computed from the current sheet contents. It is not a live link that updates as you type.

One-Time Setup: Installing and Configuring the Add-On

The add-on is distributed through Google’s add-on mechanism and is available with the cloud subscription. Setup is a one-time sequence per user.

1. Install the add-on and authorize it. Install it as you would any Google Sheets add-on, then grant the permissions it asks for. Once installed, the add-on appears alongside your other extensions inside the spreadsheet.

2. Connect it to your RSJ 3D Packer account. The add-on authenticates through your existing RSJ account — the same account you use for the web application. There are no separate API keys to generate, store, rotate, or leak. If you don’t have an account yet, sign in or create one first.

Behind the scenes, that account maps onto the API’s session model. A stand-alone client would fetch a short-lived session token like this:

# The hmac is computed server-side while you're logged in; copy it once.
SESSION=$(curl -s "https://3dpacker.rsj.de/user/you@example.com?hmac=$HMAC" | jq -r .session)

curl -s -X POST https://3dpacker.rsj.de/solve \
  -H "Authorization: Bearer $SESSION" \
  -H "Content-Type: application/json" \
  -d @request.json

You don’t do this by hand when using the add-on — it handles the account connection for you. The snippet matters only if you later want to trigger the same solve from a script (more on that below).

3. Prepare the sheet. One row per item type, one column per field the solver accepts. Header names that match the API field names keep the sheet readable as a request body:

id width height depth count weight itemClass vertical
A-1001 11 6 6 51 0 TRUE
B-2043 7 8 9 53 12 1 FALSE
C-3110 8 9 10 57 0 TRUE
  • Required: width, height, depth. count defaults to 1 when omitted.
  • Optional: weight, itemClass, vertical, riskPoints, riskTypes, plus an id of your choosing so you can trace a packed item back to its row.
  • Containers: keep a second block or sheet with width, height, depth, count, and optionally weight (maximum load), allowedRiskPoints and itemClass. A solve needs both items and containers.

Keep units consistent across items and containers — the solver has no unit concept, so mixing centimetres and millimetres will produce confident nonsense. Also note the field names are the contract: unknown keys in a request are ignored, which means a typo like widht doesn’t error out, it just disappears.

4. Check your plan coverage before you rely on optional columns. The free 30-day test exposes the full Pro feature set, so you can exercise every column above before committing. When the test ends, feature availability splits by plan:

Feature Free Test Basic Standard Pro
Different item sizes yes yes yes yes
Different container sizes no no yes yes
Weight limits no no yes yes
Prevent vertical rotation no no yes yes
Dangerous goods (risk types/points) no no no yes

The Automated Pipeline: From Spreadsheet to Packing Plan

Once the sheet is set up, the workflow is one action per plan.

Select the range, trigger the solve, read the result. The add-on packages your rows and container block into a request and sends it to the cloud API. The solver works with a 240-second time budget per request, on every plan — that’s the ceiling, not the typical duration.

For reference, the request the add-on assembles looks like this:

{
  "containers": [
    { "width": 48, "height": 47, "depth": 46, "count": 1, "weight": 2000 }
  ],
  "items": [
    { "id": "A-1001", "width": 11, "height": 6, "depth": 6, "count": 51 },
    { "id": "B-2043", "width": 7, "height": 8, "depth": 9, "count": 53, "vertical": false, "itemClass": 1, "weight": 12 },
    { "id": "C-3110", "width": 8, "height": 9, "depth": 10, "count": 57 }
  ]
}

The response carries the plan in a form you can write straight back into cells:

{
  "containers": [
    { "width": 48, "height": 47, "depth": 46, "count": 1, "used": 1, "filled": 76.77, "first": 0 }
  ],
  "items": [
    { "width": 11, "height": 6, "depth": 6, "count": 51, "vertical": true, "remaining": 0 },
    { "width": 8, "height": 9, "depth": 10, "count": 57, "remaining": 17 }
  ],
  "packedItems": [
    { "id": 0, "c": 0, "width": 11, "height": 6, "depth": 6, "x": 0, "y": 0, "z": 0 }
  ],
  "unpackedItems": [
    { "id": 2, "width": 8, "height": 9, "depth": 10, "weight": 0, "itemClass": 0, "count": 17 }
  ]
}

What lands back in the sheet: a container index and x/y/z position per packed item, fill percentage per container, the number of containers used, and any unpacked items with their counts. The result also carries a viewer URL and an API sandbox URL for that solve, so you can open an interactive 3D view of the plan instead of reading coordinates, or replay the exact request in the sandbox.

When you outgrow one click. The same solve is available over the REST API, which is what you want if plans should be generated on a schedule, from an ERP export, or for a batch of scenarios. That path is covered in detail in Automate Container Loading Plans Straight From Google Sheets. The add-on remains the shortest route from a spreadsheet to a plan; the API is the same solver with a different trigger.

Monitoring Results and Handling Unpacked Items

Every solve is a static snapshot. There is no background process, and nothing updates between runs — so “monitoring” here means reading the last result carefully and deciding whether to re-run.

Read the output in this order:

  1. used per container and filled percentage. This tells you whether the plan is tight or whether there’s headroom you paid for. If you’re unsure what counts as a good number for your cargo, see How Container Fill Percentage Is Calculated (and What Good Looks Like).
  2. remaining per item line. Anything above zero means that line was not fully packed.
  3. unpackedItems. These are the shortfalls, grouped by item type with counts — the list you actually act on.

A practical sheet habit: filter or sort the item table by the remaining quantity so unpacked lines sit at the top, then work down the list. Common causes, each with a different fix:

  • Not enough containers. Raise count on the container block and re-run.
  • Weight limits. The container’s weight cap can bind long before the volume does — a plan that looks under-filled may be at its load limit. Weight limits are available on Standard and Pro.
  • Stacking constraints. itemClass only lets an item sit on items of a lower or equal class, so a heavy class-0 base layer can cap how much class-1 cargo goes in.
  • Dangerous goods. allowedRiskPoints per container plus incompatible riskTypes pairs can rule out otherwise valid combinations. Pro only.

Then re-run. Adjust the input, trigger the add-on again, get a new plan. Because the input and the output sit in the same file, the diff between two runs is visible rather than buried in someone’s downloads folder.

Best Practices for Reliable Packing Automation

Treat the sheet like master data, not a scratchpad. Same units everywhere, no merged cells inside the data range, no blank rows in the middle of the item block. Check the dimension columns yourself before a run — a plan is only as good as the numbers you hand it.

Use itemClass to encode stacking rules deliberately. Lower class numbers are the stronger base. If everything is class 0, anything can go on anything; the moment you introduce class 1, those items can no longer support each other.

Set vertical: false for anything that must stay upright. This is the field that prevents a rotation you can’t live with; the details are in How to Stop Items Being Rotated During Packing. Pair it with a container weight limit so you’re not trading a tipping problem for an overload.

Configure dangerous goods on both sides. Risk types and points belong on the items, allowedRiskPoints on the container, and incompatible pairs in the risks array:

{
  "risks": [{ "type1": 1, "type2": 2 }],
  "items": [
    { "width": 8, "height": 9, "depth": 10, "count": 57, "riskTypes": [1, 2], "riskPoints": 10 }
  ]
}

Start small, look at it in 3D, then scale. Run a subset of ten or twenty item types first and open the viewer URL. Coordinates are hard to sanity-check in a spreadsheet; a 3D view of the stack is not. The viewer is embeddable in an IFRAME, which makes it usable in an internal dashboard. The solution can also be downloaded as a GLB model if you want to inspect it in a CAD or 3D tool.

Keep one row per item type, not one per physical unit. count exists for a reason — 500 rows of the same carton is slower to maintain and no more accurate.

FAQ

Do I need an API key to use the Google Sheets add-on?

No. The add-on authenticates through your RSJ 3D Packer account, so you don’t need to manage API keys separately.

Can I use the add-on during the free trial?

Yes. The free 30-day trial exposes the Pro feature set, so you can test all add-on capabilities before subscribing.

What happens if some items cannot be packed?

The solver returns a list of unpacked items with their counts. You can review them in the sheet, adjust container sizes or item quantities, and run the add-on again.

Does the add-on support dangerous goods constraints?

Yes, if you are on the Pro plan. You can specify riskTypes and riskPoints for items, allowedRiskPoints for containers, and incompatible risk pairs in the risks array.

Is the add-on available on every plan?

It is part of the cloud subscription. Feature availability within a solve still follows your plan — different container sizes, weight limits and vertical rotation control require Standard or higher, and dangerous goods require Pro.

Can I trigger a solve without opening the spreadsheet?

Yes. The REST API exposes the same solver; the OpenAPI document is published at 3dpacker.rsj.de/static/openapi.yaml, and there’s a live request playground at the API sandbox.

Conclusion

The value of the add-on isn’t that it packs better than a packing tool — it’s that it removes the copy-paste step where plans go wrong. The item list, the solve, and the result end up in one file, and the next run is a click rather than a migration.

Start with the free 30-day test, which exposes the Pro feature set, and run a small range first. When you’re ready to commit, plans start at €100/month excluding VAT, with yearly billing available, and you can compare plans and check out from the storefront.

Related posts

EU label: AI-generated content