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.

Clear

Clear the list of the messages.

Contains

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

Remove

Remove a specific message in the list.

ShowErrors

Shows errors with current project.

Count

Get the number of messages.

Property detail#

property Messages.Count: int | None#

Get the number of messages.

Method detail#

Messages.Add(item: Ansys.Mechanical.Application.Message) None#

Add a new message.

Messages.Clear() None#

Clear the list of the messages.

Messages.Contains(item: Ansys.Mechanical.Application.Message) bool#

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

Messages.Remove(item: Ansys.Mechanical.Application.Message) bool#

Remove a specific message in the list.

Messages.ShowErrors() None#

Shows errors with current project.