cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Add a method to clear the iLogic Logger (Logger.Clear)

Add a method to clear the iLogic Logger (Logger.Clear)

In the context of developing and debugging with iLogic in Autodesk Inventor, it’s common to execute rules repeatedly to test different conditions. Currently, the iLogic Logger (Logger.Info, Logger.Error, etc.) retains all messages from previous runs without offering any way to clear it via code.

Proposal
Introduce a method such as Logger.Clear() or Logger.Reset() that allows the log to be cleared at the beginning of a rule. This would help:

  • Keep the log clean and readable during frequent testing.

  • Avoid confusion between old and new messages.

  • Support professional, automated logging workflows.

This feature would enhance the experience for power users and developers, giving them better control and clarity when monitoring rule execution.

2 Comments
fridtjofZM5ME
Collaborator

It's not always desired to keep the log from the previous attempt to run an iLogic rule, and while you simply can right-click -> "Clear" in the iLogic Log window to get rid of it, it would be convenient to have a simple command for it in the API, such as "Logger.Clear" or something like that, that you can type in at the point in the rule where you want the feedback window cleaned. Alternatively I suppose this functionality could be added as an option for the particular rule as well.

Tags (2)
Yijiang.Cai
Autodesk
Status changed to: Future Consideration

Many thanks for posting the story, and tracked as [INVGEN-84876]

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea