diff --git a/pyaedt/aedt_logger.py b/pyaedt/aedt_logger.py index f1c635f56a3..a3a307eb1f8 100644 --- a/pyaedt/aedt_logger.py +++ b/pyaedt/aedt_logger.py @@ -320,7 +320,7 @@ def get_messages(self, project_name=None, design_name=None, level=0, aedt_messag """ project_name = project_name or self._project_name design_name = design_name or self._design_name - if self._log_on_desktop or aedt_messages: + if aedt_messages and self._desktop.GetVersion() > "2022.2": global_message_data = self._desktop.GetMessages("", "", level) # if a 3d component is open, GetMessages without the project name argument returns messages with # "(3D Component)" appended to project name