# STEP to STL/GLB Converter & CAD Thumbnail Generator (`alecrm98/cad-file-converter-thumbnails`) Actor

Convert STEP, IGES, STL, OBJ and 3MF files to STL, GLB, OBJ, 3MF or PLY in bulk, and get a clean PNG thumbnail of every part plus size, volume and surface area. No CAD software needed. $0.02 per file.

- **URL**: https://apify.com/alecrm98/cad-file-converter-thumbnails.md
- **Developed by:** [Alec Milner](https://apify.com/alecrm98) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 file converteds

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/GLB Converter & CAD Thumbnail Generator

Convert CAD files in bulk and get a clean preview image of every part, without installing CAD software.

- **Convert** STEP/STP, IGES/IGS, STL, OBJ, 3MF, PLY and GLB into **STL, GLB, OBJ, 3MF or PLY**.
- **Render PNG thumbnails** from iso, front, back, left, right, top or bottom views, with sharp edges outlined, any size from 64 to 2048 px, any part colour, white or transparent background.
- **Measure** each part: bounding box, volume, surface area, triangle count, number of bodies, and whether the mesh is watertight.

### Who it's for

- **Catalogues and stores** selling parts or 3D models that need a thumbnail and a web-ready GLB for every SKU.
- **Quoting and print-farm tools** that receive STEP but slice or price from STL.
- **Airtable, Notion and spreadsheet users** who want preview images next to CAD attachments.
- **Web apps** using three.js or `<model-viewer>`: GLB comes out in metres, ready to load.
- **Automations and AI agents** (n8n, Make, Zapier, MCP) that need CAD files in a format they can use.

### Input

```json
{
  "files": [{ "url": "https://example.com/bracket.step" }],
  "outputFormats": ["stl", "glb"],
  "views": ["iso", "top"],
  "thumbnailSize": 512,
  "transparentBackground": true
}
```

Leave the file list empty for a free demo on a sample part.

### Output

One dataset row per file. Converted files and thumbnails are saved in the run's key-value store and linked from the row:

```json
{
  "file_name": "bracket.step",
  "status": "ok",
  "bounding_box_mm": [60.0, 60.0, 6.0],
  "volume_cm3": 17.9,
  "surface_area_cm2": 92.4,
  "triangles": 2616,
  "watertight": true,
  "bodies": 1,
  "converted": { "stl": "https://api.apify.com/v2/key-value-stores/.../records/0001-bracket.stl", "glb": "..." },
  "thumbnails": { "iso": "https://api.apify.com/v2/key-value-stores/.../records/0001-bracket.iso.png", "top": "..." }
}
```

### Pricing

**$0.02 per file**, covering every output format and every view you pick. Files that fail to download or read are free, and so are demo runs.

### Notes

- STEP and IGES are tessellated at 0.05 mm by default (change *STEP mesh tolerance*). Assemblies are merged into one mesh.
- STL and OBJ files carry no units. Set *File units* if yours aren't in millimetres.
- Thumbnails come from a built-in software renderer: clean shaded previews, not photoreal renders.
- Files are processed for the run only. Outputs stay in your run's storage under your account's data retention.

# Actor input Schema

## `files` (type: `array`):

Direct download links to STEP/STP, IGES/IGS, STL, OBJ, 3MF, PLY or GLB files. Leave empty for a free demo on a sample part.

## `fileUpload` (type: `string`):

Upload a single part instead of giving a link.

## `outputFormats` (type: `array`):

Formats to write for each file.

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

One PNG per view. Leave empty for no thumbnails.

## `thumbnailSize` (type: `integer`):

Width and height of each PNG in pixels.

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

\#RRGGBB

## `backgroundColor` (type: `string`):

\#RRGGBB

## `transparentBackground` (type: `boolean`):

PNG with a transparent background instead of the background colour.

## `drawEdges` (type: `boolean`):

Draw a dark outline on sharp edges you can see, like a CAD shaded-with-edges view.

## `units` (type: `string`):

Units of mesh files (STL/OBJ have none). STEP and IGES are read in mm.

## `stepToleranceMm` (type: `number`):

Smaller = smoother curves and bigger files.

## `fileType` (type: `string`):

Only when links have no file extension (step, stl, obj...).

## `maxFiles` (type: `integer`):

Stop after this many files in one run.

## `maxFileSizeMb` (type: `number`):

Skip files bigger than this.

## `concurrency` (type: `integer`):

How many files are processed in parallel. Higher is faster but needs more memory.

## `glbInMeters` (type: `boolean`):

glTF/GLB viewers (three.js, model-viewer, AR) expect metres. Turn off to keep millimetres.

## Actor input object example

```json
{
  "outputFormats": [
    "stl",
    "glb"
  ],
  "views": [
    "iso"
  ],
  "thumbnailSize": 512,
  "color": "#7a8fa6",
  "backgroundColor": "#ffffff",
  "transparentBackground": false,
  "drawEdges": true,
  "units": "mm",
  "stepToleranceMm": 0.05,
  "maxFiles": 200,
  "maxFileSizeMb": 100,
  "concurrency": 3,
  "glbInMeters": true
}
```

# Actor output Schema

## `overview` (type: `string`):

One row per file with links to the converted files and thumbnails, plus size, volume and triangle count.

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

Every converted file and PNG thumbnail from this run.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("alecrm98/cad-file-converter-thumbnails").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("alecrm98/cad-file-converter-thumbnails").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 '{}' |
apify call alecrm98/cad-file-converter-thumbnails --silent --output-dataset

```

## MCP server setup

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

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/0EmnCaaanHkd7lEE3/builds/TDaEatFBUrQzfgY2X/openapi.json
