GetRepositoryPiece

 

 

Name

 

            GetRepositoryPiece

 

When to use it

 

            After setting the size using the SetRepositoryPiece method and before the OnFinish event ends.

 

Prototype

 

            HRESULT GetRepositoryPiece(

                        Index: Long/*[in]*/,

                        Length: Long/*[out]*/,

                        NumberOfBundles: Long/*[out]*/,

                        BundleSize: Long/*[out]*/,

                        MinBundleSizeToCut: Long/*[out]*/,

                        UseMinBundleSizeParameter: Long/*[out]*/,

                        Min2: Long/*[out]*/,

                        ExternalID: Long /*[out]*/

            );

 

Explanations

 

            GetRepositoryPiece returns information about each piece to be cut.

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

            The information of each piece can be set using the SetRepositoryPiece method.

 

Parameters

 

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

            Length - the length of the piece.

            NumberOfBundles - number of bundles available in your repository.

            BundleSize - the number of pieces in each bundle.

            MinBundleSizeToCut - minimal number of piece that you machine can cut once.

            UseMinBundleSizeParameter - ignore the previous parameter if your machine does not have such limit.

            Min2 -

            ExternalID is the external ID of the repository piece whose input index is Index. External ID is an integer number which was assigned to each piece in order to be easier identified.

 

 

Links

        back to index

        www.optimalprograms.com