You can do this but you will need a little experience writing macros. You can create a CUSTOM TASK and use a macro.
I would sugggest looking at the existing framework for the CONVERT task. Under Output File Details select the ADVANCED SCRIPTING options to get a look at the VBA Code behind the function:
Thanks for your reply. I looked through the code, but I could not locate the part that takes the "Menu Command" argument in.
For instance, if the user selects "Create PDF and Step" when right clicked on a file, then this would be passed to the appropriate functions.
If you take a look at the SUB MAIN() procedure. There is a call that says:
docFilename = "<filepath>"
This essentially grabs the full filename from selected file for processing.
Remember this is just a framework to look at. Your macro will most like be much simpler and have two conversions (SAVEAS) to get what you want.
Instead of modifying the existing convert task to run twice and convert once as PDF and a second time as STP, it might be easier to create your own task by writing the appropriate macro in SOLIDWORKS, modifying it for a task and creating it as a standard task in EPDM. This option would allow a much quicker and easier way of accomplishing this rather than trying to read through hundreds of lines of code to attempt to find the ones to modify.