BasicCNCGetCut

 

Name

 

            BasicCNCGetCut

 

When to use it

 

            During the OnFinish event.

 

            This method is available only for StartMultiStages when the GenerateBasicCNC is set to 1.

            For standard guillotine use GetCut.

 

 

Prototype

 

HRESULT BasicCNCGetCut(

            SheetIndex: long/*[in]*/,

            CutIndex: long/*[in]*/,

            TopX: long /*[out]*/,

            TopY: long /*[out]*/,

            BottomX: long /*[out]*/,

            BottomY: long /*[out]*/,

            CutThickness: long /*[out]*/,

            Level: long /*[out]*/,

            Type: long /*[out]*/,

            RepositoryIndex: long /*[out]*/,

            RepositoryExternalID: long /*[out]*/

);

 

Explanations

 

            This method returns information about one cut in the BasicCNC sequence.

            The number of cuts performed is obtained using the property NumberOfCuttings.

 

Parameters

 

            SheetIndex - Is the index of the layout (sheet) where the cut is performed. SheetIndex must be between 0 and TotalNumberOfUtilizedRepositoryPieces - 1.

            CutIndex - the index of the cut whose information are extracted. This number is in range [0...NumberOfCuttings - 1].

            TopX, TopY, BottomX and BottomY are coordinates of the current cut.

            CutThickness - the actual thickness of a cut (see below).

            Level - the level on which this cut is. First cuts have level 0. The cuts perpendicular on the first cuts have level 1 and so on.

            Type - A cut can be virtual (type = 1) or normal (type = 0).

            RepositoryIndex - The index of the Repository piece where the cut is performed. RepositoryIndex is between 0 and NumberOfRepositoryPieces  - 1.

            RepositoryExternalID- The external ID of the Repository piece where the cut is performed.

 

 

Note

 

            See BasicCNC for a discussion related to normal and virtual cuts.

            This property is available only for multi-stage guillotine cuts (from one side to another side of the material).

            For non-guillotine cuts this method has no meaning.

            For standard guillotine see GetCut.

 

See Also:

 

            BasicCNC, GenerateBasicCNC, GetCutMultiStages, GetCut, BladeWidth, NumberOfCuttings, StartMultiStages, OnFinish.