how do i catch the AppFileSaveCopyAsCmd event.

how do i catch the AppFileSaveCopyAsCmd event.

Anonymous
Not applicable
270 Views
1 Reply
Message 1 of 2

how do i catch the AppFileSaveCopyAsCmd event.

Anonymous
Not applicable

I need to be able to filter out if a user uses the save copy as button in inventor.

 

the application event OnSaveDocument does not help because this is fired on all save events.

 

the userinput events OnActiveCommand does not help because it does not recognize the command AppFileSaveCopyAsCmd.

 

please help.

 

Regards kent boettger

0 Likes
271 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

forget this issue,

 

found the solution.

 

Private Sub x_FileUiEvents_OnFileSaveAsDialog(ByRef FileTypes() As String, SaveCopyAs As Boolean, ParentHWND As Integer, ByRef FileName As String, Context As Inventor.NameValueMap, ByRef HandlingCode As Inventor.HandlingCodeEnum) Handles x_FileUiEvents.OnFileSaveAsDialog

If SaveCopyAs = True Then

MsgBox("SaveCopyAs was selected")

Else

MsgBox("SaveAs was selected")

End If

End Sub

0 Likes