Table of Contents

Class SyntecParameterTableProxy

Namespace
Hi.NcParsers.Dependencys.Syntec
Assembly
HiMech.dll

Get-or-create INcDependencyProxy for SyntecParameterTable: the Syntec sibling of FanucParameterTableProxy. Like Fanuc, the Syntec parameter table mixes machine config with per-case work-coordinate offsets, so the proxy carries a fixed machine-config Seed serialized into the shared runner file. On wire, the host receives a deep clone of the seed only when it has no SyntecParameterTable yet; a loaded project's own full table wins. The proxy does not implement the machine-config interfaces — consumers go through GetEffectiveNcDependencyList().

public sealed class SyntecParameterTableProxy : INcDependencyProxy, INcDependency, IMakeXmlSource
Inheritance
SyntecParameterTableProxy
Implements
Inherited Members
Extension Methods

Constructors

SyntecParameterTableProxy(SyntecParameterTable)

Creates a proxy carrying seed as its machine-config seed, defaulting to Default3Axis.

public SyntecParameterTableProxy(SyntecParameterTable seed = null)

Parameters

seed SyntecParameterTable

The machine-config seed cloned into a fresh host.

Properties

Seed

The fixed machine-config seed deep-cloned into a host that has no SyntecParameterTable yet. Carried on the shared runner and serialized into the runner file — never the per-case instance, which lives on the host (see GetNcDependency()).

public SyntecParameterTable Seed { get; }

Property Value

SyntecParameterTable

XName

XML element name used to register this dependency with XFactory.

public static string XName { get; }

Property Value

string

Methods

GetNcDependency()

Takes the host's SyntecParameterTable (created during InitNcDependencyHost(INcDependencyListHost)). Returns null when no host is wired.

public INcDependency GetNcDependency()

Returns

INcDependency

InitNcDependencyHost(INcDependencyListHost)

Wires the host and materializes the host SyntecParameterTable: when the host list has none, a deep clone of Seed is installed so machine config + per-case coordinates exist and are editable before any run. GetNcDependency() is then a pure take. Idempotent — an existing host table (a loaded project's) is left untouched.

public void InitNcDependencyHost(INcDependencyListHost host)

Parameters

host INcDependencyListHost

MakeXmlSource(string, string, bool)

Serializes only the machine-config Seed — the wired host and the resolved host table are runtime-only and not persisted in the shared runner.

public XElement MakeXmlSource(string baseDirectory, string relFile, bool exhibitionOnly)

Parameters

baseDirectory string
relFile string
exhibitionOnly bool

Returns

XElement

Reg(XFactory)

Registers this type's deserializer with the given XFactory (or Default when factory is null). Rehydrates the carried Seed from the nested SyntecParameterTable element, falling back to Default3Axis when absent. Idempotent.

public static void Reg(XFactory factory = null)

Parameters

factory XFactory