ManualArrangeGlueCuts

 

Name

 

            ManualArrangeGlueCuts

 

When to use it

 

            When the optimization process is NOT running.

            NOT during the OnFinish or OnAfterManualArrange event.

            After all other information has been set.

 

Prototype

 

    HRESULT ManualArrangeGlueCuts(

            IndexCut1: long /*[in]*/,

            IndexCut2: long /*[in]*/,

            IndexCut3: long /*[in]*/,

            IndexNewCut1: long /*[out]*/,

            IndexNewCut2: long /*[out]*/,

            IndexNewCut3: long /*[out]*/,

            AllowJoin: long /*[out]*/

    );

 

Explanations

 

            Rearrange 3 existing cuts as shown in the picture. Two cuts are glued together and another one is broke into two smaller cuts. Some preconditions must be met by the cuts to be arrange.

 

 

Parameters

 

            - IndexCut1, IndexCut2 and IndexCut3 are the indexes of 3 existing cuttings. Two of them must be collinear and perpendicular on the third one. The order is not important.

            - IndexNewCut1, IndexNewCut2 and IndexNewCut3 are the indexes of the new cuts. IndexNewCut1 is the index of the cut obtained by glueing the other cuts.

            - AllowJoin - This parameter will receive value 1 if the glue operation is possible. Otherwise it will return 0.

 

See also

 

        How to arrange pieces manually, OnAfterManualArrange.