GetCut

 

 

Name

 

            GetCut

 

When to use it

 

            You may get the waste during the OnFinish event.

            Otherwise the returned value is undefined.

 

Prototype

 

            HRESULT GetCut(

                        Index : Long /*in*/,

                        Length: Long/*[out]*/,

                        BundleSize: Long/*[out]*/,

                        DemandIndex: Long /*[out]*/,

                        DemandExternalID: Long /*[out]*/

                        RepositoryIndex: Long /*[out]*/,

                        RepositoryExternalID: Long /*[out]*/,

                        CutId: Long /*[out]*/,

                        BundleSizeToCutFrom: Long /*[out]*/

 

            );

 

Explanations

 

            The information about each performed cut.

 

Parameters

 

            Index - is the index of the bar whose waste is request. Index must be between 0 and NumberOfCuts.

            Length - the length of the pieces that were cut.

            BundleSize - the number of pieces that were cut.

            DemandIndex is the index of demand piece that was cut here. It was set by the SetDemandPiece method. RepositoryIndex is between 0 and NumberOfDemandPieces - 1.

            DemandExternalID is the external ID of the demand piece to which the waste was cut. External ID is an integer number which was assigned to each piece in order to be easier

            RepositoryIndex is the index of bar that it was cut from. It was set by the SetRepositoryPiece method. RepositoryIndex is between 0 and NumberOfRepositoryPieces - 1.

            RepositoryExternalID is the external ID of the repository piece from which the cut was performed. External ID is an integer number which was assigned to each piece in order to be easier identified.

            CutId - will have the same value for all cuts from the same bar. When you take a new (sub)bundle to cut the cutid will be incremented.

            BundleSizeToCutFrom - is the size of the bundle to cut from.

 

Links

        back to index

        www.optimalprograms.com