BasicCNC

 

Name

 

            BasicCNC

 

Type

 

            Read

 

When to use it

 

            You may get the value of this property anytime.

            Only if :

                StartMultiStage method was called,

                GenerateBasicCNC was set to 1,

                the FirstDirectionMultiStages is set to 1 (vertical first).

 

 

Prototype

 

    HRESULT BasicCNC(

            SheetIndex: long/*[in]*/,

            CNC: BSTR /*[out]*/,

            RepositoryIndex: long /*[out]*/,

            RepositoryExternalID: long /*[out]*/

    );

 

 

Explanations

 

            Provides basic support for CNC machines. The result of this method will be a string of form: La1Cb1TLa2Cb2TLa3Cb3T.....

where L stands for level and C stands for coordinates and T (the type) is either N (for normal cut) or V (for virtual - inserted cut).

            Levels are numbered from 0 (first level). First cut is always vertical. If there is no such cut (vertical cut) a virtual one will be inserted. The coordinate of the virtual cut is equal to the width of the sheet.

            Coordinate is the distance of the current cut to another one from the previous level or on the same level.

            The number of levels is limited by the NumberOfStages property.

 

Parameters

 

            SheetIndex - Is the index of the layout (sheet) whose CNC sequence is extracted. SheetIndex must be between 0 and TotalNumberOfUtilizedRepositoryPieces - 1.

            CNC - the CNC string.

            RepositoryIndex - The index of the Repository piece whose info is extracted. RepositoryIndex is between 0 and NumberOfRepositoryPieces  - 1.

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

 

Example

 

(0,0) is top-left.

FirstCut is vertical.

 

 

BasicCNC:  L0C200NL1C200NL1C100NL2C100NL2C100VL3C50NL3C50VL4C50NL4C50V

 

See also

 

             GenerateBasicCNC, BasicCNCGetCut, BasicCNCNumberOfCuts, StartMultiStages, CutAllStripsFirst, FirstDirectionMultiStages, NumberOfStages.