← AlvaroGil.com  ·  CAD/CAM

SLDPRT to Parasolid and STEP, without SolidWorks

How to get usable geometry out of SolidWorks part files when you don't own SolidWorks, using the free Solid Edge Community Edition and Claude Code. November 2026.

Someone sends you a folder of .SLDPRT files. You want to machine, print or remodel the parts, but you don't have SolidWorks. Most CAM and CAD programs can't open these files, or need a SolidWorks install to do it.

It turns out you don't need SolidWorks. Every modern SLDPRT carries a copy of the finished solid inside it, stored as Parasolid data, the same geometry kernel SolidWorks, Solid Edge, NX, Mastercam and many others are built on. All you need is a way to dig it out and save it as a normal file. That is what this page is about.

.SLDPRT  →  embedded Parasolid body  →  .x_t / .x_b  →  Solid Edge  →  .stp

You get a "dumb" solid: the exact shape, surfaces and edges, but no feature tree, sketches or dimensions. That is exactly what you need for CAM, 3D printing, measuring, or using the part as a reference to model on top of.

What you need

Download the skill (sldprt-to-parasolid-skill.zip)

Licence: the Community Edition is for personal, non-commercial use only. If the work is for a paying job, use a commercial Solid Edge licence (or another Parasolid-based program you own; see the end of the page).

Files: only convert files you are allowed to use. This method reads geometry that is already in the file; it doesn't get around any protection.

Step 1: Install Solid Edge Community Edition

  1. Go to Siemens' Solid Edge Community Edition download page and fill in the form. You'll need a free Siemens account.
  2. Download and run the installer with the default options. It installs to C:\Program Files\Siemens\Solid Edge <version>.
  3. Start Solid Edge once, sign in or activate it as the installer asks, then close it.

The scripts find Solid Edge on their own. The kernel lives in ...\Solid Edge <version>\Program\pskernel.dll, and its schema files in ...\Solid Edge <version>\Schema.

Step 2: Install Python and Claude Code

  1. Install Python 3 from python.org. Tick Add python.exe to PATH in the installer.
  2. Install Claude Code using Anthropic's instructions. The desktop app is the easiest way: open it and use the Code tab.

Step 3: Install the skill

A skill is a folder that teaches Claude how to do a specific job. Claude reads it automatically when your request matches.

  1. Unzip sldprt-to-parasolid-skill.zip. You get a folder called sldprt-to-parasolid with a SKILL.md and a scripts folder.
  2. Move that folder into your personal skills folder:
    C:\Users\<you>\.claude\skills\sldprt-to-parasolid\SKILL.md
    Create the .claude\skills folders if they don't exist. To use the skill in a single project only, put it in <project>\.claude\skills\ instead.
  3. Start a new Claude Code session so it picks the skill up.

Step 4: Ask Claude

Open Claude Code in (or pointed at) the folder with your files, and ask in plain words, for example:

Convert the SolidWorks parts in D:\Jobs\Grinder\SLDPRT to Parasolid and STEP.
Put the results in a new folder next to them.

Claude loads the skill, runs the scripts, and reports one line per part. It can also take a .zip or .7z archive of parts (7-Zip needs to be installed for .7z). You get:

Claude also tells you about anything odd: parts with several bodies, surface bodies, or parts with no solid at all (a sketch-only part, for example).

Or run it yourself

Claude isn't strictly needed once the skill is installed. The same work in one command:

python -I "%USERPROFILE%\.claude\skills\sldprt-to-parasolid\scripts\run_all.py" "D:\Jobs\Grinder\SLDPRT" "D:\Jobs\Grinder\Converted" --step

Leave off --step if you only want the Parasolid files. Claude is still handy for checking results, explaining failures, or dealing with files that need a special case.

What came out on a real job

I tested this on a set of 17 SolidWorks parts and 1 assembly from a meat-grinder project, saved by a recent SolidWorks version.

ResultParts
Converted to .x_t, .x_b and STEP, all checks passed16
No solid inside (sketch-only part), correctly reported1
Assembly (.SLDASM): holds no geometry of its own1

The STEP files were also loaded into FreeCAD as an independent check: all valid solids, same face counts and sizes as the originals. The Parasolid files also read cleanly with the older Parasolid kernel that ships with Mastercam 2024.

Things to know

How it works

For the curious, here is what the scripts do.

  1. Unpack the SLDPRT. A SolidWorks 2015+ part is a chain of compressed records (zlib/deflate), each with a lightly scrambled name. One of them, Contents/Config-0-Partition, holds the solid. Inside it is a second compressed block which turns out to be a complete Parasolid partition file, starting with PS ... TRANSMIT FILE (partition).
  2. Load it into the real Parasolid kernel. A partition file isn't the normal .x_t part format, and only the kernel can convert it properly. The script loads pskernel.dll from Solid Edge with Python's ctypes. It gives the kernel the small set of callbacks it needs for files and memory, receives the partition, and saves its bodies as a standard part file, both text and binary, with the standard Parasolid file header.
  3. Check it. Each output file is read back into the kernel, and the bodies and faces are counted again.
  4. STEP. The Parasolid kernel can't write STEP, so Solid Edge does it. The script starts Solid Edge hidden, opens each .x_t with a part template and saves it as .stp.

Figuring all this out (the record layout, which kernel calls to use and in what order, and a couple of option values that aren't documented publicly) was done with Claude in one sitting, testing each guess against the real kernel. The skill's SKILL.md records every detail, so the next person, or the next Claude session, doesn't have to rediscover it.

Already have Mastercam?

Mastercam installs the same Parasolid kernel (C:\Program Files\Mastercam <version>\PSKernel.dll), and the scripts use it automatically if Solid Edge isn't installed. That covers the Parasolid files. Then open the .x_t in Mastercam and save it as STEP from there. To force a particular kernel, set the PSKERNEL_DIR environment variable to the folder holding pskernel.dll.

Download

sldprt-to-parasolid-skill.zip

Contents: SKILL.md (instructions for Claude, including the technical notes) and scripts\: run_all.py (one-shot), sw2ps.py and swdump.py (unpack the SLDPRT), pk.py, convert_one.py and convert_one_hdr.py (Parasolid kernel), split_bodies.py (multi-body parts) and xt_to_step.ps1 (STEP through Solid Edge). Provided as-is, with no warranty. Read scripts before you run them, as with anything downloaded.

Questions or a file it fails on: Alvaro@AlvaroGil.com.