Stop infinite loop without killing Inventor

Stop infinite loop without killing Inventor

mat_hijs
Collaborator Collaborator
348 Views
2 Replies
Message 1 of 3

Stop infinite loop without killing Inventor

mat_hijs
Collaborator
Collaborator

Sometimes when you make a mistake in your code it ends up in an infinite loop. When an iLogic rule is running and does end up in an infinite loop, is there any way to stop this without having to kill the entire Inventor session with task manager?

Obviously the best way is to avoid infinite loops, but mistakes happen. 

0 Likes
349 Views
2 Replies
Replies (2)
Message 2 of 3

vpeuvion
Advocate
Advocate

Hi,

You can add a counter that would allow you to exit the loop after exceeding a certain value for example.

look this : Résolu : Stop an iLogic rule while it's running - Autodesk Community - Inventor

Vincent.

0 Likes
Message 3 of 3

Frederick_Law
Mentor
Mentor

Run debug in Visual Studio.

https://modthemachine.typepad.com/my_weblog/2019/12/using-visual-studio-to-debug-ilogic-rules.html

 

It works with IV2023 and VS Community 2022.

0 Likes