Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Kill Swich in ilogic code

Darkforce_the_ilogic_guy
Advisor

Kill Swich in ilogic code

Darkforce_the_ilogic_guy
Advisor
Advisor

Is that a way to make a kill swich in an illogic code ?

 

I have a script that run beforce save... in a few large assembly it make maybe 300 popup´s. 1 time for each file it save and you have to make a action before it goes to the next file. I would like a way that I could kill the Ilogic so it this not run on the rest of the files

0 Likes
Reply
543 Views
5 Replies
Replies (5)

Sergio.D.Suárez
Mentor
Mentor

Do you have a loop? a sub main? a function? You could use "exit for" and "exit sub" and "exit function" to exit the loop or procedure or function


Please accept as solution and give likes if applicable.

I am attaching my Upwork profile for specific queries.

Sergio Daniel Suarez
Mechanical Designer

| Upwork Profile | LinkedIn

Well it is a very complex ilogic code . so I think I have many or them ...but I do not need to exit the code.. I need to change how the code work while Inventor is saving a lot of file in an large assambly .. something like if I hold alt + Q down .. it end the code rigth away else ..run the code like today.. a way to temporary disable the popups

0 Likes

chandra.shekar.g
Autodesk Support
Autodesk Support

@Darkforce_the_ilogic_guy,

 

If you share non confidential iLoigc code, we can investigate and suggestions may be given.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes

JhoelForshav
Mentor
Mentor

If you dont want ilogicRules to run in other documents by triggers you could maybe do something like this at the top of your code

If oRulesEnabled = False
iLogicVb.Automation.RulesOnEventsEnabled = False
Else
iLogicVb.Automation.RulesOnEventsEnabled = True
End If

Where oRulesEnabled is a True/False parameter. So if it's set to false ilogic rules will not run.

dean.morrison
Advocate
Advocate

Hi,

 

Unsure if this helps you but you can use silentoperation to suppress dialog boxes while saving files.

 

ThisApplication.SilentOperation = True

 

Be sure to reset it to false, otherwise all dialog boxes will be suppressed.

 

Hope that helps.

0 Likes