# CAD Manufacturability Check (DFM) for STL & STEP (`alecrm98/cad-manufacturability-check-dfm-for-stl-step`) Actor

Check STL and STEP parts for CNC machining, injection molding, sheet metal and 3D printing problems: thin walls, sharp inside corners, small or deep holes, missing draft, undercuts. Pass/review/fail with measured values, plus size, volume and stock.

- **URL**: https://apify.com/alecrm98/cad-manufacturability-check-dfm-for-stl-step.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 $50.00 / 1,000 part checkeds

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

## CAD Manufacturability Check (DFM) for STL & STEP

Find the problems that get a part rejected or re-quoted **before** you send it to a machine shop, molder or print farm. Give this Actor links to your CAD files and it checks each one against real manufacturing limits for **3-axis CNC machining, injection molding, sheet metal and FDM 3D printing**.

Every check comes back as **pass / review / fail**, with the measured value, the limit it was compared to, and where on the part the problem is.

### What it checks

| Process | Rules |
|---|---|
| CNC machining (3-axis) | minimum wall, sharp inside corners (end-mill radius), tool access in up to 3 setups, deep pockets, smallest hole, hole depth vs diameter, hole-to-edge web, thin features and narrow gaps |
| Injection molding | min and max wall, wall uniformity, draft angle, undercuts, rib thickness and height, boss walls, inside radii, smallest hole, core-pin aspect, hole-to-edge web |
| Sheet metal | single thickness, inner bend radius, flange length, hole-to-bend and hole-to-edge distance, smallest hole |
| FDM 3D printing | minimum wall, overhangs (best of 6 orientations), bridges, smallest hole, thin features, fits the printer, hole-to-edge web |

Plus **quote basics** for every part: bounding box, volume, surface area, CNC stock size and how much material gets machined away, and part weight / filament weight for a chosen material.

### Who it's for

- **Quoting and instant-quote tools**: screen uploads automatically and flag parts that need a human.
- **Print farms and job shops**: triage incoming files in bulk instead of opening each one.
- **Hardware teams**: run a manufacturability pass on every part in a release.
- **AI CAD agents and automations** (n8n, Make, Zapier, MCP): a manufacturability tool your agent can call after it generates a part.

### Input

- **File links**: direct download links to `.stl`, `.step`/`.stp`, `.iges`/`.igs`, `.obj`, `.3mf` or `.ply`. Or upload one file.
- **Processes**: one or more of CNC, injection molding, sheet metal, FDM.
- Optional: file units (mm, cm, m, in), material, mold pull direction, printer build volume, infill.

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

```json
{
  "files": [{ "url": "https://example.com/bracket.step" }],
  "processes": ["cnc_3axis", "injection_molding"],
  "material": "ALUMINUM_6061"
}
```

### Output

One row per file per process:

```json
{
  "file_name": "bracket.step",
  "process": "cnc_3axis",
  "verdict": "fail",
  "fail_count": 2,
  "review_count": 1,
  "must_fix": "internal_corner_radius, hole_depth_ratio",
  "review": "min_wall_thickness",
  "quote_basics": {
    "bounding_box_mm": [80.0, 42.0, 18.0],
    "volume_cm3": 31.7,
    "surface_area_cm2": 80.3,
    "cnc_stock_mm": [86, 48, 24],
    "cnc_removal_fraction": 0.68,
    "material": "ALUMINUM_6061",
    "part_mass_g": 85.6
  },
  "findings": [
    {
      "name": "internal_corner_radius",
      "status": "fail",
      "measured": { "min_radius_mm": 0.0, "n_violations": 4 },
      "limit": { "min_internal_radius_mm": 1.0 },
      "location": [10.0, -10.0, -1.8],
      "detail": "internal corners parallel to the tool axis need a radius >= the smallest practical end-mill radius"
    }
  ]
}
```

Use the **Overview** table view for a spreadsheet-friendly export, or turn off *Include full findings* for compact rows.

### Pricing

Pay per check: **$0.05 per file per process**. Files that fail to download or load are not charged. Demo runs are free.

### How it works and limits

The checks work on the tessellated surface (STEP is meshed at 0.02 mm), using ray-cast wall thickness, cross-section slices for holes and corners, and cylinder fits for bends, so every number can be traced. Radii and diameters are estimates within a few percent. Threads and cosmetic features are not in a mesh, sheet-metal bend relief is not checked, and tolerance stacks need a person. Treat results as a screening pass, not a sign-off.

Files are processed in memory for the run and not kept after it.

# Actor input Schema

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

Direct download links to STL, STEP/STP, IGES/IGS, OBJ, 3MF or PLY files. One row per file and process is returned. Leave empty for a free demo run on a sample part.

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

Upload a single part instead of giving a link.

## `processes` (type: `array`):

Which processes to check each part against. Each file x process is one billed check.

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

Units the file was exported in. STEP files usually carry their own units and are read in mm.

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

Optional. One of PLA, PETG, ABS, ASA, NYLON, TPU, PC, PP, ALUMINUM_6061, STEEL, STAINLESS_304, BRASS.

## `pullAxis` (type: `string`):

Injection molding only. Direction the mold opens.

## `printerEnvelopeMm` (type: `array`):

FDM only. Parts bigger than this are flagged.

## `fdmInfill` (type: `number`):

Used only for the filament weight estimate (0.2 = 20%).

## `cncStockMarginMm` (type: `number`):

Extra material added to each side of the bounding box for the CNC stock size.

## `includeFindings` (type: `boolean`):

Each rule's measured value, limit and problem location. Turn off for a compact spreadsheet export.

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

Only needed when the link has no file extension (e.g. stl, step).

## `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.

## Actor input object example

```json
{
  "processes": [
    "cnc_3axis"
  ],
  "units": "mm",
  "pullAxis": "+Z",
  "printerEnvelopeMm": [
    256,
    256,
    256
  ],
  "fdmInfill": 0.2,
  "cncStockMarginMm": 3,
  "includeFindings": true,
  "maxFiles": 100,
  "maxFileSizeMb": 50,
  "concurrency": 2
}
```

# Actor output Schema

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

One row per file and process: verdict, must-fix and review rules, findings and quote basics.

# 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-manufacturability-check-dfm-for-stl-step").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-manufacturability-check-dfm-for-stl-step").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-manufacturability-check-dfm-for-stl-step --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alecrm98/cad-manufacturability-check-dfm-for-stl-step"
        }
    }
}
```

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/U1GYjM1qyxGbKagXE/builds/oANcvcWhULUUvmo0T/openapi.json
