Skip to main content

Define Handle Position and Orientation

The purpose of this page is to explain how to implement handle position management in the ByMe kitchen planner. There are many ways to achieve this, depending on the number of sub-assemblies building the final product and the complexity of the .BMA files. This page will deal with the most frequent handle positions.

❗️ There is a high dependency with the door or drawer fronts as illustrated below. The handle product is at the lowest level in the tree that goes up to the full cabinet.

Handle in a sub-assembly

➑️ See the tutorial Create a Base Cabinet πŸ”— for a concrete case on handle position management.

The example here is based on the assumption that all positions and orientations about handles are managed in a single assembly (one BMA). This assembly can be used as a component of each cabinet that need an handle.


Dimension and Offset Parameters​

Before defining positions it is necessary to understand what kind of values are taken into account to calculate handle positions.

Dimensions and offsets

The assembly uses dimension and offset parameters that must be defined. The parameter names in the table below are suggestions; note that they are in camel case.

❗️ The same dimension and offset parameters must be defined both on the product (via 3DCloud or the code) and in the assembly.

Parameter nameTypePossible valuesFunction
frontWidthreal[0;∞]Defines the size of the front on the X-axis of the assembly.
frontDepthreal[0;∞]Defines the size of the front on the Y-axis of the assembly.
frontHeightreal[0;∞]Defines the size of the front on the Z-axis of the assembly.
xHandleOffsetreal[0;∞]Defines the size of the gap between the edge of the door and the handle on the X-axis of the assembly.
zHandleOffsetreal[0;∞]Defines the size of the gap between the edge of the door and the handle on the Z-axis of the assembly.

Handle Position on a Door Front​

Possible positions of an handle on a door front are defined as illustrated below. The type parameter must be defined on each possible handle of the handle assembly to automatically set up the correct position. Because this type value is not an input shared to the customer it should not be set up at cabinet level.

type = 1 classictype = 2 edgetype = 3 drop
Front positionsEdge positionsDrop positions

Position and Orientation Parameters​

Other parameters are taken into account for the calculation of the handle position and especially parameters that are shared and modifiable by the customer.

They must be defined on the handle assembly and at any upper level having an handle as component.

Parameter nameTypePossible valuesFunction
handleLayoutinteger[0;1]Defines whether the handle is centered on the door front or place on a side. Possible values are: β–ͺ️ 0 = centered β–ͺ️ 1 = sided
sideinteger[-1;1]Defines whether the handle is placed on the left or on the right side of the door front. Only if handleLayout is set to 1. Possible values are: β–ͺ️ -1 = left β–ͺ️ 1 = right
handleOrientationinteger[0;1]Defines the orientation of the handle: β–ͺ️ 0 = horizontal β–ͺ️ 1 = vertical
handleVerticalPositioninteger[0;1;2]Defines whether the vertical handle is placed on the bottom, the middle or the top of the door front. Only if handleOrientation is set to 1. Possible values are: β–ͺ️ 0 = bottom β–ͺ️ 1 = middle β–ͺ️ 2 = top

Relations​

Relations are not input value from the cabinet but refer to dimension and option parameters.

Definition​

Relations are expressions used to calculate dynamic values from parameters or other relations. A relation supports mathematic operators or logical tests. The result can be assigned to component properties, output set properties and anchor point properties.

Example of Relation Names​

The relation names below are suggestions. There is no control on relation names in Assembly Editor, except on the camel case. However, it is highly recommended to compose the name of the relation on this model: name of the component + involved parameter.

Relation nameTypePossible valuesFunction
handleWidthreal[0;∞]Gets the size of the handle as an indirect input, which means calculated dynamically in a relation when the handle is changed.
handleHeightreal[0;∞]Gets the size of the handle as an indirect input, which means calculated dynamically in a relation when the handle is changed.
handleTypeinteger[1;2;3]Gets the type of the handle as an indirect input, which means calculated dynamically in a relation when the handle is changed.

Expressions and Parametric Architecture​

However, this set of parameter values defines only one of the possible positions. Therefore, it is necessary to define a parametric architecture to switch between various configurations.

This architecture uses expressions to calculate all the possible positions in every directions in a single relation.

Let us take the example of an horizontal classic handle placed on the top left of the door front.

Handle and front

The architecture suggested below (and the corresponding expressions) is one possible solution.

πŸ“Œ Values in red are adjusted position due to handle type 2 itself.

On the X-Axis​

Expression

Architecture

On the Y-axis​

The expression may depend on door position.

Expression

Architecture

On the Z-axis​

Expression

Architecture

About Orientation Axes​
  • On a ZX-axis: zxHandleOrientation = 0
  • On a ZZ-axis: zzHandleOrientation = 1

Ternary Relations​

Ternary relations are complex expressions that perform checks before getting the value.

Below is a sample of a relation set containing ternary relations; this set illustrates the parametric architecture to implement to switch between various handle/front configurations. This architecture uses expressions to calculate all the possible positions in every directions in a single relation.

For example, the relation "xHandlePosition" tests the handle type and gets the handle position from it: xHandlePosition = handleType===1?xHandleType1Position:(handleType===2?xHandleType2Position:xHandleType3Position) This means: "If the handle type is equal to 1, then the handle position is type 1, else if the handle type is 2 the position type is 2, else 3".

This set is used in an handle assembly (case of an handle of type 1 on the X-axis).

πŸ“Œ Note the relation naming convention used to simplify the reading of the BMA in Assembly Editor.


xHandlePosition = handleType===1?xHandleType1Position:(handleType===2?xHandleType2Position:xHandleType3Position)
xHandleType1Position = handleLayout===1?xHandleType1Layout1Position:xHandleType1Layout0Position
xHandleType1Layout1Position = handleOrientation===1?xHandleType1Layout1Orientation1Position:xHandleType1Layout1Orientation0Position
xHandleType1Layout1Orientation0Position = side*(frontWidth*0.5-handleWidth*0.5-xHandleOffset)
xHandleType1Layout1Orientation1Position = side*(frontWidth*0.5-handleHeight*0.5-xHandleOffset)
xHandleType1Layout0Position = handleOrientation===1?xHandleType1Layout0Orientation1Position:xHandleType1Layout0Orientation0Position
xHandleType1Layout0Orientation0Position = 0
xHandleType1Layout0Orientation1Position = -side*(handleHeight*0.5)


Overload Positions​

Finally when all positions are calculated and defined as a result of conditions parameters, the last step consists in assigning values to the handle component. Select the Handle component in the Components list.

Assign position

In the Position area, move the toggle button to Symbol to overload the static values with those defined by the relations:

  • X: Overload with xHandlePosition.
  • Y: Overload with yHandlePosition.
  • Z: Overload with zHandlePosition.

In the Orientation area, move the toggle button to Symbol to overload the ZX and ZZ values:

  • ZX: Overload with zxHandleOrientation.
  • ZZ: Overload with zzHandleOrientation.

Result​

The handle is now placed on the top left corner on the door front, and can be edited by the customer in the cabinet editor.

Handle on a front

⬇️ Click here to download a handle/front BMA