Please give a solution to automatically close the inventor pop up without human interaction

Please give a solution to automatically close the inventor pop up without human interaction

ashraf.siddiqueeAF8S7
Explorer Explorer
300 Views
3 Replies
Message 1 of 4

Please give a solution to automatically close the inventor pop up without human interaction

ashraf.siddiqueeAF8S7
Explorer
Explorer

I have developed a tool which fetch Inventor file from Teamcenter & keep my TcAx folder & then open in Inventor App. For some files, there is showing a pop up if files already existsing in my TCAx folder like below image. I want to automatic close the pop up without human interaction.

 

ashrafsiddiqueeAF8S7_0-1704452817767.png

 

0 Likes
301 Views
3 Replies
Replies (3)
Message 2 of 4

A.Acheson
Mentor
Mentor

Please provide code details of commands used to generate the dialogue and also you will need to post this to the programming forum. Either wait for the post to be moved or mark this as solved and recreate in the other forum.

 

https://forums.autodesk.com/t5/inventor-programming-ilogic/bd-p/120

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 3 of 4

ashraf.siddiqueeAF8S7
Explorer
Explorer

Actually I was searching for some sample windows powershell code or batch scripting to close or override the existing file when pop up shows in screen. Can you share this types of samle code? 
Is there any flag / options available in Inventor API to automate override the files? 

0 Likes
Message 4 of 4

WCrihfield
Mentor
Mentor

Hi @ashraf.siddiqueeAF8S7.  I am not familiar with Teamcenter or TCAx, so I am not sure what you mean by 'tool' when you say that you have developed a tool to fetch a file from there.  Can you explain what you mean there?  Are you talking about an iLogic rule, a VBA macro, an Inventor add-in (ApplicationAddIn), a standalone EXE application, or maybe something within some other software?  We need to understand that part before we can suggest the best solution.  If your code is iLogic or Inventor API related, then there are a few settings we could suggest, but which to suggest depends on which you are using.  Within the Inventor API, under its Application object, there is a property called SilentOperation, which you could set to True, before doing something that would normally cause a dialog to be displayed, and that setting will often block that dialog from popping-up.  However, it can be tricky to use in code, because it must be set back to False, no matter what the outcome of your code, even if it crashes, otherwise Inventor may not work right afterwards.  If using an iLogic rule, the rule itself has a setting like this that can be turned on, without it effecting the whole application...just that one iLogic rule.  Once the dialog is showing, it can be very complicated to interact with a dialog from something like an iLogic rule.  It also depends on if the dialog is Modal or not.  If one way, then it commands top most system focus, and your code will be paused while it is open.  If the other way, then your code will continue to run while it is open.  It may also depend on if the dialog is under the control of the Inventor application, or some other application.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes