try this out.
if launched from...
Drawing: ask user if they want to open model and then save as step.
Assembly: ask user if they are sure they want to save an assy as a step.
Part: save as step in specified folder.
the Step file will be named as the filename and revision.
you can change folder location at line 101
hope it helps.