Table of Contents

Class ClMillingDevice

Namespace
HiMachining.Milling
Assembly
HiMech.dll

A milling device driven by CL(Cutter Location).

public class ClMillingDevice : IMachiningChain, IGetAsmb, IGetAnchor, IGetTopoIndex, IMakeXmlSource, IGetAnchorToSolidDictionary
Inheritance
ClMillingDevice
Implements
Inherited Members
Extension Methods

Constructors

ClMillingDevice()

Ctor.

public ClMillingDevice()

ClMillingDevice(XElement, string)

Initializes a new instance from XML.

public ClMillingDevice(XElement src, string baseDirectory)

Parameters

src XElement

The XML source element.

baseDirectory string

The base directory for resolving relative paths.

Properties

Cl

public DVec3d Cl { get; set; }

Property Value

DVec3d

KeyBranch

public Branch KeyBranch { get; }

Property Value

Branch

KeyTransformer

An ITransformer driven by Cl.

public DynamicFreeform KeyTransformer { get; set; }

Property Value

DynamicFreeform

MachiningEquipmentGetter

Runtime property. For managing CL.

public Func<MachiningEquipment> MachiningEquipmentGetter { get; set; }

Property Value

Func<MachiningEquipment>

MainAsmb

Main MainAsmb of this device.

public Asmb MainAsmb { get; }

Property Value

Asmb

McCodes

Gets the machine coordinate code sequence for decoding the MC array.

public string[] McCodes { get; }

Property Value

string[]

McTransformers

Gets the machine coordinate transformers.

public IDynamicRegular[] McTransformers { get; }

Property Value

IDynamicRegular[]

TableBuckle

Table buckle.

public Anchor TableBuckle { get; }

Property Value

Anchor

ToolBuckle

Tool buckle.

public Anchor ToolBuckle { get; }

Property Value

Anchor

XName

Name of XML element.

public static string XName { get; }

Property Value

string

Methods

GetAnchor()

Get key anchor. (i.e. root anchor)

public Anchor GetAnchor()

Returns

Anchor

key anchor

GetAnchorToSolidDictionary()

Gets a dictionary that maps Anchor objects to their corresponding Solid objects.

public Dictionary<Anchor, Solid> GetAnchorToSolidDictionary()

Returns

Dictionary<Anchor, Solid>

A dictionary where keys are anchors and values are their associated solids.

GetAsmb()

Gets the key asmb.

public Asmb GetAsmb()

Returns

Asmb

The key asmb.

GetTableBuckle()

Gets the table buckle anchor point.

public IGetAnchor GetTableBuckle()

Returns

IGetAnchor

The table buckle anchor point.

GetToolBuckle()

Gets the tool buckle anchor point.

public IGetAnchor GetToolBuckle()

Returns

IGetAnchor

The tool buckle anchor point.

MakeXmlSource(string, string, bool)

Creates an XML representation of the object. This method may also generate additional resources such as related files.

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

Parameters

baseDirectory string

The base directory for resolving relative paths

relFile string

The relative file path for the XML source

exhibitionOnly bool

if true, the extended file creation is suppressed.

Returns

XElement

An XML element representing the object's state

Remarks

For the demand of easy moving source folder (especially project folder) without configuration file path corruption, the relative file path is applied. The baseDirectory is typically the folder at the nearest configuration file folder. Since the folder can be moving with the configuration file.