Hide menu
Loading...
Searching...
No Matches
cadex.Nesting_Computer Class Reference

The nesting analyzing tool. More...

Inherits global.SystemIDisposable.

Public Member Functions

 Nesting_Computer (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
 Nesting_Computer ()
 Constructor.
 
void AddPattern (cadex.Drawing.View theDrawing, uint theQuantity)
 
void AddMaterial (double theLength, double theWidth, uint theQuantity)
 
void ResetPatterns ()
 
void ResetMaterials ()
 
void SetParameters (cadex.Nesting_ComputerParameters theParams)
 
cadex.Nesting_ComputerParameters Parameters ()
 
cadex.Nesting_Data Perform (cadex.ProgressStatus theProgressStatus)
 
cadex.Nesting_Data Perform ()
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Detailed Description

The nesting analyzing tool.

Analyzes the drawing to get square-optimized laying out cutting patterns. It's used to minimize the raw material waste. If the analysis is failed, the empty Nesting_Data is returned. In order to load patterns that will be nested it uses AddPattern(). To load materials in which the patterns will be nested use AddMaterial().

Example of analysis results could be found on the mtk_nesting_overview_page page.

Examples
nesting/nesting_computer/Program.cs, and nesting/nesting_computer/main.cxx.

Constructor & Destructor Documentation

◆ Nesting_Computer()

cadex.Nesting_Computer.Nesting_Computer ( )
inline

Constructor.

Creates a nesting analyzer with default parameters.

See also
Nesting_ComputerParameters

Member Function Documentation

◆ AddMaterial()

void cadex.Nesting_Computer.AddMaterial ( double theLength,
double theWidth,
uint theQuantity )
inline

Configure material in which the patterns will be nested.

See also
ResetMaterials, AddPattern
Examples
nesting/nesting_computer/main.cxx.

◆ AddPattern()

void cadex.Nesting_Computer.AddPattern ( cadex.Drawing.View theDrawing,
uint theQuantity )
inline

Load pattern theDrawing and its quantity theQuantity that will be nested.

See also
ResetPatterns, AddMaterial
Examples
nesting/nesting_computer/main.cxx.

◆ Perform()

cadex.Nesting_Data cadex.Nesting_Computer.Perform ( cadex.ProgressStatus theProgressStatus)
inline

Runs analyzing process for loaded patterns and materials.

See also
AddPattern, AddMaterial
Examples
nesting/nesting_computer/main.cxx.

◆ ResetMaterials()

void cadex.Nesting_Computer.ResetMaterials ( )
inline

Clear all loaded materials.

See also
AddMaterial

◆ ResetPatterns()

void cadex.Nesting_Computer.ResetPatterns ( )
inline

Clear all loaded patterns.

See also
AddPattern