Solidworks macro to save to IGES file

I'm looking for a Solidworks Macro to save a selected section from a weldment to an IGES file. Can somebody help please?

1 Answer

This still needs you to specify the file format, but I guess a little bit of ChatGPT-ing could get it to skip that part and save directly as IGES every time:
https://www.codestack.net/solidworks-api/import-export/export-bodies/