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.
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.
After you place the lookup action, change the parameter name to ‘door type’.
Then place the lookup action.
Advertisement - this article continues below
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.
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.
We can do that too with dimensional constraints, using a block table. We will discuss about this later.