Tuesday
Autocad, Blocks, Dynamic BlocksDynamic Blocks 3
AutoCAD 2006 and higher versions
Hello Daily AutoCAD readers,
Here we are together again with the last article about dynamic blocks. Actually, subject of dynamic blocks in so large that it cannot fit into 3 articles only. However, in order to leave space for other topics and not to bore advanced users, I am going to finish the subject with this week’s examples.
Example 3.1 : ARRAY Action
ARRAY action can be associated with LINEAR, POLAR, and XY parameters. We have to select one of these parameters according to the drawing that we are about to do. In this example, we are going to draw a simple bolt and see how the thread numbers increase depending upon its length.

Fig. 1
First of all, make the drawing as shown in Fig. 1. Thread spaces must be 1mm. Drawings example shown in figure is kept as simple as possible to be completed though out this example. In this example, both STRETCH and ARRAY actions will be assigned to LINEAR parameter. First, let’s add the LINEAR parameter as shown in Fig. 2.

Fig. 2
Enter properties of LINEAR parameter and change accordingly so that ‘Distance label=Length‘, ‘Number Of Grips=1’. After editing, your parameter should look like as shown in Fig. 2. Next step is to add STRETCH action. Let’s add this action as described in my previous article.

Fig. 3
Select the area that will be stretched, parameter point and entities as shown in figure. After adding this action, then it is time to add the ARRAY action. ARRAY action is no different than the usual ARRAY command that we are familiar with. As your array is LINEAR, then ARRAY action will be done in one direction only.

Fig. 4
After you assign ARRAY action with your LINEAR parameter, then AutoCAD will ask you about which entities you will select. Let’s select the single thread that we have drawn. Then, AutoCAD will ask it classical question ‘Enter the distance between columns (|||): 1’. As we selected out thread spacing as 1mm, then answer this question with 1. Now, it is time to explain why we have drawn only 1 thread at the beginning.

Fig. 5
ARRAY action assumes that the length of LINEAR parameter to which it is assigned, as length. This distance is divided equally by the value entered for ‘Distance between columns’ and places the selected object at these intervals. So, when you insert this dynamic block for the first time, it will already have 30 numbers of threads. Later on, thread number will increase or decrease depending up on the length of the parameter (Fig. 5).
Example 3.2 : FLIP Parameter and FLIP action
In this example, I will explain how to solve a general problem that is faced by all of the architects by using dynamic blocks. For door drawings, if you change the hinge point, then you have to mirror the sweeping arc and its direction. This is a laborious and time consuming job to do. However, by the help of dynamic blocks you can easily do this with one touch. First, let’s enter block editor and draw a door as shown in Fig. 6.

Fig. 6
This is a classical 90×90 door. Now, let’s add a FLIP action. But, first we have to position the FLIP parameter.

Fig. 7
This parameter is positioned by selecting two points just like a MIRROR LINE. After positioning the parameters, then let’s change its properties as ‘Flip label=Left_Right’, ‘Base state label=Left‘ and ‘Flipped state label=Right’.

Fig. 8
Finally, we have to associate FLIP action with the FLIP parameter. To do this, select FLIP action. Then, first select the parameter and then the entities that will be mirrored, which are door wing and the sweep arc. As you exit the block editor and insert the block into the drawing, then you will see that direction of the block changes with a single action.

Fig. 9
In Fig. 9, you can see how the block changes its direction. So, this is the end of series of articles about dynamic blocks. After this fundamental information about dynamic blocks, now you are ready to create your own dynamic blocks easily. For more advanced information, you can refer to the following resources.
Resources: AutoCAD 2006 Dynamic Bloks White Papers.
Technorati Tags: AutoCAD, dynamic blocks, parameters
Related articles: Dynamic Blocks 1, Dynamic Blocks 2
Bu yazinin Turkce’sini okumak icin basiniz.
Viewed 11,100 times so far... This week: 137 Today: 4 Latest: 5 July 2009, 2:56Post 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
|

Feb 14, 2008
Reply
I have troubles with the array command in the dynamic blocks.
this action repeats object every distance I entered in the “Distance between columns” field in the properties of the action. but the object actually appears only once the block has been extendend of the DOUBLE distance!
so in your example the thread will appear only if you elongate the block of 2′. now with such small distances there is no real problem but when the distances between columns are much longer the last segment becomes huge!
How could I change that?
thank you for your attention and your time
fabio
Feb 15, 2008
Reply
Hello Fabio,
First of all your LINEAR parameter must have only one grip ( at extension direction ). Assume that LINEAR parameter distance = 50; distance between columns = 100 for the array action. Your block entities will be extended at 150, 250, 350…. The best practice is same values for LINEAR parameter and ARRAY action.
Mar 4, 2008
Reply
Hello,
Is it possible to use a linear or xy parameter instead of specifying the distance between rows and columns? I would like to define a rectangle’s width and height as parameters, and make an array to copy the rectangle the exact uinit width (imagine placing bricks next to each other when you don’t know the size of the brick ahead of time). Is this possible?
Jon
Mar 5, 2008
Reply
Yes
It’s possible.
Jun 30, 2008
Reply
I have two lines linked by an arc.
I want to turn one of them around the center of the arc and change the value of the angle of arc to conserve its second point on the second line.
The arc turns without changing its value.
How can i lock the second point.
Thanks for your help
Sep 10, 2008
Reply
Dear Erhan Toker,
I have a problem with stretching two linear parameters at once in my dynamic block (for example H1 and H2 of a building column) .
I want to stretch H1 and H2 should also be stretched at the same time with H1. If the H1 gets 10cm more heigth, the heigth of H2 should be increased 10 cm accordingly,
Would you please help me in this regard?
Many thanks in advance.
A.Said
From Holland
Sep 10, 2008
Reply
Hello Said,
If you have two columns in same block, you should add both of them in to the selection set and your stretching rectangle must cover both column ends.
Hope this helps.
Erhan
Oct 3, 2008
Reply
Hello Mr. Toker,
I have the following question. Once everything is set and done, I am trying to extract the values to a table. The problem is where I would like it to show whether “left” or “right” it only gives a value of “0″ and “1″ respectfully. I guess my questions is: can one custom property labels extract?
Oct 8, 2008
Reply
Hello John,
It seems, this is not possible during extraction. But if you create an EXCEL file to extracted data you can do this with excel functions.
Try LOOKUP excel function.
Hope this helps.
Feb 21, 2009
Reply
Hi Erhan,
Jon asked if we could use a dynamic value for the distance of the Row or Columns distance.
You said it is possible, how can it be done.
I can’t see a property in the Array action for a dynamic distance for Row/Column!
Grtz.
Mike