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.
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.
pskernel.dll) that does the conversion, and it writes the STEP files.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.
C:\Program Files\Siemens\Solid Edge <version>.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.
A skill is a folder that teaches Claude how to do a specific job. Claude reads it automatically when your request matches.
sldprt-to-parasolid-skill.zip. You get a folder called sldprt-to-parasolid with a SKILL.md and a scripts 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.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:
part.x_t (Parasolid text) and part.x_b (Parasolid binary) for every part that has a solid in it. Each file is read back by the kernel and checked against the original for the same number of bodies and faces.STEP\part.stp (AP214, millimetres) written by Solid Edge running in the background.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).
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.
I tested this on a set of 17 SolidWorks parts and 1 assembly from a meat-grinder project, saved by a recent SolidWorks version.
| Result | Parts |
|---|---|
| Converted to .x_t, .x_b and STEP, all checks passed | 16 |
| No solid inside (sketch-only part), correctly reported | 1 |
| Assembly (.SLDASM): holds no geometry of its own | 1 |
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.
--step, the script also writes each body on its own into STEP\part_bodies\. The .x_t/.x_b files always keep the bodies separate..x_t in Solid Edge and use Save As → STEP by hand.For the curious, here is what the scripts do.
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)..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..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.
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.
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.