Table of Contents

Interface IStepPropertyAccessHost

Namespace
Hi.MachiningSteps
Assembly
HiMech.dll

Narrow host contract for accessing the step-variable registry and registering new step variables. Exposed as a dedicated surface so pipelines that only need step-variable wiring (e.g. CsvRowSyntax) do not have to depend on the broader IMachiningService.

public interface IStepPropertyAccessHost
Extension Methods

Properties

StepPropertyAccessDictionary

Dictionary of step-property accessors keyed by property name. Used by CSV title-row processing to decide whether a column already maps to a reserved step property; new columns are registered via RegisterStepVariable(string, string, string, string, Func<MachiningStep, object>).

ConcurrentDictionary<string, PropertyAccess<MachiningStep>> StepPropertyAccessDictionary { get; }

Property Value

ConcurrentDictionary<string, PropertyAccess<MachiningStep>>

Methods

RegisterStepVariable(string, string, string, string, Func<MachiningStep, object>)

Registers a step variable so downstream components (strip charts, CSV exports, scripting) can read it from MachiningStep. Idempotent on key.

void RegisterStepVariable(string key, string name, string unit, string formatString, Func<MachiningStep, object> variableFunc = null)

Parameters

key string

Unique key.

name string

Human-readable name; may equal key.

unit string

Physical unit name (PhysicsUnit); nullable.

formatString string

Display format string; nullable.

variableFunc Func<MachiningStep, object>

Optional value extractor; nullable when the value comes from the step's flex dictionary.