BasicCNCNumberOfCuts

 

Name

 

            BasicCNCNumberOfCuts

 

Type

 

            Read

 

When to use it

 

            You may call this method during the OnFinish event if the GenerateBasisCNC is set to 1.

            Otherwise the returned value is undefined.

 

Prototype

 

HRESULT BasicCNCNumberOfCuts(

            SheetIndex: long /*[in]*/,

            NumberOfCNCCuts: long /*[out]*/,

            RepositoryIndex: long /*[out]*/,

            RepositoryExternalID: long /*[out]*/

);

 

Explanations

 

            Returns the number of CNC cuts for a particular layout. Both virtual and normal cuts are counted.

 

Parameters

 

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

            NumberOfCuts - the number of CNC cuts 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 standard guillotine or nested optimization this property returns 0.

            If GenerateBasisCNC is set to 0 this property returns 0.

 

See Also:

 

            GenerateBasisCNC, BasicCNCGetCut, GetCutMultiStages, NumberOfCuttings, GetCut, BladeWidth, OnFinish.