Arraying Attribues using vibilities and lookups

Arraying Attribues using vibilities and lookups

Anonymous
Not applicable
1,162 Views
10 Replies
Message 1 of 11

Arraying Attribues using vibilities and lookups

Anonymous
Not applicable

I have been experimenting with some dynamic blocks trying to get an array action to act like it is arraying Attributes with the content. After some research around these and other forums I managed to find a way using lookups to chain the array to a visibility. Now I am running into some glitches with the visibilities because I can only have one visibility.

 

Please see the attached file.

 

What I am trying to do is have one visability change the initial item and then array that (including the Attributes).

 

For instance the First lookup will decide if the "QTY" attribute will be shown or if "REF" (not an attribute) will be shown. After this is chossen I would like to be able to array and have the initial choice show up through all of the other balloons. The initial choice will also decide if the leader is shown or not. The problem I am running into is that the Visibility that is attached to the array function is overriding the intial visability choice. 

 

I have tried to add more lookup actions to the lookup parameter but it seems to just get confused because it has to choose between two different visabilities.

 

Any help is much appreciated.

 

Thanks! 

0 Likes
Accepted solutions (1)
1,163 Views
10 Replies
Replies (10)
Message 2 of 11

ojuris
Advisor
Advisor
Accepted solution

Try this

 

Juris

Message 3 of 11

Anonymous
Not applicable

This is excatly what I was going for.

 

Can you briefly explain what the trick was?

 

Thank you for your help!

 

 

0 Likes
Message 4 of 11

ojuris
Advisor
Advisor

for 1.step I made visibility states for all possible variants

I add 4 linear parameters for 4 basic variants with array and for each of this double lookup

 

I tried manage visibility with these lookups, but that isn't working

then I add linear parameter (Distance1) for managing visibility with double lookup (Lookup2)

 

briefly that's all  🙂

0 Likes
Message 5 of 11

Anonymous
Not applicable

ojuris, ever since we went to 2015 I cannot seem to make a double visibility anymore... Is there a trick or am I doing something wrong? I have a number of blocks with them already existing. I just saveas a different block name and use that.. I'd like to be able to make them from scratch again. Any thoughts/suggestions?

0 Likes
Message 6 of 11

Anonymous
Not applicable

Im still using 2012 becuase work wont pay for the new license but all I do to add multiple lookup actions is right click on the lookup parameter then select properties then under the Actions I will add as many as I need. I think the default is set to 4 but only one is visiable unless you set the BACTIONBARMODE to 0.

0 Likes
Message 7 of 11

Anonymous
Not applicable

Thank you for the explanation. I dont have much experience creating these blocks but I am trying to learn. 

This block is working perfectly!

Thanks for your help!

0 Likes
Message 8 of 11

Anonymous
Not applicable

I use to be able to do that. maybe I have odd settings? I don't know, I'm not a fan of 2015

0 Likes
Message 9 of 11

ojuris
Advisor
Advisor

It isn't problems with version of autocad 2012 or 2015

 

Go to block authoring palette, tab  Parameter sets and find  Lookup set

Right click to Lookup set and choose Properties

In line Actions in right side click on square and in new window select action Lookup and click Add

Now your Lookup set have double lookup

You can add more than 2 lookup actions to 1 parameter of course but I don't see sense to do this

 

Regards

Juris

 

lookup.jpg

Message 10 of 11

Anonymous
Not applicable

see video. I've had this block since 2009...?Somewhere around that time period.  I made it from a lisp you gave me (which I still have).

 

Sometime in 2010. I believe it was you that gave me the fas file (not lisp). I have the zip file at home with the instructions which has your name... if it's not you, it's someone with a very similar name. Forgive me if I'm wrong, it has been a while since I've been active in the dynamic block forum.

0 Likes
Message 11 of 11

ojuris
Advisor
Advisor

hi

 

It's possible that I give that file to you but I'm not autor

I have that file too Smiley Wink

 

But now you don't need lisp or fas file to make double lookup - very cool and useful option to create interesting DB

 

Now we must wait to get possibility to make more than 1 visibility in block.

There was lisp files that can do that but author don't working with this and last version in which that lisp working was 2010. 

 

 

Juris

0 Likes