Message 1 of 2
Can't write to closed iLogic log window anymore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
To reproduce this bug:
Hide the iLogic log window, and restart Inventor.
This ensures that the window will be closed by default when Inventor starts.
Create this rule, and run it:
Logger.Info("test")
Show the iLogic log window for the first time. It will still be empty.
Close the log window.
Run the rule again.
Open the log window again. It worked this time, because the log window had previously been shown at least once during the current Inventor session.
This bug was not present in Inventor 2020. I am currently using 2023.
My temporary workaround is to do this at the beginning of every rule:
Dim logWindow As DockableWindow = ThisApplication.UserInterfaceManager.DockableWindows("ilogic.logwindow")
If Not logWindow.Visible Then
logWindow.Visible = True
logWindow.Visible = False
End If