---
description: Flexible organization setup
---

# Drawer Organizers

Drawer organization is a typical aspect of homes, especially the kitchen. Customization options and parameters include the dimensions of the drawer, the number of dividers along each axis, and the dimensions/spacing of each, as well as the thickness of the stock.

To simplify things, the interface will make certain assumptions:

* no sides or front
* spacing will be evenly divided amongst the dividers (but specific dividers may be disabled, or set to start from right or rear)

Programmatically this will be done by the following possible values:&#x20;

Position

* 0 --- divider is disabled
* 1--9 --- divider will start at that numbered position

Length

* positive values will have the divider starting to the left/in front of that position and continuing to the right or rear
* negative values will have the divider starting to the right of/behind that position and continuing left or to the front

In order to do this we need a module which has an input for the maximum possible number of positions:

![Draw divider module](https://235206304-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2NwCQrLAFxezOUTC9_%2F-MWnz4FD8dYFe_5oxzn3%2F-MWo1dVzHA9YeASOePrn%2Fimage.png?alt=media\&token=3515a183-ce0b-471f-8b82-3eb96f2824fc)

Then, based on the logic of which is the highest numbered position which has a non-zero number the distances are apportioned evenly and calculated. First create variables for each divider position:

![Drawer divider variables](https://235206304-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2NwCQrLAFxezOUTC9_%2F-MX-NRO07pWTrt9yrl1Y%2F-MX-Ne3rRiO7pepEM3mf%2Fimage.png?alt=media\&token=24cfb673-c509-44a3-a9fb-2a2023b3b4e3)

To make checking the position easier, draw in a surround:

![Drawer divider surround](https://235206304-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2NwCQrLAFxezOUTC9_%2F-MX-ZDcUKFcUO67N4IWH%2F-MX-eja6rGCG2dTv4Pxo%2Fimage.png?alt=media\&token=fb85b047-7e36-474d-9001-4f95276c8bf8)

Calculate out the widths of the divided areas:

![Drawer divider section width](https://235206304-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2NwCQrLAFxezOUTC9_%2F-MX-enrkdBPrpRr6GGr6%2F-MX-fBJFT1fwBzp6KkZh%2Fimage.png?alt=media\&token=f3bd660a-5372-4c01-95cc-c3164705505e)





