Table of Contents

Class MillingCutterOptLimit

Namespace
Hi.NcOpt
Assembly
HiMech.dll

Represents optimization limits for milling cutters.

public class MillingCutterOptLimit : ICutterOptLimit, IFeedPerToothOptLimit, IMakeXmlSource, IDuplicate, IClearCache, IToXElement
Inheritance
MillingCutterOptLimit
Implements
Inherited Members
Extension Methods

Constructors

MillingCutterOptLimit()

Ctor with null properties.

public MillingCutterOptLimit()

MillingCutterOptLimit(XElement, string, string, MillingCutter)

Initializes a new instance of the MillingCutterOptLimit class from XML.

public MillingCutterOptLimit(XElement src, string baseDirectory, string relFile, MillingCutter cutter)

Parameters

src XElement

XML element source.

baseDirectory string

Base directory.

relFile string

Relative file path.

cutter MillingCutter

Milling cutter.

Properties

EnableLimitByMinimumUncutChipThickness

Gets or sets whether to limit by minimum uncut chip thickness.

public bool EnableLimitByMinimumUncutChipThickness { get; set; }

Property Value

bool

EnableOpt

Gets or sets whether optimization is enabled.

public bool EnableOpt { get; set; }

Property Value

bool

MaxFeedPerTooth_mm

Gets or sets the maximum feed per tooth in millimeters.

public double MaxFeedPerTooth_mm { get; set; }

Property Value

double

MinFeedPerTooth_mm

Gets or sets the minimum feed per tooth in millimeters.

public double MinFeedPerTooth_mm { get; set; }

Property Value

double

XName

Name for XML IO.

public static string XName { get; }

Property Value

string

YieldingSafetyFactor

Gets or sets the safety factor for yielding.

public double YieldingSafetyFactor { get; set; }

Property Value

double

Methods

ClearCache()

Clears any cached data held by the implementing object.

public void ClearCache()

Duplicate(params object[])

Creates a deep copy of the object, excluding any source file references.

public object Duplicate(params object[] res)

Parameters

res object[]

Optional parameters that may be needed during the duplication process

Returns

object

A new instance that is a deep copy of the original object

Remarks

res[0] has to be ICutter.

GetMaxFeedPerTooth_mm()

Gets the maximum feed per tooth value in millimeters.

public double GetMaxFeedPerTooth_mm()

Returns

double

The maximum feed per tooth value in millimeters.

GetMinFeedPerTooth_mm()

Gets the minimum feed per tooth value in millimeters.

public double GetMinFeedPerTooth_mm()

Returns

double

The minimum feed per tooth value in millimeters.

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.

ToXElement()

Get the XElement to represent the object.

public XElement ToXElement()

Returns

XElement

XElement to represent the object.