Introduction
SLDPRT is the part file of SolidWorks, Dassault Systèmes’ mechanical CAD program, one of the most widely used in engineering and product design. A part file holds a single solid model together with the feature history that built it: sketches, extrusions, cuts, fillets and the dimensions that drive them, so the part can be edited by changing those dimensions.
Parts are combined in assembly files (.sldasm) and documented in drawing
files (.slddrw), which refer to the part files rather than copying them.
A file saved by a newer SolidWorks cannot be opened by an older one.
Structure
The format is proprietary and not published. The solid geometry is computed by the Parasolid kernel, the same one that writes Parasolid X_T files. Other CAD programs import SLDPRT files through licensed translators, and usually bring in the final solid without the feature history. To share a part, SolidWorks users commonly export STEP or Parasolid files.
In this reference
- Container and streams – the two container eras, the chunk header and its fields, the name scrambling, the DEFLATE data, the directory, the streams that public work has named, and what is unknown
There is no specification. These pages report independent reverse engineering and say where it stops.
Not described
Known, not yet covered
- Reference: the layout of
Contents/CusPropsandContents/CMgrHdr2and the drawing sheet and sketch records, which the open source SWFormat project has decoded in part (its CARCHIVE.md document). The container page names them only. - Viewer: none yet; the hex viewer shows raw bytes.
Unknown
- Reference: the feature tree, sketches, bodies, display lists, history and preview streams of a part, the chunk header’s section_type and the bytes after it, and the directory record layout (list). No public source describes them.
- Reference: the older compound-file (OLE2) era streams.
Links
Software
- SolidWorks – the mechanical CAD program that saves SLDPRT parts (Windows)
- eDrawings – Dassault Systèmes’ free viewer for SolidWorks files (Windows, macOS, mobile)
- Autodesk Fusion – Autodesk’s CAD and CAM program, which imports SLDPRT parts (Windows, macOS)
- Onshape – browser-based CAD program that imports SLDPRT parts (web browsers)
Reference
- SWFormat – open source (Apache-2.0) reverse-engineering project that reads and partly edits SolidWorks files without SolidWorks