Macro for importing inventor files and saving in .step

Hi, I need help to complete this macro.

I use a form to specify path of folder containing .iam and .ipt files.

I want to save them in .step, in the same folder or sub-folder.

I want to run this macro with Task Scheduler

Please see in attachment.

Seems I'm not far from a solution.

Thanks All!

DC

SolidworksApi/macros