ManualArrangeGetDemandPiece


Name


            ManualArrangeGetDemandPiece


When to use it


            After setting the sizes using the ManualArrangeSetDemandPiece method and before the OnAfterManualArrange event ends.


Prototype


HRESULT ManualArrangeGetDemandPiece(

            Index: long /*[in]*/,

            Length: long/*[out]*/,

            Width: long /*[out]*/,

            CanRotate: long/*[out]*/,

            UserDefinedData: long /*[out]*/,

 );


Explanations


            With this method you may get the dimensions of each piece to be cut.

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

            The dimensions of each piece can be set using the ManualArrangeSetDemandPiece method.


Parameters


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

            Length - the length of the piece.

            Width - the width of the piece.

            CanRotate - specify if the piece can be rotated or not (1 if yes, 0 if not). See grain direction for more details.

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


See Also:


            ManualArrangeSetDemandPiece, ManualArrangeNumberOfDemandPieces, Grain direction



Links

       back to index

       www.optimalprograms.com