Machining Class

Machining class definition.
Public MustInherit Class Machining 
Inherits WorkUnit
This language is not supported or no code example is available.
public abstract class Machining : WorkUnit
This language is not supported or no code example is available.
Name Description
Protected constructor Machining(EndMill, Setup) Standard constructor.
Protected constructor Machining(EndMill, Setup, Interval, double) Standard constructor.
Top
Name Description
Public property BottomPlane Gets the machining bottom plane.
Public property ClearanceHeight Gets or sets the clearance height.
Public property ClearancePlane Gets the machining clearance plane.
Public property ComputingPassesText Gets or sets the "Computing passes..." text string.
Public property CutDirectionMode Gets or sets direction mode.
Public property ExecutionTime Gets the (last) work execution time in milliseconds. (inherited from WorkUnit).
Public property Feed Gets or sets the feed rate.
Public property LeadIn Gets or sets the lead-in.
Public property LeadInOpen Gets or sets the lead-in for open contours.
Public property LeadOut Gets or sets the lead-out.
Public property LeadOutOpen Gets or sets the lead-out for open contours.
Public property Log Gets the list of errors and warnings generated during execution. (inherited from WorkUnit).
Public property RadialStockToLeave Gets or sets the radial (wall) stock to leave.
Public property Ramp Gets or sets the ramp type.
Public property Result Gets resulting toolpath.
Public property RetractHeight Gets or sets the Retract height.
Public property RetractPlane Gets the machining retract plane.
Public property Speed Gets or sets the spindle speed.
Public property Status Gets the WorkUnit status. (inherited from WorkUnit).
Public property StepDown Gets step down value.
Public property StepOver Gets step over value.
Public property Tessellation Gets the machining tessellated geometry.
Public property Tolerance

Get or set machining tolerance. Affects the final toolpath accuracy.

Reasonable values can be 0.1 mm for roughing and 0.01 mm for finishing for a model with metric units.

Public property Tool Gets the machining tool.
Public property TopPlane Gets the machining top plane.
Top
Methods
 
Name Description
Public method Static AddZ(Point2D[], double)
Public method Static AddZ(Point2D[][], double)
Public method Static AreEqualZ(double, double, double) Checks if two Z values are equal within a tolerance.
Internal protected (Protected Friend) method Cancelled(BackgroundWorker, DoWorkEventArgs) Checks if the user has requested cancellation of the background operation. (inherited from WorkUnit).
Protected method Static ComputeStepsZ(double, double, double, double, double)
Internal protected (Protected Friend) method DoWork(BackgroundWorker, DoWorkEventArgs) Does the actual work allowing progress bar update and cancellation. (inherited from WorkUnit).
Public method DoWork() Executes the work synchronously. (inherited from WorkUnit).
Public method Equals(Object) Determines whether the specified object is equal to the current object. (inherited from Object).
Protected method EstimateSafetyHeights(Stock)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Protected method Static FromRegion(Region)
Public method GetBottomPlane(Color, string) Gets a visual representation of the Bottom machining plane.
Public method GetBottomPlane(Point3D, Point3D, string) Gets a visual representation of the Bottom machining plane.
Public method GetBottomPlane(string) Gets a visual representation of the Bottom machining plane.
Public method GetClearancePlane(Color, string) Gets a visual representation of the Clearance machining plane.
Public method GetClearancePlane(Point3D, Point3D, string) Gets a visual representation of the Clearance machining plane.
Public method GetClearancePlane(string) Gets a visual representation of the Clearance machining plane.
Protected method GetCutter()
Protected method GetDefaultCircularLeadRadius(EndMill) Computes the default circular lead radius on tool diameter.
Protected method GetDefaultHelixRampRadius(EndMill) Computes the default helix ramp radius based on tool diameter.
Protected method GetDefaultRampClearanceHeight(EndMill) Computes the default ramp clearance height.
Protected method GetDefaultStraightTangentLeadLength(EndMill) Computes the default ramp clearance height.
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Protected method Static GetOuterRegion(EndMill, Region, Region, GeometryBase) Gets the outer region following this order boundary, stock, geometry bounding rectangle.
Protected method Static GetOuterRegion(EndMill, Region, Point2D, Point2D, double, bool) Returns a regenerated stock region or the geometry bounding rectangle (with offset by cutter radius if requested).
Internal protected (Protected Friend) method GetRawPasses(Tuple<DoublePoint2D>[][][], PolyRegion2D, BackgroundWorker, DoWorkEventArgs)
Public method GetRetractPlane(Color, string) Gets a visual representation of the Retract machining plane.
Public method GetRetractPlane(Point3D, Point3D, string) Gets a visual representation of the Retract machining plane.
Public method GetRetractPlane(string) Gets a visual representation of the Retract machining plane.
Public method GetTopPlane(Color, string) Gets a visual representation of the Top machining plane.
Public method GetTopPlane(Point3D, Point3D, string) Gets a visual representation of the Top machining plane.
Public method GetTopPlane(string) Gets a visual representation of the Top machining plane.
Protected method Static GetTransformedBoundary(Region, GeometryBase) Returns a copy of the specified Region transformed by setup inverse matrix.
Public method GetType Gets the Type of the current instance. (inherited from Object).
Public method Static GetUnitsAbbreviation(linearUnitsType) Returns "mm" if the parameters is Millimeters, "in" otherwise.
Protected method InitLeads() Update the leads (in and out) based on the current tolerance and cut direction. Leads must be updated once before computing the positions.
Protected method InitRamps(double) Update the ramps based on the current tolerance and cut direction. Ramps should be updated once before computing the positions.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Protected method RemoveZ(Point3D[])
Protected method RemoveZ(Point3D[][])
Internal protected (Protected Friend) method ResetProgressParallel(int) Resets the progress bar for a parallel loop. (inherited from WorkUnit).
Internal protected (Protected Friend) method StartContinuousAnimation(string, BackgroundWorker, params string[]) Start the animation for the continuous progress bar. (inherited from WorkUnit).
Internal protected (Protected Friend) method StopContinuousAnimation(BackgroundWorker) Stop the animation for the continuous progress bar. (inherited from WorkUnit).
Public method ToString Returns a string that represents the current object. (inherited from Object).
Internal protected (Protected Friend) method UpdateProgress(double, double, string, BackgroundWorker, bool, params string[]) Updates the progress bar value. (inherited from WorkUnit).
Internal protected (Protected Friend) method UpdateProgress(int, int, string, BackgroundWorker, bool, params string[]) Updates the progress bar value. (inherited from WorkUnit).
Internal protected (Protected Friend) method UpdateProgressAndCheckCancelled(int, int, string, BackgroundWorker, DoWorkEventArgs, bool, params string[]) Updates the progress bar value and checks if the worker thread has been canceled. (inherited from WorkUnit).
Internal protected (Protected Friend) method UpdateProgressAndCheckCancelledParallel(int, string, BackgroundWorker, DoWorkEventArgs, params string[]) Updates the progress bar value and checks if the worker thread has been canceled, for a parallel loop. (inherited from WorkUnit).
Internal protected (Protected Friend) method UpdateProgressParallel(double, string, BackgroundWorker, params string[]) Updates the progress bar value for a parallel loop. (inherited from WorkUnit).
Internal protected (Protected Friend) method UpdateProgressTo100(string, BackgroundWorker, params string[]) Set the progress bar to 100% and forces screen update. (inherited from WorkUnit).
Internal protected (Protected Friend) method WorkCancelled(Environment) Called when the work is cancelled. (inherited from WorkUnit).
Internal protected (Protected Friend) method WorkCompleted(Environment) Called when the work has completed. In the case you are modeling something, the environment parameter allows you to easily add the model to the entities collection. (inherited from WorkUnit).
Internal protected (Protected Friend) method WorkFailed(Environment) Called when the work has failed. (inherited from WorkUnit).
Top
Events
 
Name Description
Public event ProgressChanged Occurs when the DoWork() is called synchronously and the progress has changed. (inherited from WorkUnit).
Top
Classes
 
Name Description
Protected class LinkingPoint
Top
Fields
 
Name Description
Protected field ComputingOffsetsText Gets or sets the "Computing offsets..." text string.
Protected field DefaultHelixRampAngle Default helix ramp angle.
Protected field cutter End mill definition.
Protected field fallbackRamp Default fallback ramp. The fallback ramp is used when the appropriate ramp fails to be placed due to stroke intersections.
Protected field geometry The machining geometry (whether 2D or 3D).
Internal protected (Protected Friend) field log (inherited from WorkUnit).
Protected field openContoursRamp Ramp-in for open contours.
Protected field pocketRamp Ramp-in for closed pocket contours. If null, the user-defined ramp will be used instead.
Protected field stepDown Step down.
Protected field stepOver Step over.
Protected field tessellationColor The geometry tessellation color.
Protected field tolerance Machining tolerance. Affects the final toolpath accuracy.
Protected field units The machining units.
Protected field zRange Z axis range.
Top

.NET Framework

Supported in: 4.8

In this article

Definition