GetStock

Name

 

            GetStock

 

When to use it

 

            After setting the sizes using the SetStock method and before the OnFinish event ends.

 

Prototype

 

GetStock(

            IndexStock: long /*[in]*/,

            Type: long/*[out]*/,

            NumberOfVertices: long/*[out]*/,

            CenterX: double/*[out]*/,

            CenterY: double/*[out]*/,

            Radius : double/*[out]*/,

            NumberOfHoles: long/*[out]*/,

            TrimMargin: double/*[out]*/,

            Priority: long/*[out]*/

            UserDefinedData: long/*[out]*/,

);

 

Explanations

 

            With this method you may get information about each sheet from Stock.

            The number of pieces to be cut is given by the NumberOfStockPieces property.

            The information about each piece can be set using the SetStock method.

            The vertices of each piece must be set using SetStockVertex method.

 

Parameters

 

            Index - the index of the piece whose information are extracted. This number is in range [0...NumberOfStockPieces - 1].

            Type: 0 for polygons and 1 for circles.

            NumberOfVertices - number of vertices of the polygon. The vertices MUST be given in the counter-clock way.

            CenterX, CenterY: center of the circle - not implemented.

            Radius : radius of the circle - not implemented.

            NumberOfHoles: number of holes - not implemented.

            TrimMargin: margin of sheet that must be avoided due to faults - not implemented.

            Priority - The priority for cutting a piece. 0 is the highest priority. Pieces with a higher priority are nested before pieces with a lower priority.

            UserDefinedData- an user defined value which was set by SetStock method.

 

See also

 

            SetStock, NumberOfStockPieces.