Class MachiningMessage
- Namespace
- Hi.MachiningProcs
- Assembly
- HiMech.dll
Represents a message in the machining process that can contain various types of data such as source commands, machining steps, exceptions, and tagged messages.
public class MachiningMessage
- Inheritance
-
MachiningMessage
- Inherited Members
- Extension Methods
Constructors
MachiningMessage(int, object)
Initializes a new instance of the MachiningMessage class.
public MachiningMessage(int index, object src)
Parameters
Properties
ClStripPos
Gets or sets the cutter location strip position. gets null if the Data is not ClStripPos.
public ClStripPos ClStripPos { get; set; }
Property Value
Data
Gets or sets the data contained in the message.
public object Data { get; set; }
Property Value
Exception
public Exception Exception { get; set; }
Property Value
Index
Gets or sets the index of the message. The UI name is 'Serial.'.
public int Index { get; set; }
Property Value
InstantSourceCommand
Gets the source command, either directly or from the associated milling step. gets null if both Hi.MachiningProcs.MachiningMessage.DirectInstantSourceCommand and the SourceCommand from ClStripPos's State are null.
public ISourceCommand InstantSourceCommand { get; }
Property Value
MachiningStep
Gets the milling step from the cutter location strip position. gets null if ClStripPos is null or its State is not a MachiningStep.
public MachiningStep MachiningStep { get; }
Property Value
Message
Gets the message text from either the multi-tag message or exception. gets null if both MultiTagMessage and Exception are null, or if MultiTagMessage.Message is null.
public string Message { get; }
Property Value
MessageOrNcText
Gets the message text or NC code text. gets null if all sources (InstantSourceCommand, MultiTagMessage, Exception, and Data) are null or cannot provide text.
public string MessageOrNcText { get; }
Property Value
MessageRoleText
Gets the message type text for UI display.
public string MessageRoleText { get; }
Property Value
MultiTagMessage
Gets or sets the multi-tag message. gets null if the Data is not MultiTagMessage.
public MultiTagMessage MultiTagMessage { get; set; }
Property Value
Methods
ToString()
Returns a string representation of the message data.
public override string ToString()
Returns
- string
A string representation of the message data.