Class MillingToolOffsetTable
Offset table for milling tool. The key is Offset ID (H or D in NC code).
public class MillingToolOffsetTable : Dictionary<int, MillingToolOffsetTableRow>, IDictionary<int, MillingToolOffsetTableRow>, ICollection<KeyValuePair<int, MillingToolOffsetTableRow>>, IReadOnlyDictionary<int, MillingToolOffsetTableRow>, IReadOnlyCollection<KeyValuePair<int, MillingToolOffsetTableRow>>, IEnumerable<KeyValuePair<int, MillingToolOffsetTableRow>>, IDictionary, ICollection, IEnumerable, IDeserializationCallback, ISerializable, IMakeXmlSource
- Inheritance
-
MillingToolOffsetTable
- Implements
- Inherited Members
- Extension Methods
Constructors
MillingToolOffsetTable()
Initializes a new instance of the MillingToolOffsetTable class.
public MillingToolOffsetTable()
MillingToolOffsetTable(MillingToolOffsetTable)
Initializes a new instance of the MillingToolOffsetTable class by copying an existing table.
public MillingToolOffsetTable(MillingToolOffsetTable src)
Parameters
srcMillingToolOffsetTableThe source table to copy.
MillingToolOffsetTable(XElement)
Initializes a new instance of the MillingToolOffsetTable class from XML.
public MillingToolOffsetTable(XElement src)
Parameters
srcXElementThe XML element containing tool offset data.
Fields
XName
Gets the XML element name for the MillingToolOffsetTable.
public static string XName
Field Value
Methods
MakeXmlSource(string, string, bool)
Creates an XML representation of this offset table.
public XElement MakeXmlSource(string baseDirectory, string relFile, bool exhibitionOnly)
Parameters
baseDirectorystringThe base directory for relative paths.
relFilestringThe relative file path.
exhibitionOnlybool
Returns
- XElement
An XML element representing this offset table.
Reg(XFactory)
Registers this type's deserializer with the given XFactory
(or Default when factory is
null). Idempotent.
public static void Reg(XFactory factory = null)
Parameters
factoryXFactory
UpdateIdealMillingToolOffsetTableByToolHouse(MachiningToolHouse, RadiusOffsetBasis)
Updates the ideal tool offsets in this table based on a tool house: ideal height = spindle-buckle-to-tool-tip length; ideal radius of a milling-cutter row = the cutter profile's max radius under CutterRadius or 0 under ZeroBased. Wear is preserved and rows for tools no longer in the house are dropped.
public void UpdateIdealMillingToolOffsetTableByToolHouse(MachiningToolHouse millingToolHouse, RadiusOffsetBasis radiusBasis = RadiusOffsetBasis.CutterRadius)
Parameters
millingToolHouseMachiningToolHouseThe machining tool house containing tool information.
radiusBasisRadiusOffsetBasisThe project's cutter-radius compensation strategy; decides the ideal radius written for milling-cutter rows.