Using Lookup Table in Dynamic Block

We created a door using stretch action in dynamic block tutorial. It was a good practice, but can be better. Stretching them might not be the best option. Sometimes we want the door at specific sizes. Providing the users a list would be better. We can use lookup table.

Let’s open the door in that tutorial. Rename the linear parameter to ‘width’ or ‘door width’. And change the ‘number of grips’ to 0. We don’t want our users to use other than specified sizes.

parameter properties

Place a lookup parameter. Place it anywhere you like it. When AutoCAD ask for the number of grips, type 1 then [enter]. It suppose to be the default value by the way.

lookup parameter

After you place the lookup action, change the parameter name to ‘door type’.

Then place the lookup action.

lookup action

AutoCAD will open a lookup table. We are going to define the door sizes here.

Click the ‘add properties’ button. We only have one parameter here. Select the width parameter and click OK. The width column is added to your table. If you have more than one parameter, you can show them all here. For example, our column has 2 parameters.

Fill the table with the sizes and door type as you want.

Make sure we set the last row properties as ‘allow reverse lookup’. If we set it as read only, we won’t see the list.

lookup table finish

Click OK, save your block, and save block editor. Try your block. Select the block and click the down arrow to access the list. No grips, so no body can use a size that’s not specified in our list.

Lookup result

We can do that too with dimensional constraints, using a block table. We will discuss about this later.

Share this Post!


Rate This Post

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...

About the Author

Application Engineer. Jakarta, Indonesia. 5+ years experience as CAD engineering application. AutoCAD, MicroStation, Inventor, Autodesk Revit Architecture 2010 certified professional, and certified CATIA part design specialist. Here are some topics I am currently focusing on

You might also interested to these posts:

  1. Dynamic Block Action vs Dynamic Block Parameters
    We have created an AutoCAD column block by using two methods: using dynamic block actions and using parametric features (geometric and dimensional constraint). So what’s the difference? Why we should...
  2. Reporting Multiple Coordinates in A Block using Attribute Extraction
    I found this thread this morning in CADTutor Forum. I found it’s interesting and trying to figure how it can work. This is how I do it. The problem is,...
  3. How to: Label Coordinate in AutoCAD
    I had this question several times: can we automatically label our coordinate in AutoCAD? If you are Civil3D user, then you most likely will suggest them to use C3D. But...