# STEP to STL Converter API: CAD Renders, Volume & Weight (`jumblemog/step-file-converter`) Actor

Convert STEP and IGES CAD files to STL, 3MF, OBJ and GLB, render PNG views, and get exact size, volume, weight, surface area, round holes by diameter and the assembly's parts with names, colors and counts. OpenCascade kernel. Sews IGES surfaces into solids. For quoting tools and AI agents.

- **URL**: https://apify.com/jumblemog/step-file-converter.md
- **Developed by:** [Jumble Mog](https://apify.com/jumblemog) (community)
- **Categories:** Developer tools, AI, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## STEP to STL Converter API: CAD Renders, Volume & Weight

**Turn STEP and IGES CAD files into mesh files, pictures and exact measurements, from one link.** Send the file an engineer exports from SolidWorks, Fusion 360, Onshape, CATIA, NX, Creo, Inventor or FreeCAD and you get back:

- **Mesh files**: STL, 3MF and OBJ for 3D printing and slicers, and GLB (glTF) with the parts' colors and names for web viewers.
- **Pictures**: a PNG from any standard view (iso, front, back, left, right, top, bottom) and a four-view sheet with the model's size, shaded like a CAD program shows it, in the file's own colors.
- **Exact measurements** from the geometry itself, not from triangles: size in mm and inches, volume, surface area, centre of mass, and the weight in the material you pick.
- **What a quote needs**: the smallest box the part fits in, the number of faces by type (flat, cylinder, cone, freeform), and every round hole grouped by diameter and depth.
- **The assembly's parts**: each different part with its name, color, size, volume and how many times it is used.
- **Exact-geometry files**: STEP (AP203, AP214 or AP242), IGES and BREP, so IGES becomes STEP and loose IGES surfaces come back as a real solid.

![The built-in example assembly drawn by this Actor from its STEP file: an iso view of a blue bearing bracket with a steel shaft and four dark hex bolts, and the four-view sheet with iso, front, right and top views and the caption 140 × 80 × 85 mm, 331.908 cm³, 896 g in aluminum](https://api.apify.com/v2/key-value-stores/Km5b4PG3kYHdZSb1E/records/step-file-converter-example.png?signature=GeHyloQ7MfJZQLKoKXN3)

It reads the model with [OpenCascade](https://dev.opencascade.org), the open-source geometry kernel behind FreeCAD and KiCad's 3D viewer, so curves stay curves until the moment a mesh is made.

It's made for:

- Machine shops, 3D printing services and quoting tools that need a part's volume, weight, size and holes the moment a customer uploads a STEP file.
- Web shops and catalogs that need a preview picture and a GLB for a 3D viewer from each CAD file.
- Makers and engineers who get a STEP or IGES file and need an STL to print, without installing a CAD program.
- AI agents that are handed a CAD file and need to see it and know what is in it.

### How to use it

1. Add **Links to CAD files** (STEP, IGES or BREP, or a ZIP of them), or upload them. Write `example` to try the built-in assembly.
2. Pick **What to make**: pictures, mesh files, exact-geometry files. The measurements always come back.
3. Optionally pick a **material** for the weight.
4. Click **Start**. Each model is a row in the results, with its measurements and links to its pictures and files.

#### What you can send

| You send | What happens |
|---|---|
| A link to a `.step`, `.stp`, `.iges`, `.igs` or `.brep` file | One model |
| A link to a ZIP archive | Every CAD file in it is a model; other files are skipped |
| A GitHub file link, or a folder link (`https://github.com/user/repo/tree/main/cad`) | The file, or every CAD file in that folder |
| Google Drive or Dropbox share links, uploaded files | Read like any other link |
| Gzip-compressed files (`.stpZ`, `.stp.gz`) | Opened first |
| `example` | The built-in example: a bearing bracket with a shaft and four bolts |

### Examples

| Input | Result |
|---|---|
| `{"modelUrls": ["example"], "outputs": ["png", "sheet", "stl", "glb"], "material": "aluminum"}` | `example-bracket: an assembly of 6 parts (3 different), 140 × 80 × 85 mm, 331.908 cm³, 896 g in aluminum. 68 faces (52 flat, 16 cylinders); 5 round holes (4 × ⌀9 mm, 1 × ⌀30 mm).` with an iso picture, the four-view sheet, an STL of 1,936 triangles and a GLB |
| `{"modelUrls": ["https://example.com/housing.step"], "outputs": ["stl"], "quality": "fine"}` | A binary STL in millimetres with smooth curves, and the measurements |
| `{"modelUrls": ["https://example.com/old-part.igs"], "outputs": ["step", "png"]}` | The IGES file as STEP, with its surfaces sewn into a solid where they close, and a picture |

### How-to examples

Each recipe is an input you can paste into the Actor's JSON input, with what comes back.

#### How to convert a STEP file to STL

```json
{"modelUrls": ["https://example.com/bracket.step"], "outputs": ["stl"]}
```

`stlUrl` links to a binary STL in millimetres, Z up, as the CAD file has it. `meshWatertight` says whether every solid's mesh is closed, which a slicer needs; for a solid STEP model it is. `meshTriangles` is the triangle count: the built-in example comes to 1,936 triangles at the normal fineness. Set `"quality": "fine"` for smoother curves (triangles within about 0.03% of the part's size) or `"draft"` for a small file. Add `"3mf"` to get one object per part, which slicers show as separate parts.

#### How to get the volume and weight of a STEP file

```json
{"modelUrls": ["example"], "outputs": ["png"], "material": "steel"}
```

The example comes back with `volumeCm3: 331.9084`, `surfaceAreaCm2: 564.693`, `sizeMm: [140, 80, 85]`, `smallestBoxMm: [140, 85, 80]`, `weightG: 2605.481` (2.61 kg in steel at 7.85 g/cm³) and `centerOfMassMm: [60, 40, 32.635]`. The volume is integrated over the exact surfaces, so a sphere of 25 mm radius gives 65.4498 cm³ whatever the mesh fineness. For a material that isn't in the list, send its density: `"density": "1.31"`.

#### How to convert IGES to STEP

```json
{"modelUrls": ["https://raw.githubusercontent.com/Open-Cascade-SAS/OCCT/master/data/iges/hammer.iges"], "outputs": ["step", "png"]}
```

IGES files usually store a part as loose surfaces. The Actor sews them together, and where they close it makes a solid: this sample hammer's 45 freeform surfaces come back as 1 solid with a volume and a closed mesh, `sewn` is true, and a note says so. `stepUrl` links to the STEP file, which holds the solid. Pick the version with `"stepSchema"`: AP214 (the default, read by nearly everything), AP203 or AP242.

#### How to render a STEP file to a PNG image

```json
{"modelUrls": ["example"], "outputs": ["png", "sheet"], "views": ["iso", "front", "top"], "imageWidth": 2000}
```

`imageUrls` has one PNG per view (`iso`, `front`, `top`), and `sheetUrl` the four-view sheet with the size, volume and weight written under it. Iso views are in perspective with a soft shadow; the others are flat, like a technical drawing. Parts are drawn in the colors stored in the file; set `"modelColors": false` and a `"color"` to draw everything in one color, or `"background": "transparent"` for a cut-out picture.

#### How to list the parts of a STEP assembly

```json
{"modelUrls": ["example"], "outputs": ["png"]}
```

`parts` lists each different part once, with how often it is used:

| name | count | sizeMm | volumeCm3 | color |
|---|---|---|---|---|
| bracket | 1 | 120 × 85 × 80 | 227.4373 | #346ca8 |
| shaft | 1 | 140 × 30 × 30 | 98.9602 | #c4c9d0 |
| bolt-m8 | 4 | 17.3 × 15 × 12.99 | 1.3777 | #2c3038 |

`partCount` is 3 and `instanceCount` 6. Copies of a part are found by how the file stores them, so a part saved twice as two separate bodies counts as two parts.

#### How to count the holes in a part

```json
{"modelUrls": ["example"], "outputs": ["png"]}
```

`holes` groups the round holes by diameter and depth: for the example, `[{"diameterMm": 9, "depthMm": 12, "count": 4}, {"diameterMm": 30, "depthMm": 30, "count": 1}]`, with `holeCount: 5` and `holeDirections: 2` (the mounting holes point up, the bore sideways), a hint at how many setups drilling takes. A hole is a cylinder that faces inward and goes all the way around; fillets and slots' round ends aren't counted. The depth is the length of the cylindrical wall, so a counterbored hole shows up as two entries.

#### How to let an AI agent read a CAD file

Add this Actor to the [Apify MCP server](https://mcp.apify.com) with `https://mcp.apify.com/?tools=jumblemog/step-file-converter`. The agent passes the link to a STEP or IGES file and reads `summary`, `sizeMm`, `volumeCm3`, `weightG`, `holes` and `parts`, and can open `sheetUrl` to see the model from four sides, instead of parsing STEP text itself.

### FAQ

#### What units are the results in?

Millimetres, cm² and cm³, with the size and volume also in inches, and the weight in grams and pounds. A file stored in inches or metres is converted when it is read; `fileUnit` says what the file used. Mesh files are in millimetres, except GLB, which is in metres with Y up, as the glTF standard asks.

#### How exact are the volume and weight?

The volume, area, size and centre of mass come from the exact surfaces in the file (planes, cylinders, NURBS), not from the triangle mesh, so they don't change with the mesh fineness. The weight is the volume times one density for the whole model.

#### Can it read SolidWorks, Fusion 360 or Inventor files directly?

No. It reads the neutral formats those programs export: STEP, IGES and BREP. Native files (`.sldprt`, `.f3d`, `.ipt`, `.prt`, `.CATPart`), Parasolid (`.x_t`), ACIS (`.sat`), DWG and DXF aren't read. Every CAD program can save STEP.

#### Can it convert STL to STEP?

No. An STL is only triangles, and this Actor goes from exact geometry to triangles, not back. For pictures and measurements of STL, 3MF, OBJ or GLB files use the [3D Model Renderer](https://apify.com/jumblemog/3d-model-renderer).

#### Why does my IGES file have no volume?

Its surfaces don't close: there is a gap or a missing face, so there is no inside to measure. The result's notes say so. The pictures and mesh files are still made, and `meshWatertight` is false.

#### Are colors and part names kept?

Yes, in the pictures, the GLB and the STEP output, and in the `parts` list. STL has no colors or names; 3MF and OBJ keep the parts apart, with their names.

#### What happens to my files?

Each file is read inside your own run and the results are saved in that run's storage, which only you can open and which expires with your Apify plan's retention. Nothing is sent anywhere else.

### Input

| Field | What it does |
|---|---|
| `modelUrls` | Links to STEP, IGES or BREP files, or ZIP archives of them. `example` for the built-in model |
| `uploads` | Files uploaded in the Apify Console |
| `outputs` | Any of `png`, `sheet`, `stl`, `3mf`, `obj`, `glb`, `step`, `iges`, `brep`. Default `png` and `stl` |
| `material` | For the weight: `steel`, `stainless-steel`, `aluminum`, `titanium`, `brass`, `copper`, `bronze`, `cast-iron`, `magnesium`, `zinc`, `abs`, `pla`, `petg`, `nylon`, `polycarbonate`, `pom`, `peek`, `polypropylene`, `hdpe`, `acrylic`, `pvc`, `resin`, `oak`, `pine`, `plywood`, `mdf`, or `none` |
| `density` | A density in g/cm³ instead of a material |
| `views` | Views for the PNG pictures: `iso`, `iso-back`, `front`, `back`, `left`, `right`, `top`, `bottom`. Default `iso` |
| `imageWidth` | Picture size in pixels, 200 to 4096. Default 1600 |
| `modelColors`, `color` | Use the file's colors (default), and the color for parts without one |
| `background` | A hex color or `transparent` |
| `edges`, `shadow` | Draw the model's edges and a soft shadow (both on by default) |
| `quality` | Mesh fineness: `draft`, `normal` or `fine` |
| `stepSchema` | `AP214` (default), `AP203` or `AP242`, for the STEP output |
| `maxModels`, `timeoutSecs` | Limits: models per run (default 100) and seconds per model (default 300) |

### Output

One dataset item per model:

| Field | What it holds |
|---|---|
| `status`, `error` | `ok`, or `failed` with the reason |
| `summary` | The model in a sentence or two |
| `format`, `schema`, `writtenBy`, `fileUnit` | STEP, IGES or BREP; the STEP version; the CAD program that wrote the file; the file's length unit |
| `sizeMm`, `sizeIn`, `boundsMm` | Extent along X, Y and Z, and the bounding box's corners |
| `smallestBoxMm` | The smallest box found that holds the model at any angle, longest side first: the stock or packing size |
| `volumeCm3`, `volumeIn3`, `surfaceAreaCm2`, `centerOfMassMm` | Exact, from the geometry |
| `material`, `densityGCm3`, `weightG`, `weightLb` | The weight, when a material or density is given |
| `isAssembly`, `partCount`, `instanceCount`, `parts` | The different parts with name, count, size, volume and color |
| `solids`, `shells`, `faces`, `edges`, `vertices`, `faceTypes` | What the model is made of; faces counted as plane, cylinder, cone, sphere, torus, revolved, extruded, freeform |
| `holeCount`, `holeDirections`, `holes` | Round holes by diameter and depth |
| `valid`, `sewn`, `hasColors`, `notes` | The geometry check, whether surfaces were sewn, and things worth knowing |
| `meshTriangles`, `meshWatertight` | The mesh's triangle count and whether every solid's mesh is closed |
| `imageUrl`, `imageUrls`, `sheetUrl` | Links to the pictures |
| `stlUrl`, `threeMfUrl`, `objUrl`, `glbUrl`, `stepUrl`, `igesUrl`, `brepUrl` | Links to the converted files |

The files are in the run's key-value store, named like `001-bracket.stl` and `001-bracket-iso.png`. The first picture (or first file) is also saved as `OUTPUT`.

### How it works

1. **Reading**: OpenCascade reads the file into exact geometry with its assembly tree, part names and colors. Items made only of curves or points (axes, sketches) are left out. Parts stored as loose surfaces are sewn, and closed ones become solids.
2. **Measuring**: volume, area and centre of mass are integrated over the exact surfaces, once per different part. The size is exact too: the faces that reach the model's outer limits are measured on their true surfaces. Holes are found as inward cylinders that go all the way around their axis.
3. **Meshing**: each part is turned into triangles within the chosen distance of its surfaces. Each solid is welded into a closed mesh on its own.
4. **Drawing**: the mesh is shaded with the surfaces' own normals, so curved faces are smooth and real edges stay crisp, and the model's edges are drawn on top.

### Pricing

You pay one low price per model, at the price shown on this page, whatever pictures and files you pick. Models that can't be read are never charged. If you set a maximum cost per run, the Actor stops before a model that wouldn't fit.

### Speed

A single part or small assembly takes 3 to 5 seconds. A casting with a thousand faces takes about 10 seconds at normal fineness and 15 at fine. A run through the API adds a few seconds for the cloud container to start.

### Tips and limits

- **Memory**: the default 2 GB handles models up to a few thousand faces. Give large assemblies 4 to 8 GB.
- **IGES assemblies**: IGES has no solids, so parts that touch each other can end up joined when their surfaces are sewn, which changes the volume. Use STEP when you can.
- **Threads** modelled as real helical surfaces are read as freeform faces, and aren't counted as holes.
- **The geometry check** (`valid`) is OpenCascade's strict one. Files exported from other CAD programs often fail it over small gaps and still measure and mesh fine.
- **Not read**: dimensions and tolerances stored in the file (PMI), materials, and anything that isn't geometry.
- **Limits**: 200 MB per download, 400 MB unpacked per ZIP, 6 million triangles per model.

### For AI agents and developers

This Actor works with the [Apify MCP server](https://mcp.apify.com), so AI agents can call it as a tool. Pass `modelUrls` and read `summary`, `sizeMm`, `volumeCm3`, `weightG`, `holes`, `parts` and the links. A direct API call that waits for the answer:

```bash
curl -X POST "https://api.apify.com/v2/acts/jumblemog~step-file-converter/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"modelUrls": ["https://example.com/bracket.step"], "outputs": ["stl", "png"], "material": "aluminum"}'
```

`run-sync` instead returns the run's `OUTPUT`: the first picture as a PNG, or the first file when no picture is asked for.

In Python, with the `apify-client` package:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("jumblemog/step-file-converter").call(run_input={
    "modelUrls": ["https://example.com/bracket.step"], "outputs": ["stl", "glb", "sheet"], "material": "steel",
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["summary"], item["weightG"], item["stlUrl"], item["sheetUrl"])
```

### Credits

- Geometry kernel: [Open CASCADE Technology](https://dev.opencascade.org) (LGPL-2.1 with exception) through the [OCP](https://github.com/CadQuery/OCP) Python bindings (Apache-2.0).
- Drawing: [VTK](https://vtk.org) (BSD-3-Clause) through [PyVista](https://pyvista.org) (MIT), on Mesa's software renderer.
- Mesh files: [trimesh](https://trimesh.org) (MIT).
- The example model is this Actor's own design.

# Actor input Schema

## `modelUrls` (type: `array`):

Links to STEP (.step, .stp), IGES (.iges, .igs) or BREP files, or ZIP archives holding them (every CAD file in a ZIP is a model). GitHub file and folder links, Google Drive and Dropbox share links work, and so do gzip-compressed files (.stpZ, .stp.gz). Write `example` to try the built-in example assembly.

## `uploads` (type: `array`):

Upload STEP, IGES or BREP files, or ZIP archives of them, from your computer.

## `outputs` (type: `array`):

Pictures, mesh files for printing and web viewers, and exact-geometry files (pick STEP to turn IGES into STEP). The measurements always come back. The price per model is the same whatever you pick.

## `material` (type: `string`):

The weight is the model's volume times this material's density (g/cm³, in brackets). For another material, give its density below.

## `density` (type: `string`):

A density in g/cm³, such as 7.85 for steel or 1.24 for PLA. Overrides the material.

## `views` (type: `array`):

One PNG per view. Iso views are in perspective with a soft shadow; the others are flat, like a technical drawing. Z is up and the front faces -Y.

## `imageWidth` (type: `integer`):

Width and height of each square picture, and the width of the four-view sheet.

## `modelColors` (type: `boolean`):

Draw parts and faces in the colors stored in the CAD file. Turn off to draw everything in one color.

## `color` (type: `string`):

A hex color such as #9fb4c7, used where the file gives no color (or everywhere, with the file's colors turned off).

## `background` (type: `string`):

A hex color such as #ffffff, or `transparent` for PNGs with a see-through background (drawn without the shadow).

## `edges` (type: `boolean`):

Draw the model's real edges as thin dark lines, as CAD programs do. Edges where two faces flow into each other smoothly are left out.

## `shadow` (type: `boolean`):

A soft shadow under the model in the iso views.

## `quality` (type: `string`):

How closely the triangles follow curved surfaces: within about 0.3%, 0.1% or 0.03% of each part's size. The measurements don't depend on it; they come from the exact geometry.

## `stepSchema` (type: `string`):

Only for the STEP output.

## `maxModels` (type: `integer`):

Stop after this many models.

## `timeoutSecs` (type: `integer`):

A model that takes longer to read and convert is reported as failed and not charged.

## Actor input object example

```json
{
  "modelUrls": [
    "example"
  ],
  "outputs": [
    "png",
    "stl"
  ],
  "material": "none",
  "views": [
    "iso"
  ],
  "imageWidth": 1600,
  "modelColors": true,
  "color": "#9fb4c7",
  "background": "#ffffff",
  "edges": true,
  "shadow": true,
  "quality": "normal",
  "stepSchema": "AP214",
  "maxModels": 100,
  "timeoutSecs": 300
}
```

# Actor output Schema

## `results` (type: `string`):

One item per model: size, volume, weight, holes, parts and links to the pictures and files.

## `files` (type: `string`):

The PNG pictures and the converted STL, 3MF, OBJ, GLB, STEP, IGES and BREP files in the run's key-value store.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "modelUrls": [
        "example"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jumblemog/step-file-converter").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "modelUrls": ["example"] }

# Run the Actor and wait for it to finish
run = client.actor("jumblemog/step-file-converter").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "modelUrls": [
    "example"
  ]
}' |
apify call jumblemog/step-file-converter --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jumblemog/step-file-converter"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/mzC1bL64K1SeGts83/builds/7V7sPU5unkcPodr7i/openapi.json
