Skip to main content

scad2step

Convert an OpenSCAD file to a STEP file, from the command line. No Python knowledge required.

uvx scad2step yourfile.scad -o out.step

STEP is the standard interchange format nearly every CAD program (Fusion 360, SolidWorks, FreeCAD) reads as a real solid body with exact curves — unlike OpenSCAD's own STL export, which is always a mesh of flat triangles. scad2step gets this by handing your file to the real OpenSCAD program (so every language feature and library works exactly as it always has) and rebuilding the result on build123d's OpenCASCADE kernel instead of a mesh — see scad123d, which does the actual conversion work, for the details and the Python API.

Requirements

  • uv — a package manager for Python programs. It's what runs the uvx scad2step ... command below, and installing it gets you everything else scad2step needs to run (including Python itself) automatically — no separate Python setup required.
  • The OpenSCAD program installed. scad2step looks for it on your $PATH and in the usual install locations automatically; if it's somewhere else, set $SCAD123D_OPENSCAD to point at it directly.

Usage

uvx scad2step yourfile.scad -o out.step

Leave out -o and the output defaults to the input filename with a .step extension:

uvx scad2step yourfile.scad   # writes yourfile.step

Pass variable overrides the same way OpenSCAD's own -D flag does, if your file has top-level variables you want to set from the command line (a -D name=value for each one):

uvx scad2step yourfile.scad -o out.step -D width=40 -D holes=6

Run uvx scad2step --help for the rest of the options (mesh fallback behavior, timeout, etc.) — the defaults are right for almost everyone.

Installing it permanently

uvx runs scad2step without installing anything persistent. If you'd rather have the command always available:

uv tool install scad2step

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scad2step-0.1.1.tar.gz (93.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scad2step-0.1.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file scad2step-0.1.1.tar.gz.

File metadata

  • Download URL: scad2step-0.1.1.tar.gz
  • Upload date:
  • Size: 93.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.19

File hashes

Hashes for scad2step-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8a5ef352f7ea77e658e92c3b05dbce48aa07026d0fcba5e870f549be9856beea
MD5 d36ccae7c1d5d1500261825c87535c88
BLAKE2b-256 75a30f1a678bdcededb32000e45231f4079e5c15472f587c6da83522a2a651f9

See more details on using hashes here.

File details

Details for the file scad2step-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: scad2step-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.19

File hashes

Hashes for scad2step-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4fdc65cc77f1daadbe06e8104ddac946895aee19017ecb300301761870939fea
MD5 19795ae19b80974a677be77de01d572b
BLAKE2b-256 ba285d9ef3ddc03971ff6f25aa76909314765d14dfc73b3fa4e0ffbadba3cf7f

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.2

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page