Community
Dynamic Blocks Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to Make a Double Lookup

29 REPLIES 29
Reply
Message 1 of 30
Libbya
23847 Views, 29 Replies

How to Make a Double Lookup

Libbya
Mentor
Mentor

Double lookups are so darn useful and slightly tricky to make so I figured I'd make a screencast in a dedicated thread that shows exactly how to make one and how to select each of the tables.

 

 

How to Make a Double Lookup

Double lookups are so darn useful and slightly tricky to make so I figured I'd make a screencast in a dedicated thread that shows exactly how to make one and how to select each of the tables.

 

 

29 REPLIES 29
Message 21 of 30
Libbya
in reply to: ed57gmc

Libbya
Mentor
Mentor

 


@ed57gmc wrote:

I found a similar way to do 2 lookups, but with one Lookup. You can add multiple parameters to a single lookup action. This also provides the ability to do asymmetrical lookups. For example, in the attached block, I have Width (X) and Height (Y) stretch parameters. With 2 lookups, selecting a value changes the height and width using the same value, i.e. a square. But with the lookup in this sample, I can implement a table with x and y of different values.


What you posted is just basic single-lookup functionality.  Single lookups are certainly powerful items, but that are very well documented and their discussion is off-topic in this thread.  This thread is about double lookups and you might have missed the huge added functionality that double lookups offer over single lookups.  

0 Likes

 


@ed57gmc wrote:

I found a similar way to do 2 lookups, but with one Lookup. You can add multiple parameters to a single lookup action. This also provides the ability to do asymmetrical lookups. For example, in the attached block, I have Width (X) and Height (Y) stretch parameters. With 2 lookups, selecting a value changes the height and width using the same value, i.e. a square. But with the lookup in this sample, I can implement a table with x and y of different values.


What you posted is just basic single-lookup functionality.  Single lookups are certainly powerful items, but that are very well documented and their discussion is off-topic in this thread.  This thread is about double lookups and you might have missed the huge added functionality that double lookups offer over single lookups.  

Message 22 of 30
ed57gmc
in reply to: Libbya

ed57gmc
Mentor
Mentor

@Libbya wrote:

What you posted is just basic single-lookup functionality.  Single lookups are certainly powerful items, but that are very well documented and their discussion is off-topic in this thread.  This thread is about double lookups and you might have missed the huge added functionality that double lookups offer over single lookups.


I guess in my line of work I haven't come across a need for double lookup. Can you post an example block?

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes

@Libbya wrote:

What you posted is just basic single-lookup functionality.  Single lookups are certainly powerful items, but that are very well documented and their discussion is off-topic in this thread.  This thread is about double lookups and you might have missed the huge added functionality that double lookups offer over single lookups.


I guess in my line of work I haven't come across a need for double lookup. Can you post an example block?

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

Message 23 of 30
Libbya
in reply to: ed57gmc

Libbya
Mentor
Mentor

I have posted examples in many threads on this forum.  

0 Likes

I have posted examples in many threads on this forum.  

Message 24 of 30
Jaycee.foli
in reply to: Libbya

Jaycee.foli
Advocate
Advocate

I would love to see a tutorial that explains the "why" behind lookups, rather than just the how. I have used a double lookup twice before, but always as  "do this" from someone else, without explanation as to why this method is the way to go. I think it would be greatly beneficial to many of us middle of the road users to increase our knowledge and skills. If you have any materials or videos that do this, please share. It would be greatly appreciated.

0 Likes

I would love to see a tutorial that explains the "why" behind lookups, rather than just the how. I have used a double lookup twice before, but always as  "do this" from someone else, without explanation as to why this method is the way to go. I think it would be greatly beneficial to many of us middle of the road users to increase our knowledge and skills. If you have any materials or videos that do this, please share. It would be greatly appreciated.

Message 25 of 30
j.palmeL29YX
in reply to: Jaycee.foli

j.palmeL29YX
Mentor
Mentor

@Jaycee.foli wrote:

... the "why" behind [Double] lookups, 


I'd suggest, analyze some  of the block examples which use Double Lookups and then try to get the same functionality without using a Double Lookup. I think this way your question will answer itselfe. 

 

 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes


@Jaycee.foli wrote:

... the "why" behind [Double] lookups, 


I'd suggest, analyze some  of the block examples which use Double Lookups and then try to get the same functionality without using a Double Lookup. I think this way your question will answer itselfe. 

 

 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 26 of 30
Libbya
in reply to: Jaycee.foli

Libbya
Mentor
Mentor

The concept on how they function is relatively simple.  

 

With a single lookup, when the user selects a different row on the lookup table either through the grip or through properties, the block parameters that are added to the table are changed to match their values for that row of the lookup table.

 

A double lookup behaves in a similar manner, but instead of the user selecting a row of the table, when the values of the parameters listed on one table all match a row, the row is selected and the parameters that are added to the other table are changed to match their values for that row of the lookup table.

 

When the above is understood, the 'why' becomes relatively obvious.  It allows some parameter values to be forced when other parameter values match specific block states.  

The concept on how they function is relatively simple.  

 

With a single lookup, when the user selects a different row on the lookup table either through the grip or through properties, the block parameters that are added to the table are changed to match their values for that row of the lookup table.

 

A double lookup behaves in a similar manner, but instead of the user selecting a row of the table, when the values of the parameters listed on one table all match a row, the row is selected and the parameters that are added to the other table are changed to match their values for that row of the lookup table.

 

When the above is understood, the 'why' becomes relatively obvious.  It allows some parameter values to be forced when other parameter values match specific block states.  

Message 27 of 30
Jaycee.foli
in reply to: Libbya

Jaycee.foli
Advocate
Advocate

So basically, one look-up makes certain parameters active, and the second look-up tells the first which parameters to make active based on how the current active parameters are set, via the grips for instance? Is that the basic idea?

0 Likes

So basically, one look-up makes certain parameters active, and the second look-up tells the first which parameters to make active based on how the current active parameters are set, via the grips for instance? Is that the basic idea?

Message 28 of 30
h_s_walker
in reply to: Libbya

h_s_walker
Mentor
Mentor

Yep that's the basic idea

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

0 Likes

Yep that's the basic idea

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

Message 29 of 30
Gil_C
in reply to: Libbya

Gil_C
Advocate
Advocate

Now that is really cool. I wonder if you can do it with visibility state. I am thing not, but going to try it on Monday.

0 Likes

Now that is really cool. I wonder if you can do it with visibility state. I am thing not, but going to try it on Monday.

Message 30 of 30
zobb011111
in reply to: Libbya

zobb011111
Participant
Participant

To make a double lookup in Excel, follow these steps:

1. Set Up Data: Organize your data in a table format.

2. Create Dropdowns:
- Select cells for category and topic selection.
- Use `Data Validation` to create dropdowns for these cells.

3. Find Row and Column
- Use `MATCH` to find the row for the selected category and topic.
- Use `MATCH` to find the column for the data header.

4. Combine `INDEX` and `MATCH`
- Use `INDEX` to get the value based on the found row and column.

### Example Formula
Assume category is in `E1`, topic in `F1`:

```excel
=INDEX(C:D, MATCH(E1, A:A, 0), MATCH("Data 2A", 1:1, 0))
```

This formula retrieves the value by combining `INDEX` and `MATCH` functions.

0 Likes

To make a double lookup in Excel, follow these steps:

1. Set Up Data: Organize your data in a table format.

2. Create Dropdowns:
- Select cells for category and topic selection.
- Use `Data Validation` to create dropdowns for these cells.

3. Find Row and Column
- Use `MATCH` to find the row for the selected category and topic.
- Use `MATCH` to find the column for the data header.

4. Combine `INDEX` and `MATCH`
- Use `INDEX` to get the value based on the found row and column.

### Example Formula
Assume category is in `E1`, topic in `F1`:

```excel
=INDEX(C:D, MATCH(E1, A:A, 0), MATCH("Data 2A", 1:1, 0))
```

This formula retrieves the value by combining `INDEX` and `MATCH` functions.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report