GSTARCAD | Knowledge Base

Dynamic Block Creation (Distance Multiplier)

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 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 the Linear Parameter and Stretch Action for Step Shaft:
Hide right grip of parameter point, action stretch box is as the following picture, the bolded object is an action operation object.

 

2. Add Move Action for keyway:
Select the left grip of linear parameter when moving, stretching related parameter points. Move objects of action select the whole keyway, as the following picture.

 

3. Modify Distance Multiplier of Action:
Select Move Action and modify the default value from 1 to 0.5 in the property of distance multiplier, save an exit block editor.

 


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

 

 


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

Attached Files
There are no attachments for this article.
Related Articles RSS Feed
Knowing more about actions in dynamic block editor
Viewed 20 times since Thu, Nov 14, 2019
Knowing more about parameters in dynamic block editor
Viewed 20 times since Wed, Nov 13, 2019
Dynamic Block Creation (Flip)
Viewed 15 times since Wed, Nov 13, 2019
Dynamic Block Creation (Linear Stretch)
Viewed 14 times since Wed, Nov 13, 2019
Dynamic Block Creation (Chain Action)
Viewed 22 times since Wed, Nov 13, 2019
Dynamic Block Creation (Parameter Value Set)
Viewed 13 times since Wed, Nov 13, 2019
Knowing more about dynamic block editor
Viewed 20 times since Wed, Nov 13, 2019
Dynamic Block Creation (Symmetrical Stretch)
Viewed 20 times since Wed, Nov 13, 2019
MENU