Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OnFileOpen kEventHandled not working

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
KentKeller
315 Views, 2 Replies

OnFileOpen kEventHandled not working

I did a search and found the previous thread on C# with the same issue.  This is in VB.net.  I have tried changing copy local to false on the inventor interop, and I have tried changing the project back to Net Framework 3.5 but neither has fixed the problem. 

 

When I step through the code it is firing the event and I am setting the handling code to handled, but I still always get the dialog. 

 

Anyone have any other ideas?

Kent Keller
KWiKMcad

2 REPLIES 2
Message 2 of 3
santoshr0114
in reply to: KentKeller

Hi,

When you set the event as handled, do you also handle "getting the filename. and also set the FileName argument".
Regards
Santosh
Message 3 of 3
KentKeller
in reply to: santoshr0114

Thank you, that appears to have been the problem. I am not really sure I understand why the filename needs to be provided when we are setting it to handled.  OnFileNewDialog doesn't require any other arguments. 

Kent Keller
KWiKMcad

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report