iLogic: How to trigger a standalone .exe

iLogic: How to trigger a standalone .exe

Anonymous
Not applicable
2,030 Views
7 Replies
Message 1 of 8

iLogic: How to trigger a standalone .exe

Anonymous
Not applicable

Hi

I've tried searching the forums for this one, but no luck.

 

Is it possible to have an iLogic rule trigger a standalone .exe?

 

Regards

Bredo Norhall

0 Likes
Accepted solutions (1)
2,031 Views
7 Replies
Replies (7)
Message 2 of 8

jdkriek
Advisor
Advisor
Accepted solution

Yes, that's possible with the VB Shell() command.

 

Just paste this in your rule.

 

Shell("C:\TEMP\NameOf.exe")

 Don't forget that iLogic is essentially Visual Basic 😉

Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


Message 3 of 8

jletcher
Advisor
Advisor

What are you trying to run with the exe file? Are you just trying to open something?

0 Likes
Message 4 of 8

Anonymous
Not applicable

Thanks Smiley Happy

0 Likes
Message 5 of 8

jdkriek
Advisor
Advisor

You're welcome Bredo 😉

Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


0 Likes
Message 6 of 8

Anonymous
Not applicable

Hi Jonathan,

 

My "standalone.exe" gets triggered all right, but it hides behind the Inventor 2014 window. Although the Property: 'TopMost' of the form is set to True.

Do I need to add something in the rule or in the VB.net file?

 

Best Regards,

Hans Rosbergen

 

0 Likes
Message 7 of 8

Anonymous
Not applicable

At last I found this syntax:  ThisDoc.Launch(“path\file.ext”) 

Wich works for me. It got it from:

http://knowledge.autodesk.com/support/inventor-products/learn-explore/caas/CloudHelp/cloudhelp/2014/...

 

Cheers

Message 8 of 8

David-Truyens
Enthusiast
Enthusiast

@Anonymous Thanks! That's the only correct answer instead of fooling around with the topmost's and those kind of settings 🙂

0 Likes