Dynamic blocks with multiple lookups

Dynamic blocks with multiple lookups

Anonymous
Not applicable
4,246 Views
3 Replies
Message 1 of 4

Dynamic blocks with multiple lookups

Anonymous
Not applicable

Hi Guys,

 

I'm trying to create a dynamic block for wood screws and I'm having trouble using multiple lookups to force stretch action to match desired visibility.

 

I have 8g, 10g and 12g Screws and I want only one visibility to switch between gauge and for each gauge I need one grip to change the length of the screw.

 

Sample.PNG

I've created visibility for all the different sizes and tried to use lookups to relate the stretch with the visibility (I've made this because the screws don't have a consistent geometric when stretched).

 

If I delete lookups for 10g and 12g and leave only the lookup for 8g, it works. When I have more than one, the stretch grips simply disappear.

 

Perhaps there is a different method to do this but I got stuck.

 

The drawing is attached, thanks for the support in advance.

 

Sizes:

sizes.PNG

 

0 Likes
Accepted solutions (1)
4,247 Views
3 Replies
Replies (3)
Message 2 of 4

Libbya
Mentor
Mentor
Accepted solution

The single lookup cannot be used to control the visibility state directly while the other double lookups are also used to control the visibility directly.  That creates an unsolvable conflict between what state the visibility state is switched to by what lookup.  Instead, use the screw diameter selection lookup to move a point parameter as 'memory'.  Similarly, you cannot have the visibility state on all three double lookups.  Again, CAD cannot know which double lookup visibility state to honor.  Instead, use the Y of the prior memory point along with the X and Y of another point as memory for the three diameters and their various lengths.  Then use another double lookup to collate each of the memory points in order to determine the row and then switch the visibility state on the second table.  In the first table I used range values for the points that did not matter for that row.  The result is a fairly advanced dynamic block, but it works easily.  In the end of the screencast I added the head states as well.  Let me know if you get stuck or have further questions.

 

 

Message 3 of 4

Anonymous
Not applicable

That's perfect!

 

Thanks a lot. 

 

0 Likes
Message 4 of 4

JBerns
Advisor
Advisor

That's awesome!

 

Regards,

Jerry

-----------------------------------------------------------------------------------------
CAD Administrator
Using AutoCAD & Inventor 2025
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional
0 Likes