Skip to main content
OpenGeometry.exportStep(options) writes a STEP file. It returns a promise of { text, report }.

Save the file in a browser

The report

report counts what was written: products, solids, faces, edges, cavityShells, entities and bytes. It also gives the exchangeErrorBound and the geometricTolerance, and one entry per body in bodies. skipped lists the nodes that were not written, with a reason.

Rules

  • A wire or a sheet cannot be exported on its own. It throws InvalidOperand.
  • A selection with no solid in it throws EmptyResult.
  • Planes, cylinders, cones, spheres and tori are written as exact STEP surfaces. report.fittedCurves counts the curves that had to be fitted.
Last modified on November 10, 2026