When to use it
After setting the size using the SetDemandPiece3 method and before the OnFinish event ends.
Priority: Long /*[out]*/
ExternalID: Long /*[out]*/
GetDemandPiece3 returns information about each piece to be cut. This method extends the functionality of the GetDemandPiece method.
The number of pieces to be cut is given by the NumberOfDemandPieces property.
The information of each piece can be set using the SetDemandPiece3 method.
Index - the index of the piece whose information are extracted. This number is in range [0...NumberOfDemandPieces - 1].
Length - the length of the piece.
Angle1 - the angle of one extremity of the piece (from bottom part of the bar). The angles must be expressed in degrees between 0 and 180.
Angle2 - the angle of the other extremity of the piece (from bottom part of the bar).
Utility - a real value representing the utility of each piece. - BETA testing.
Priority - the priority to cut each piece. 0 is the highest priority. - BETA testing.
ExternalID is the external ID of the demand piece whose input index is Index. External ID is an integer number which was assigned to each piece in order to be easier identified.
back to index