ManualArrangeSetPiecePosition

 

 

Name

 

            ManualArrangeSetPiecePosition

 

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 ManualArrageSetPiecePosition(

            Index: long/*[in]*/,

            TopX: long /*[in]*/,

            TopY: long /*[in]*/,

            BottomX: long /*[in]*/,

            BottomY: long /*[in]*/

            Rotated: long/*[in]*/,

            ExternalID: long/*[in]*/

    );

 

Explanations

 

            Set the coordinates of an existing piece on this layout.

           

Parameters

 

            - Index is the index of the piece to be set. This value is between 0 and ManualArrangeNumberOfPieces - 1.

            - TopX, TopY, BottomX, BottomY - the coordinates of the top-left and bottom-right corners of the piece (rectangle).

            - Rotated - if this piece comes from a previous optimization you should set the rotation status here. Otherwise the Rotated parameter can be set to 0.

            - ExternalID - an user defined value which can help you to track down the piece during the OnAfterManualArrange event. This value will be returned by the GetDemandPiece method.

 

See Also

 

        How to arrange pieces manually, ManualArrangeNumberOfPieces, GetDemandPiece, OnAfterManualArrange.