Skip to Content

Distance Multiplier — GstarCAD 2027

Distance Multiplier

GstarCAD 2027 · Command Reference

Take the step shaft as an example, if we stretch the left part of the step shaft and the keyway still is at the center point of the smaller diameter shaft after stretching, as the following picture shows:

Then, we use the "Distance Multiplier" property of action to achieve the aim.

1. Add linear parameter and stretch action for step shaft.

Hide the right grip of the parameter point, the red dashed line is the object to stretch, and the stretch frame is not displayed.

2. Add Move Action for keyway

Select the left grip of the linear parameter when moving, stretching the related parameter points. Move the objects of action and select the whole keyway.

3. Modify distance multiplier of action

Select Move Action and modify the default value from 1 to 0.5 in the property of the distance multiplier, save and exit the block editor.

4.Test Dynamic Block

Stretch leftwards grip and with the grip moving leftwards, the smaller diameter shaft will appear with a stretch effect, the keyway will also move leftwards accordingly, meanwhile, the keyway is in the center of the smaller diameter shaft of the step shaft all the time, as shown in the following picture.

Although Stretch and Move have a common parameter, when the Distance Multiplier of Move is modified to 0.5, the displacement of Move can only stretch 0.5 times of the displacement.

Other versions with matching text

2023 · 2024 · 2025 · 2026