Macro for inserting and mating a new part in an assembly

I know there must be one out there but I can't find it!

Does anyone know where I can get a macro that when run inside anassembly creates a new part, asks for file name and save locationthen inserts that part into the active assembly setting it to fixedor mated?

I've tried recording a macro but of course I don't know how to getit to ask for user input a the save stage.

Thanks for your help. Very much appreciated.SolidworksApi macros