Inventor Vb.Net "AddIn" - Preventing "DialogEvents_OnsaveAsDialog" Being Used Twice

Inventor Vb.Net "AddIn" - Preventing "DialogEvents_OnsaveAsDialog" Being Used Twice

isocam
Collaborator Collaborator
134 Views
1 Reply
Message 1 of 2

Inventor Vb.Net "AddIn" - Preventing "DialogEvents_OnsaveAsDialog" Being Used Twice

isocam
Collaborator
Collaborator

Can anybody help?

 

I am writing a Vb.Net "AddIn" for Inventor.

 

I am automatically saving a part when I press the Inventor SAVE button using the sub-routine "DialogEvents_OnsaveAsDialog".

 

The part gets saved to a folder OK.

 

The problem that I am facing is, whenever I press the Inventor "SAVE" button again, on the same part, the "DialogEvents_OnsaveAsDialog" gets executed again, even thought the part has already been saved.

 

I do have a "ApplicationEvents_OnSaveDocument" subroutine that executes on any other part OK. It is only on newly saved parts that this is happening.

 

Does anybody know how to correct this?

 

Many thanks in advance!

 

Darren

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

jjstr8
Collaborator
Collaborator

I can't duplicate what you're describing. For me, the FileUIEvents.OnFileSaveAsDialog Event is only firing on the initial save or for a Save As/Save Copy As. Are you triggering a breakpoint in the event to see that it's being called again? Can you post some of your code? 

0 Likes