Table of Contents

Namespace Hi.Machining.MachiningEquipmentUtils

Classes

CollidableComponentUtil

The collision pairs a machining set-up checks between its work side and its tool side, shared by every machining chain kind.

EquipmentWiring

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.

MachiningEquipment

The runtime face of the machining equipment: the equipment a run moves — tool changes, collision detection, axis poses. It is built from a SetupEquipment by MaterialiseMachiningEquipment(string, IProgress<IMessage>, bool), which it keeps as its AuthoredFace, and has no XML form of its own: a value written to it is saved only where it reaches that face. Its MachiningChainFile and SpindleCapabilityFile are that face's, and a write of a member it takes from that face is raised as MemberReplaced, which LocalProjectService takes into the project's setup for the face it hands out.

An equipment file (root element MachiningEquipment) loads as a SetupEquipment: read it with XFactory.GenByFile<SetupEquipment>. Asked for as a MachiningEquipment or an IGetMachiningEquipment, XFactory answers the runtime face built from it, whose AuthoredFace is the saved one (ReadFromAuthoredXml(XElement, string, string, IProgress<IMessage>), registered by Reg(XFactory)).

A workpiece, fixture or machine chain belongs to one equipment face at a time: assigned to another face, it leaves this one, which forgets it and drops its attachments. The parts of AuthoredFace are shown here as the copies this face was built with: one of them written here stays with that face, and nothing changes.

MachiningEquipmentCollisionIndex

Represents a collision index for machining equipment components. This class manages collision detection between different parts of the machining equipment.

MachiningEquipmentUtil

Utility methods for working with machining equipment.

SetupEquipment

The authored face of the machining equipment: the machine chain, workpiece, fixture, environment data and the tool selection of the setup, with the XML IO. It is the equipment a project file and an equipment file hold; the runtime face (MachiningEquipment) is built from it by MaterialiseMachiningEquipment(string, IProgress<IMessage>, bool) and is never saved.

Its XML element is named MachiningEquipment (see XName): read an equipment file with XFactory.GenByFile<SetupEquipment>. Asked for as a MachiningEquipment or an IGetMachiningEquipment, XFactory answers the runtime face built from the file, whose AuthoredFace is this face (ReadFromAuthoredXml(XElement, string, string, IProgress<IMessage>)).

A workpiece, fixture or machine chain belongs to one equipment face at a time: assigned to another face, it leaves this one, which forgets it and drops its attachments (PartTaken). A runtime face built from this one shows its parts as copies; one of them written there stays here.

Interfaces

IGetMachiningEquipment

Interface for objects that can provide access to a machining equipment instance.

IMachiningEquipment

Machining equipment — implemented by both topology faces of the equipment split: the authored SetupEquipment and the runtime MachiningEquipment. XML IO is NOT part of this contract — only the authored face serializes.

As an IMechanism the equipment is the whole scene: its assembly is the equipment tree the machine chain, fixture, workpiece and tool assemblies are mounted in; its root anchor is the machine chain's root (null while no chain is mounted); its solid dictionary is the machine chain's (an own, empty one while no chain is mounted).

Enums

CollidableComponentEnum

Defines the components of a machining setup that can participate in collision detection.

EquipmentMember

A member of a MachiningEquipment that comes from the setup it is built from (AuthoredFace): what MemberReplaced names, and, for a part another face took, PartTaken.