Table of Contents

Class MachiningSession

Namespace
Hi.MachiningProcs
Assembly
HiMech.dll

Represents a machining session that manages the execution and optimization of machining operations. Provides functionality for controlling the machining process, handling optimization options, and managing session state.

public class MachiningSession
Inheritance
MachiningSession
Inherited Members
Extension Methods

Properties

CurrentSourceCommand

Gets or sets the current source command being processed.

public ISourceCommand CurrentSourceCommand { get; set; }

Property Value

ISourceCommand

Data

Gets or sets the data dictionary for the player session.

public Dictionary<object, object> Data { get; set; }

Property Value

Dictionary<object, object>

NcOptOption

Gets or sets the NC optimization options for UI operations.

public NcOptOption NcOptOption { get; set; }

Property Value

NcOptOption

PacePlayee

Internal set only.

public PacePlayee PacePlayee { get; set; }

Property Value

PacePlayee

StepIndexToNcOptOptionList

Gets or sets the mapping of step indices to NC optimization options. For internal use only. Takes effect during internal optimization process.

public SortedList<int, NcOptOption> StepIndexToNcOptOptionList { get; set; }

Property Value

SortedList<int, NcOptOption>

StepTaskBundle

Gets or sets the current step task bundle.

public MachiningParallelProc.StepTaskBundle StepTaskBundle { get; set; }

Property Value

MachiningParallelProc.StepTaskBundle

Methods

BeginPreserve()

Begins a preserve section in the optimization process.

public void BeginPreserve()

EndPreserve()

Ends a preserve section in the optimization process.

public void EndPreserve()

Preserve()

Preserves one line of NC code in the optimization process.

public void Preserve()

UpdateNcOptOptionMapIfNeeded(int)

Updates the NC optimization option map if needed. Internal use only.

public bool UpdateNcOptOptionMapIfNeeded(int stepIndex)

Parameters

stepIndex int

The index of the step to update.

Returns

bool

True if the map was updated; otherwise, false.

Events

OnCurrentLineEnd

Event raised when the current line ends. The event buffer is cleared on every line change.

public event Action<CancellationToken> OnCurrentLineEnd

Event Type

Action<CancellationToken>