Messages#

class ansys.mechanical.stubs.v241.Ansys.Mechanical.Application.Messages#

Bases: object

Defines the collection of Mechanical’s messages.

Overview#

Add

Add a new message.

Remove

Remove a specific message in the list.

Clear

Clear the list of the messages.

Contains

Check if a message is in the current list of messages.

ShowErrors

Shows errors with current project.

Count

Get the number of messages.

Property detail#

property Messages.Count: System.Int32 | None

Get the number of messages.

Method detail#

Messages.Add(item: Ansys.Mechanical.Application.Message) System.Void

Add a new message.

Messages.Remove(item: Ansys.Mechanical.Application.Message) System.Boolean

Remove a specific message in the list.

Messages.Clear() System.Void

Clear the list of the messages.

Messages.Contains(item: Ansys.Mechanical.Application.Message) System.Boolean

Check if a message is in the current list of messages.

Messages.ShowErrors() System.Void

Shows errors with current project.