Using a macro to create STEP/IGS files of a linked prt-file from dwg

Hello,

Our production department uses atricles (same as drawing number) to purchase items from manufacturers.

sometimes 1 article, but mostly a bulk of articles.

From these drawing numbers we need to make a 3d drawing (this is the actual solid model (sldprt) of the drawing).

This model we need to export as STEP file with the article name.

I can find several solutions of macro's to create pdf/dxf file out of the drawing file OR creating a step file out of a solid model.

But I need a macro which can find the solid model of the drawing and create a STEP file with the drawing file name.

Can anyone help me please

SolidworksApi macros