add_arrange_move#

MCADComponent.add_arrange_move(vector: Sequence[str | int | float] = ('0mm', '0mm', '0mm')) → Arrange#

Add a translation transformation to the component.

Register a translation operation to be applied to this component during assembly. Translations are applied in the order they are added and are relative to the component’s target coordinate system.

Parameters:
vectorSequence[str | int | float], optional

Translation vector as a sequence of three values [x, y, z] with units. Each value can be a string expression (e.g., "1mm", "0.5in") or a numeric value (interpreted as the system default unit). The default is ("0mm", "0mm", "0mm").

Returns:
Arrange

The created translation transformation object.

Examples

Move a component 5mm in the X direction:

>>> comp.add_arrange_move(vector=("5mm", "0mm", "0mm"))