Table of Contents

Class MachiningChainUtil

Namespace
Hi.Mech
Assembly
HiMech.dll

Utility methods for machining chains.

public static class MachiningChainUtil
Inheritance
MachiningChainUtil
Inherited Members

Methods

GetMcCodeTransformerDictionary(IMachiningChain)

Get code to IDynamicRegular dictionary.

public static Dictionary<string, IDynamicRegular> GetMcCodeTransformerDictionary(this IMachiningChain chain)

Parameters

chain IMachiningChain

Returns

Dictionary<string, IDynamicRegular>

code to IDynamicRegular dictionary

RequireRoleBranchesNotErrorTerm(IMachiningChain)

Requires that no role branch of the chain is marked as an error term (IsErrorTerm): the axes AxisX … AxisC and the Spindle of a machine tool, the KeyBranch of a CL device.

public static void RequireRoleBranchesNotErrorTerm(this IMachiningChain chain)

Parameters

chain IMachiningChain

The machining chain; null has nothing to check.

Remarks

The role branches themselves are read, not the transformers the role getters answer (TransformerX …, McTransformers): a marked role branch whose transformer has been taken as NoTransform answers null there, exactly as an absent axis does, and would pass unseen. An unbound role, a role whose branch has been detached since (the mark went with it), and a chain of another kind have nothing to check.

Exceptions

ErrorTermRoleException

A role branch is marked as an error term; the message names the role and the branch.