Messages#

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

Bases: object

Defines the collection of Mechanical's messages.

Overview#

OnAddMessageFwd

OnAddMessageFwd method.

add_OnAddMessage

add_OnAddMessage method.

remove_OnAddMessage

remove_OnAddMessage method.

Add

Add a new message.

Clear

Clear the list of the messages.

Contains

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

CopyTo

CopyTo method.

CountErrorMessages

CountErrorMessages method.

CountInfoMessages

CountInfoMessages method.

CountWarningMessages

CountWarningMessages method.

Equals

Equals method.

GetEnumerator

GetEnumerator method.

GetHashCode

GetHashCode method.

GetType

GetType method.

HideErrorMessages

HideErrorMessages method.

HideInfoMessages

HideInfoMessages method.

HidePopUps

HidePopUps method.

HideWarningMessages

HideWarningMessages method.

MergeMessages

MergeMessages method.

Remove

Remove a specific message in the list.

ShowErrorMessages

ShowErrorMessages method.

ShowErrors

Shows errors with current project.

ShowInfoMessages

ShowInfoMessages method.

ShowPopUps

ShowPopUps method.

ShowWarningMessages

ShowWarningMessages method.

ToString

ToString method.

UnmergeMessages

UnmergeMessages method.

AllVisibleMessages

AllVisibleMessages property.

Count

Get the number of messages.

IsReadOnly

IsReadOnly property.

Item

Item property.

Property detail#

property Messages.AllVisibleMessages: List[Ansys.Mechanical.Application.Message] | None#

AllVisibleMessages property.

property Messages.Count: int | None#

Get the number of messages.

property Messages.IsReadOnly: bool | None#

IsReadOnly property.

property Messages.Item: Ansys.Mechanical.Application.Message | None#

Item property.

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.CopyTo(array: Ansys.Mechanical.Application.Message, arrayIndex: int) None#

CopyTo method.

Messages.CountErrorMessages() int#

CountErrorMessages method.

Messages.CountInfoMessages() int#

CountInfoMessages method.

Messages.CountWarningMessages() int#

CountWarningMessages method.

Messages.Equals(obj: Any) bool#

Equals method.

Messages.GetEnumerator() Ansys.Mechanical.Application.MessageList#

GetEnumerator method.

Messages.GetHashCode() int#

GetHashCode method.

Messages.GetType() type#

GetType method.

Messages.HideErrorMessages() None#

HideErrorMessages method.

Messages.HideInfoMessages() None#

HideInfoMessages method.

Messages.HidePopUps() None#

HidePopUps method.

Messages.HideWarningMessages() None#

HideWarningMessages method.

Messages.MergeMessages() None#

MergeMessages method.

classmethod Messages.OnAddMessageFwd(sender: Any, args: Any) None#

OnAddMessageFwd method.

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

Remove a specific message in the list.

Messages.ShowErrorMessages() None#

ShowErrorMessages method.

Messages.ShowErrors() None#

Shows errors with current project.

Messages.ShowInfoMessages() None#

ShowInfoMessages method.

Messages.ShowPopUps() None#

ShowPopUps method.

Messages.ShowWarningMessages() None#

ShowWarningMessages method.

Messages.ToString() str#

ToString method.

Messages.UnmergeMessages() None#

UnmergeMessages method.

classmethod Messages.add_OnAddMessage(value: System.EventHandler[Ansys.Mechanical.Application.Message]) None#

add_OnAddMessage method.

classmethod Messages.remove_OnAddMessage(value: System.EventHandler[Ansys.Mechanical.Application.Message]) None#

remove_OnAddMessage method.