Dynamic Blocks 2
Print This Post
![]() |
Author | Erhan Toker |
| Profession | Architect M.Sc. | |
| Autodesk Authorized Consultant | ||
| Software Specialist | ||
AutoCAD 2006 and higher versions
Hello Daily AutoCAD readers,
Here we are together with the second part of dynamical blocks articles. This week, we will start by giving an example to the LINEAR parameter. LINEAR parameters are generally associated with STRETCH action. Table example that we have defined last week is a good example for this. Now, let’s enter block editor command again and start editing a block named as TABLE80.

Fig. 1
Draw a rectangle with dimensions of 100×80 and add a LINEAR parameter on it. One or two STRETCH action can be added to linear parameters. If we will add two STRETCH actions, then we need two GRIP points, and if we will add one STRETCH action than we need one GRIP point. LINEAR parameter that you can see in Fig. 1 has two numbers of GRIP points. GRIP points are shown with a blue triangle on the drawing. You can change number of GRIP points from properties tool palette (Fig. 2). If you select only one GRIP point, then you must set the side where GRIP point will be on, by using ‘Base Location’ property. In our example, there will be only one GRIP point. If you mark the LINEAR parameter from left to right, then you must set ‘Base Location = Start Point’.

Fig. 2
As we didn’t assign any action to the parameter, a ‘!’ sign is seen on it. Let’s select STRETCH parameter from ‘Actions’ part. We will be prompted to enter a parameter for the action.

Fig. 3
As soon as we select the parameter, then a message as shown in Fig. 3 will be shown. This message asks us about which parameter will be associated with the STRETCH action.

Fig. 4
As you move the mouse cursor on any side, then cursor will change into the shape shown in Fig. 4. In our example, grip on the right side must be selected. Later, you will be prompted to select a stretching area and entities that will be stretched similar to how STRETCH command works.

Fig. 5
Do your selection as shown in Fig. 5 and do the STRETCH action. Save your block by using ‘Close Block Editor’ button, then your block will be ready as you return back to model screen. Now, insert your new block into the model by using ‘INSERT’ command and try to use it. First thing that you will immediately notice is that length of the table can change according to all of the lengths. However, we want our linear parameter to change in between values of 90, 100, 110, 120 and 130. It is quite simple to do this. We can easily do this by changing the properties our linear parameter. Then, let’s immediately return back to block editor and have a look at these properties.

Fig. 6
Let’s select our LINEAR parameter and change ‘Dist Type = List’ and ‘Dist value list = 90;100;110;120;130’ from ‘PROPERTIES’ tool palette as shown in Fig. 6. You can fill in this list from the windows which opens up when you press the small button shown with ‘…’. Save changes and return back to model screen by using ‘Close Block Editor’. Now, you block will have gained the abilities as shown in Fig. 7.

Fig. 7
Related Articles: Dynamic Blocks 1
Technorati Tags: AutoCAD, blocks, dynamic blocks, actions
Bu yazinin Turkce’sini okumak icin basiniz.
Similar Posts
Rate this article:


September 17th, 2007 12:08
when the block contain a 3d object and I need to give this block parameters consist of ( hight + width +depth)
I have a problem how to fined the hight in Z access