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

  • 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.
  • Python 3.10+ (already satisfied if you're running this via uv/uvx).

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.0.tar.gz (93.0 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.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for scad2step-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a120ebdb851f3f4d9c6c8b55f07869fe14e8ae4ad2d90aeebc23cc91b477cb54
MD5 c1a27c211225dd7915dbd591c8a3b975
BLAKE2b-256 59d592f9221e7bd9a8fe24468c5eda7254fcc3cc32de6e0a6c662b4077e2b64a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for scad2step-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7de4524efbb9dafee4b736ba1bcb5aec842e7862142a528c95405ab10f44e9ff
MD5 d4b16765ff876303fcaf7e0cbbd32f3e
BLAKE2b-256 fee5de05d7bcd4dcf1b736bb92e9ccc86f3f3d0cc11ca4d598f673c173dcd6f4

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.2

2 files

0.1.1

2 files

This release

0.1.0 This release

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