GetWaste

 

 

Name

 

            GetWaste

 

When to use it

 

            You may get the waste during the OnFinish event.

            Otherwise the returned value is undefined.

 

Prototype

 

            HRESULT GetWaste(

                        Index : Long /*in*/,

                        Length: Long/*[out]*/,

                        NumberOfBundles: Long/*[out]*/,

                        BundleSize: Long/*[out]*/,

                        MinBundleSizeToCut: Long/*[out]*/,

                        UseMinBundleSizeParameter: Long/*[out]*/,

                        Min2: Long/*[out]*/,

                        RepositoryIndex: Long /*[out]*/,

                        RepositoryExternalID: Long /*[out]*/

            );

 

Explanations

 

            The information about each waste obtained.

 

Parameters

 

            Index - is the index of the waste whose information is request. Index must be between 0 and NumberOfWastes.

            Length - the length of the waste.

            NumberOfBundles - number of bundles of this type of waste.

            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 -

            RepositoryIndex is the index of bar as it was set by the SetRepositoryPiece method. RepositoryIndex is between 0 and NumberOfRepositoryPieces - 1.

            RepositoryExternalID is the external ID of the repository piece to which the waste was cut. 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