File Save Notify

Hi,

Do you have a way to create a delay when you close your SW file.
My macro look like :

Private Function swDraw_FileSaveNotify(ByVal filename As String) AsLong

Dim answer As Integer
Dim NewAnswer As String


answer = MsgBox("This will save a PDF are you sure ?", vbYesNo,"USNR")

If answer = 6 Then

Call test(NewAnswer)

End If

The problem is that my drawing is close before the save PDF run....

Could you help me please!!!

End FunctionSolidworksApi macros