I haven't found an answer to my problem while surfing the web, so I'm going for it:
I'm writing a macro to simplify the realization of my drawings. I'm coming to the end of writing my macro, but I still have only one last step that causes me problems: recording.
I manage to work the saved-under window with the following code:
But the thing is that this saved-under window offers me a filename that doesn't suit me. I would like to change the name of the file proposed by default according to a variable (RefMiseEnPlan) that retrieves the information located in the basemap previously entered.
I managed to retrieve the information located in the basemap and store it in RefMiseEnPlan, but I couldn't find the code to change the default name offered in the saved-under dialog when it appears .
You need to use the SaveAs3 method described here: http://help.solidworks.com/2016/english/api/sldworksapi/SolidWorks.Interop.sldworks~SolidWorks.Interop.sldworks.IModelDoc2~Save3.html
An example here: http://help.solidworks.com/2016/english/api/sldworksapi/Save_File_Example_VB.htm