Retrieve messages from Mechanical
Pernelle Marone-Hitz
Member, Moderator, Employee Posts: 871
✭✭✭✭
Through ACT scripting, how can I retrieve the info, warning and error messages in Mechanical ?
Tagged:
0
Best Answer
-
The following code can be used:
listMessages=ExtAPI.Application.Messages for message in listMessages: print(message.Severity, message.DisplayString)
1
Answers
-
Hi Pernelle, I want to collect id's of vertices / edges / faces / bodies for each error/ warning message for some automation task. Is it possible to do that ?
0 -
Hi @Sameer , what is collected here is just the string returned by Mechanical, which unfortunately does not show the id number of the offending geometry.
0