Convert scene to CAD


I am looking for a solution to export the scene to a CAD format to use it for 3d printing. So the resulting CAD file should be the same as I would have created it by using a CAD software.

I know that there are various exporters and I am also fine with exporting to glb, ply, … and then to step.

I noticed that there is a stl exporter too. But the geometry is not really what I am looking for. Parts I removed by using CSG are not clean for example.

Does anyone have experience with this?