Monday
Autocad, Blocks, Dynamic BlocksDynamic Blocks 2
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.
Viewed 9,071 times so far... This week: 118 Today: 2 Latest: 5 July 2009, 0:11Post Tags:
Related Posts
Popular
- Hip tip: Increasing view resolution with VIEWRES system variable
07/03/2009 04:39 am
7 Comments - Sirince – IZMIR
07/02/2009 11:02 am
1 Comment - Visual LISP: Programming user interfaces with OpenDCL
07/01/2009 10:15 pm
10 Comments - 3D Modeling 7: EXTRUDE
06/30/2009 02:14 pm
10 Comments - Ask DailyAutoCAD: Which Notebook to Buy?
06/30/2009 12:17 pm
1 Comment
Featured Articles
- AutoCAD 2009 Update 3 Released
- Speed Up As AutoCAD 2009 Ribbon Menu Helps You!
- MEP Analysis Extension for AutoCAD MEP extended to March 31, 2009
- Recap of AutoCAD-related technologies on Autodesk Labs
- Technology Preview of MEP Analysis Extension extended to 12/31/08
- Autodesk Labs: Forward and Backward utility for AutoCAD
|

Sep 17, 2007
Reply
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
Apr 23, 2009
Reply
Hi all
Thanks for posting this information on line, it has been very helpful too me.
One thing I would like to do with a dynamic block that is based on a rectangle is control the “y” length of the rectangle relative to the variable DIMSCALE.
The width “x” will vary all over the place from 250 to 2000mm while the “y” value will change depending on the scale of the drawing. If I am using a 1:100 scale drawing I’d like the “y” value to = 100, In a 1:250 scale drawing I’d like the “y” value to = 250, in a 1:50 scale drawing I’d like the “y” value to equal 50, etc, etc.
Does anyone know if it is possible to get a dynamic block to automatically scale an element relative to the value of a variable (DIMSCALE, LTSCALE, etc)??