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
XElementThe XML source element.
baseDirectory
stringThe base directory for resolving relative paths.
Properties
Cl
public DVec3d Cl { get; set; }
Property Value
KeyBranch
public Branch KeyBranch { get; }
Property Value
KeyTransformer
An ITransformer driven by Cl.
public DynamicFreeform KeyTransformer { get; set; }
Property Value
MachiningEquipmentGetter
Runtime property. For managing CL.
public Func<MachiningEquipment> MachiningEquipmentGetter { get; set; }
Property Value
MainAsmb
Main MainAsmb of this device.
public Asmb MainAsmb { get; }
Property Value
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
TableBuckle
Table buckle.
public Anchor TableBuckle { get; }
Property Value
ToolBuckle
Tool buckle.
public Anchor ToolBuckle { get; }
Property Value
XName
Name of XML element.
public static string XName { get; }
Property Value
Methods
GetAnchor()
Get key anchor. (i.e. root anchor)
public Anchor GetAnchor()
Returns
- Anchor
key anchor
GetAnchorToSolidDictionary()
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
stringThe base directory for resolving relative paths
relFile
stringThe relative file path for the XML source
exhibitionOnly
boolif 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.