NumberOfCuttings

 

Name

 

            NumberOfCuttings

 

Type

 

            Read

 

When to use it

 

            You may call this method during the OnFinish event.

            Otherwise the returned value is undefined.

 

Prototype

 

HRESULT NumberOfCuttings(

            SheetIndex: long /*[in]*/,

            NumberOfCuts: long /*[out]*/,

            RepositoryIndex: long /*[out]*/,

            RepositoryExternalID: long /*[out]*/

);

 

Explanations

 

            Returns the number of cuttings for a particular layout.

 

Parameters

 

            SheetIndex - the index of the layout where the cuttings belong. This number is in range [0...TotalNumberOfUtilizedRepositoryPieces - 1].

            NumberOfCuts - the number of cuttings in the sheet.

            RepositoryIndex - The index of the Repository piece which is utilized in the SheetIndex layout. RepositoryIndex is between 0 and NumberOfRepositoryPieces - 1.

            RepositoryExternalID - an user defined value which was set by SetRepositoryPiece method.

 

Note

 

            For nested optimization NumberOfCuttings is set to 0.

 

See Also:

 

            GetCut, BladeWidth, OnFinish.