How do you write a custom error/warning message to the log using scripting?
benfielder
Member Posts: 4
**
in Structures
For example, if a beam probe's shear stress is too high, I want to report that to the error/warning log. Is there a way that can be done?
Tagged:
0
Best Answer
-
You can create a Warning message in the Mechanical message window by using the following command lines:
msg = Ansys.Mechanical.Application.Message('my Warning message as string...', MessageSeverityType.Warning) ExtAPI.Application.Messages.Add(msg)
Some more information can be obtained from the ANSYS Help: https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v195/act_script/mech_apis_MessageWindow.html
1
Answers
-
Any other way to access this page? Saying I don't have permission.
0