Dynamic Block Creation (Distance Multiplier)

Take 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 “Distance Multiplier” property of action to achieve the aim.

1. Add 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 action operation object.

2. Add Move Action for keyway: 

Select 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, 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, but when Distance Multiplier of Move is modified as 0.5, the displacement of Move can only stretch 0.5 times of displacement.

  • GstarCAD Blog

    www.gstarcad.net

    Related Posts

    Why Is My DWG File So Large and How to Reduce It Safely

    A DWG file can grow far beyond what its visible geometry seems to justify. Common causes include unused definitions, duplicate objects, imported content, empty text, zero-length geometry, registered application data,…

    What Is a DXF File? A Practical Guide to CAD Exchange

    A DXF file is a CAD drawing file used to exchange design information between software applications. DXF stands for Drawing Exchange Format. Autodesk introduced it so drawings could move between AutoCAD…

    Leave a Reply

    Don't Miss out

    Why Is My DWG File So Large and How to Reduce It Safely

    • November 11, 2026
    Why Is My DWG File So Large and How to Reduce It Safely

    What Is a DXF File? A Practical Guide to CAD Exchange

    • November 4, 2026
    What Is a DXF File? A Practical Guide to CAD Exchange

    What Is a DWG File? An Easy Guide for CAD Beginners

    • October 30, 2026
    What Is a DWG File? An Easy Guide for CAD Beginners

    What’s New in GstarRender: AI Architectural Visualization from Concept to Video

    • October 29, 2026
    What’s New in GstarRender: AI Architectural Visualization from Concept to Video

    GstarCAD Deep Dive: What’s New in Batch Plotting for 2027?

    • October 20, 2026
    GstarCAD Deep Dive: What’s New in Batch Plotting for 2027?

    Old Factory Renovation with AI Rendering: Reimagine Industrial Buildings with GstarRender

    • October 15, 2026
    Old Factory Renovation with AI Rendering: Reimagine Industrial Buildings with GstarRender

    Discover more from Gstarsoft's Blog

    Subscribe now to keep reading and get access to the full archive.

    Continue reading