Thursday
Autocad, Blocks, Dynamic BlocksDynamic Blocks and LOOKUP parameter
AutoCAD 2006 and higher versions
We are ending our article series about dynamic blocks by introducing the LOOKUP parameter.
If you examine all of the articles about dynamic blocks, there should not be any open points about dynamic blocks. Now, let’s go back to our article. LOOKUP parameter is used for creating a preliminary setting list. You can assign one or more normal parameter to each of the items in this list. By this way, you can run more than one action at the same time or in pre-defined way by selecting one item in the list. In our example, we will examine how to rotate a chair block by 4 main angles (Fig. 1).

Fig. 1
There is one ROTATE parameter/action couple and one LOOKUP parameter/action couple inserted inside the block. As usual, we are entering block editor and creating a simple chair (Fig. 2).

Fig. 2
Try to keep insertion point as 0,0 point and the angle as shown in figure. After this, let’s insert a ROTATE parameter (Fig. 3).

Fig. 3
Select rotation center of the parameter, or what we call BASE POINT, as the center of the block. From the properties of ROTATE parameter, make ‘Ang type = List’ and ‘Ang value list = 0,90,180,270’. By this way, our chair will be able to be rotated by 4 main angle directions. As we can control the ROTATE parameter by LOOKUP list, we have to prevent it to look inside the block. At this stage, we must change properties as ‘Show Properties = NO’ and ‘Number of Grips = 0’ to do this. Finally, let’s associate our ROTATE parameter with a ROTATE action. When we finish, our block should look like as shown in Fig. 3. All of the settings and buttons are shown all together in Fig. 3. After ROTATE parameter, we will insert LOOKUP parameter and action (Fig. 4).

Fig. 4
After inserting the parameter, we have to associate it with a LOOKUP action. As soon as LOOKUP parameter is selected for association, a ‘Lookup Table’ window will open up (Fig. 5).

Fig. 5
By using ‘Add Properties…’ button, you will reach a list of parameters that has already been defined for this block from block editor. Select ROTATE parameter from this list (with Angle default name). When you return back to main window, you will see that it is divided into two. There is ROTATE parameter on the left side, and there is LOOKUP parameter on the right side. Select pre-defined angles respectively from the left side and create 4 rows for them. After this, you have to define what will be written in the selection list that corresponds to these angles on the right side. Empty cells are not accepted. Here, I gave same names with the angles. Close this window and then close the block editor (save changes). Now, our block is ready to be used (Fig. 1).
Technorati Tags: AutoCAD, Dynamic Blocks, Lookup parameter
Related Articles: Dynamic Blocks 1, Dynamic Blocks 2, Dynamic Blocks 3
Bu yazinin Turkce’sini okumak icin tiklayiniz.
Viewed 10,029 times so far... This week: 108 Today: 5 Latest: 5 July 2009, 4:26Post 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
|

Jun 30, 2007
Reply
Hello and thank you for the instruction articles…
I am using ADT 2006 and when following this ‘chair’ example when I apply the Lookup Action the Property Lookup Table does not open.
The Lookup Action ends up in place in the Block Editor with a yellow/caution icon which reads ‘Empty lookup table’ when the cursor is over the icon.
I have tried this with several other Blocks and always get the same result.
I am following the proceedures in this example exactely.
Do you know of a solution to this problem?
Thank You
Nov 14, 2007
Reply
Hello,
With Dynamic Block is it possible to change the specific elevation value of the block (Z axe ) ?
Thank you
Eric
Apr 25, 2008
Reply
Is there any way to use more than one visibility parameter in a block? ex: to draw a door with/out knob and/or doorstep, two visibility parameters would be great.
Thanks
Jul 25, 2008
Reply
thanks for the GREAT info, for helping me unlock block editor . searched for while, found it here first. thanks july08
Feb 12, 2009
Reply
Quiero saber como funciona el parametro de lookup para los bloques dinámicos.
Gracias