Validating Open Packaging Conventions (.rels) and Production Extension Targets in 3MF
How Broken OPC Relationships Silently Drop Multi-Part 3MF Sub-Models
Modern slicer project files saved by Bambu Studio, PrusaSlicer, and Fusion 360 store far more than a single 3D/3dmodel.model XML stream: they split heavy geometry across 3D/Objects/*.model sub-parts using the 3MF Production Extension, embed thumbnail previews under Metadata/, and wire everything together via ECMA-376 Open Packaging Conventions (.rels) XML manifests. When a script re-zips or edits a .3mf archive with mismatched leading slashes, case-sensitive path typos, or deleted object IDs, slicers either abort import or silently omit structural components.
Our dependency checker enumerates every ZIP entry, parses all *.rels relationship tables, verifies target existence inside the archive, and performs a graph traversal starting from <build><item> entries through <component> references to compute exact object reachability.
- Verifies [Content_Types].xml and _rels/.rels primary 3dmodel relationship resolution.
- Detects dangling <item objectid="..."> or <component objectid="..."> references to missing objects.
- Reports uncompressed byte totals and ZIP member inventories without extracting files to disk.
Dependency Closure on placed-cubes.3mf
In placed-cubes.3mf, rel0 points to /3D/3dmodel.model, both build items reference object ID "1" ("Cube10mm"), and all relationships close cleanly with zero missing targets.