GetStockHoleArc

Name

 

            GetStockHoleArc

 

When to use it

 

            After setting the information using the SetStock, SetStockHole, SetStockHoleVertex and SetStockHoleArc methods and before the OnFinish event ends.

 

Prototype

 

GetStockArc(

            IndexPart: long /*[in]*/,

            IndexHole: long /*[in]*/,

            IndexStartVertex: long/*[in]*/,

            IsArc: long/*[out]*/,

            CenterX: double/*[out]*/,

            CenterY: double/*[out]*/,

            Direction: long/*[out]*/

);

 

Explanations

 

            Returns the information regarding the polygon representing a hole in the sheet to be cut. Vertices can be connected either by straight lines or arcs. This method returns the arc information (if existing). The extremities of the arc are IndexStartVertex and the next one.

 

Parameters

 

            IndexStock - index of the sheet whose information is to be get.

            IndexHole - index of the hole whose vertices are to be get.

            IndexStartVertex - index of the vertex representing the start of the arc.

            IsArc - specify if the shape connecting IndexStartVertex with the next node is arc or straight segment.

            CenterX, CenterY - the coordinates of the arc center.

            Direction - 0 - counter clockwise, 1 - clockwise.

 

See also

 

    SetStockHoleArc, SetStockHole, GetStockHole, SetStockHoleVertex, SetStockArc, GetStock, SetStock, SetStockVertex.