Hello everyone!
I have a complex rule that fires a lot of external rules when the multisheet drawing is done.
At the end, a message box is shown saying the rule as finished as well as the elapsed time.
Sometimes a few errors may occur during an external rule, but the Master Rule will continue the rest.
I would like to get a "live feed" of whats going on.
Example:
Is it even possible to have a live feed like this, running alongside the rule?
João Silva
Mechanical Engineer
If what I said solved your problem, or answered your question, please use the ACCEPT AS SOLUTION or KUDOS buttons.
Or if it helped you, please hit "LIKE"
Inventor Professional 2023.3, Build 359
What version of Inventor do you have? If you have Inventor 2019 or newer you can use the new iLogic "Logger" that's built specifically for this purpose. See here for usage instructions: Inventor 2019 Help: To Create Log Statements.
I have Inventor always up to date (2021).
I'll give it a go and i'll either post here the result, or ask for more help.
Thanks!
João Silva
Mechanical Engineer
If what I said solved your problem, or answered your question, please use the ACCEPT AS SOLUTION or KUDOS buttons.
Or if it helped you, please hit "LIKE"
Inventor Professional 2023.3, Build 359
I'm having trouble using the new "logger" function.
I can't seem to log anything. I've set the logging to info, enabled iLogic Log and even placed the "Logger.log level("message")" (wich gives an error).
From what I understand, this log will not be a pop up window like a message box. And if I don't have 'iLogic Log' enabled, I won't even see anything.
I'm implementing this at work, and we have a few people that don't know to work with this kind of stuff.
It would be a lot easier if it could be a msgbox.
Is it possible?
João Silva
Mechanical Engineer
If what I said solved your problem, or answered your question, please use the ACCEPT AS SOLUTION or KUDOS buttons.
Or if it helped you, please hit "LIKE"
Inventor Professional 2023.3, Build 359
Hi @JoãoASilva
By the very nature of a message box, it will pause the executing code to await a user input, so essentially no you cannot use this method to have a live feed unless you want your users to continually click 'OK'.
Use 'Logger.Debug("My message")' to feedback your progress. Launch the iLogic log window in your main rule like this:
oInternalName = "ilogic.logwindow" For Each oDockableWindow As Inventor.DockableWindow In ThisApplication.UserInterfaceManager.DockableWindows If oDockableWindow.InternalName = oInternalName Then If Not oDockableWindow.Visible = True Then oDockableWindow.Visible = True End If End If Next
I found this from another post by @DRoam, here: Open iLogic Browser
What about a progress bar?
https://forums.autodesk.com/t5/inventor-forum/ilogic-progress-bar/td-p/8691879
Hi @lmc.engineering !
Thanks for the code!
I even placed an altered version at the end to close the iLogic Log window.
That works well, but I need to clean the previous run from the logger.
Do you know how to do it?
A progression bar is cool, but it would be a pain to figure out the number os steps so that it doesn't go past 100%.
This because I have multiple rules that run depending on the type of file and our internal coding.
It's a shame that we don't have that much information regarding the logger on that link...
João Silva
Mechanical Engineer
If what I said solved your problem, or answered your question, please use the ACCEPT AS SOLUTION or KUDOS buttons.
Or if it helped you, please hit "LIKE"
Inventor Professional 2023.3, Build 359
Can't find what you're looking for? Ask the community or share your knowledge.