GetPartHoleArc

Name

 

            GetPartHoleArc

 

When to use it

 

            After setting the sizes using the SetPart, SetPartHole, SetPartHoleVertex and SetPartHoleArc methods and before the OnFinish event ends.

 

Prototype

 

GetPartHoleArc(

            IndexPart: long /*[in]*/,

            IndexHole: long /*[in]*/,

            IndexStartVertex: long/*[in]*/,

            IsArc: long/*[out]*/,

            CenterX: double/*[out]*/,

            CenterY: double/*[out]*/,

            Direction: long/*[out]*/,

            UserDefinedData: long /*[out]*/

);

 

Explanations

 

            Returns the information regarding the polygon representing the hole of the piece 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

 

            IndexPart - index of the part whose information is to be get. It must be set between 0 and NumberOfParts - 1.

            IndexHole - index of the hole whose arcs 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.

            UserDefinedData- an user defined value.

 

See also

 

    SetPartHoleArc, SetPartHole, GetPartHole, SetPartHoleVertex, SetPart, GetPart, SetPartArc.