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.2.tar.gz (93.6 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.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for scad2step-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2cc740f80480e0713acbbcb7c1dd8f2c2de69182b672acfeb846662f01cc5b9e
MD5 d1e0ddac53bab5f93521aefdf3ecd79d
BLAKE2b-256 094409361e78ad94f8cc0c4b79ca47d708efed5ad996829286f6a74a653cfe25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scad2step-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6f73752579d9dbd54bdd26d4ee344a3bd701d919fc7f421b300fa17abda0e6fe
MD5 881238373f62968d10fb59fee395143f
BLAKE2b-256 e75126bfc2376b16d8d802d09930bd5576bba0d2613ddcebe0390f68091b9e9e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

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