- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Kill Swich in ilogic code
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
Jhoel Forshav
Download my free Inventor Addin - Hole Projector
LinkedIn | Ideas | Contributions | Blog posts | Website
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.