Table of Contents

Class EquipmentWiring

Namespace
Hi.Machining.MachiningEquipmentUtils
Assembly
HiMech.dll

The attachment branches of an equipment — the branches that join its mechanisms to each other: the machine's worktable end to the fixture's TableMount (or, with no fixture, to the workpiece's FixtureMount), carrying TableToComp; the fixture's WorkpieceMount to the workpiece's fixture mount; and the machine's tool end to the tool's fletch mount. Both equipment faces build them here and rebuild them whole whenever a part or a role changes (Rewire()): every attachment is detached, then each one whose two anchors are bound is attached again. An unbound role — a machine file missing its worktable end, a fixture whose mount the user has not chosen yet — simply gets no attachment; the run stops on it at its start with the role named.

public static class EquipmentWiring
Inheritance
EquipmentWiring
Inherited Members

Methods

Rewire(IMachiningEquipment, List<Branch>)

Detaches every branch in attachments, then attaches the equipment's parts to each other by their current roles and records the new branches in attachments.

public static void Rewire(IMachiningEquipment equipment, List<Branch> attachments)

Parameters

equipment IMachiningEquipment

The equipment whose parts are joined.

attachments List<Branch>

The equipment's own record of its attachment branches; emptied and refilled.

Exceptions

ArgumentNullException

Either argument is null.