Hi,
Is there a way to somehow catch iLogic exceptions/errors via API, for example in an addin or application?
For example, if wrong input is provided in a model, an iLogic rule can give an exception which isn't caught in the iLogic rule.
I know that the rule ofcourse should be programmed correctly, so that errors will be caught there, but sometimes I want iLogic to give me the exceptions and I want to be able to catch them.
My situation: I have an external program, which launches Inventor and does some actions.
In some cases, an iLogic rule in the model can give an exception, which causes my program to 'freeze'.
I want to know if it's possible to catch these exceptions and continue and be able to return the error message to the program.
For example via events if there are any in the iLogic automation.
Thanks in advance.
Solved! Go to Solution.
Solved by AlexKorzun. Go to Solution.
You may explore the iLogic's automation. It has a property .RuleExceptionsLog documented at:
http://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=88f75594-dc20-e503-f909-e527fd712a36
Thanks for the fast response, I was already browsing through this documentation.
I was about to do some tests, with silentoperation in combination with the exceptionslog.
I managed to reach my goal by using SilentOperation of the iLogic Automation to prevent the error window from popping up.
Afterwards I was able to view all the occurred exceptions via the ExceptionsLog.
Can't find what you're looking for? Ask the community or share your knowledge.