brepjs API Reference
    Preparing search index...

    Function importSTEP

    • Import a STEP file from a Blob.

      Writes the blob to the WASM virtual filesystem, reads it with STEPControl_Reader, and returns the resulting shape.

      Parameters

      • blob: Blob

        A Blob or File containing STEP data (.step / .stp).

      Returns Promise<Result<AnyShape>>

      A Result wrapping the imported shape, or an error if parsing fails.

      The temporary file on the WASM FS is cleaned up automatically.

      const file = new File([stepData], 'part.step');
      const shape = unwrap(await importSTEP(file));