Hi,
Is it possible to stop an infinite loop when running an iLogic rule?
Thanks,
Pascal Langlais
Solved! Go to Solution.
Solved by MjDeck. Go to Solution.
I'm sorry, it's not possible. We are planning to add that in a future version. At the present time, all you can do is use the Task Manager to kill the Inventor process.
Mike,
Can you let me know why has this not been addressesed? It has been 2 years since this thread started and that you have known about it. You have replied the same in other threads about the same subject. If you can do it in VB why then could you not do it in iLogic? Thanks in advance for your input.
Hi,
I'm also wondering why it hasen't been adressed yet? It's a VERY helpfull tool. Or has it been adressed in the 2015 release?
It looks like this is still an issue in the 2017 version. Pretty sad. Debugging is still an arduous process because there is no way to step through your code. At least you can finally save an external rule without it automatically running.
@MjDeck wrote:I'm sorry, it's not possible. We are planning to add that in a future version. At the present time, all you can do is use the Task Manager to kill the Inventor process.
Almost six years later...whatever happened?
No matter, here's a link to a "If Then Then That" blog post discussing a debugging workflow utilizing DebugView.
We're looking at it, but it's not easy. We're also looking at adding debugging capabilities.
This is ridiculous!!! No way to break a loop in an Ilogic routine! You could break a program on a DEC PDP 11-70 40 years ago with crtl+C! I just lost 2 hours work because of Autodesk being too inept to put the most basic debug tool in Ilogic.
PS never use a While loop until they fix this issue!
Do you put screws into boards with a hammer as well?
If the tool you are using doesn't give you the results you want, maybe you should look at a different tool.
In this case, the VBA does have step functionality and debugging, so it's a lot nicer of an option.
That being said, it's bad programming practice to put an infinite loop in to begin with, so if you do not know what you are doing, you should put in proper checks in your program to prevent it from happening (ie; a loop limit of x).
At least a common claw hammer has a removal tool on the other side. All developers have created infinite loops during development. That is why debug tools exist. You know nothing about the application I am working. VBA is obsolete and is not an option for this application for that and several other reasons.
How or why a bug was creating in some code or using correct programming nomenclature is not the issue here. The lack of the most rudimentary debug tools in Ilogic is the issue.
The iLogic environment wasn't designed as a fully comprehensive IDE. It was designed as a quick tool for customization, that has experienced quite a bit of scope creep over the years.
If you want debugging and don't want vba, then use visual studio as your IDE to do the programming.
Again, sometimes you are better off adapting to make do with the way things ARE instead of crying about how they AREN'T.
The Idea Station is the proper place to provide feedback regarding the program.
Regards,
Arthur Knoors
Autodesk Affiliations:
Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!
! For administrative reasons, please mark a "Solution as solved" when the issue is solved !
@MechMachineManwrote:The iLogic environment wasn't designed as a fully comprehensive IDE. It was designed as a quick tool for customization, that has experienced quite a bit of scope creep over the years.
If you want debugging and don't want vba, then use visual studio as your IDE to do the programming.
Again, sometimes you are better off adapting to make do with the way things ARE instead of crying about how they AREN'T.
The Idea Station is the proper place to provide feedback regarding the program.
1. Yes, iLogic has experience scope creep. That's because it gives the users the ability to do the coding that is lacking from the main product.
2. We can't always debug in another environment. Often the variables and functions we need to work with are specific to the CAD models we are working on and need to be accessed directly.
3. Don't tell us where we need to complain. We are looking for a solution to the problem. This may belong in the idea station, but it also belongs here because we are looking for a solution that someone else may have already found.
Can't find what you're looking for? Ask the community or share your knowledge.