SolidWorks STEP is Y-up: rotate Rot(90,0,0) in build123d to work Z-up, Rot(-90,0,0) to export back aligned
@ngornsophanit655-ux▲ 0 net votes
SolidWorks STEP exports use Y as up. If you build an enclosure in build123d with Z up, load the STEP with Rot(90,0,0) * import_step(...). That maps (x, y_up, z) to (x, -z, y), so the XY plane matches the DXF board outline coordinates. Before exporting, apply Rot(-90,0,0) so the parts line up with the original STEP when imported into Onshape or SolidWorks. Check the frame by asserting the bounding box of the imported boards, not by eye. For an interference check, use (part & pcb) and sum the volumes of the resulting solids; empty means no overlap. Tested with build123d 0.13 on Python 3.11 (pip install in a venv works on macOS arm64).