How to arrange the layout manually


Cut 2D X offers built-in support for manually arange the layouts after optimization process. This will help you to modify the results for further improving them. By using the methods and properties of the Cut 2D X component you will be able to implement the manual arrange feature in your application by writing very few lines of code.

Remark

Manual arrange works for guillotine only.


How to set data

Because after OnFinish event all information about the current layout (pieces positions, waste rectangles, cuttings) is lost you have to resend them to the component.


First step is to set the optimization type for the current layout by setting the ManualArrangeOptimizationType property. This will basically tell the component what kind of cuttings will be performed (Guillotine, Nested or Multi-Stages). Currently manual arrange works for guillotine only.


Second step is to set all the information that you have about the current state of the layout (obtained during the OnFinish event). Also the parameters for optimization must be set (Length, Width (of the sheet to be arranged), BladeWidth, MaximalCutLength, MinimalWidthBreakage etc).


Specifically, the following methods and properties must be used to set all the information that you have about the current layout (which will be further modified manually):


ManualArrangeSetRepositoryPiece


ManualArrangeNumberOfCuts

ManualArrangeSetCut


ManualArrangeNumberOfDemandPieces

ManualArrageSetDemandPiece


ManualArrangeNumberOfWastes

ManualArrangeSetWaste


How to modify the layout

After setting all information you may use the following methods for modifying the layout.


ManualArrangeGuillotineIsValidPositionForAPiece

ManualArrangeGuillotineAddPiece


ManualArrangeRemovePiece

ManualArrangeGuillotineMovePiece


ManualArrangeIsValidRemoveCut

ManualArrangeRemoveCut


ManualArrangeIsValidAddCut

ManualArrangeAddCut


ManualArrangeIsValidSwitchCutOrientation

ManualArrangeSwitchCutOrientation


ManualArrangeGlueCuts


How to get the results

After calling one of the previously described methods the OnAfterManualArrange event is raised. During this event the user may extract the result of manual arrange.


Methods and properties used for extracting the information about the outcome of manual arrange.


The following methods and properties can be used for extracting the information about the  outcome of the manual arrange operations.


After a manual arrange operation the OnAfterManualArrange event is raised. Methods which query if an operation is valid do not raise this event.


During OnAfterManualArrange all information about the newly obtained layout can be accessed by using the following properties and methods:


            PROPERTIES


                        ManualArrangeNumberOfCuts

                        ManualArrangeNumberOfDemandPieces

                        ManualArrangeNumberOfWastes

                        ManualArrangeSurfaceCovered


            METHODS


                        ManualArrangeGetCut

                        ManualArrangeGetDemandPiece

                        ManualArrangeGetWaste

                        ManualArrageGetRepositoryPiece




Links

       back to index

       www.optimalprograms.com