Lookup Multi-Vis How-To Screencast

Lookup Multi-Vis How-To Screencast

Libbya
Mentor Mentor
10,266 Views
34 Replies
Message 1 of 35

Lookup Multi-Vis How-To Screencast

Libbya
Mentor
Mentor

Here's a screencast that shows how to add multi-vis selection to an existing block.  This block switches 10 different valve types and gives the option of normally open or normally closed for each valve type.  Instead of scrolling through the visibility list of 20 options I figured it would be a nice touch to give one selection for the 10 valve types and one selection for NO/NC.

 

The block funcitons as follows.  One of the selection lookups changes the X value of the input point parameter.  The other selection lookup changes the Y value of the input point parameter.  The double lookup uses one table to look at the position X and position Y of the input point parameter and determines the row.  The other table uses that row name to force the visibility state to the desired value. 

Accepted solutions (1)
10,267 Views
34 Replies
Replies (34)
Message 21 of 35

kubaszymanski
Enthusiast
Enthusiast

Hi Libbya,

 

thank you very much, this will work.

Unfortunately LT doesn't support User Parameters. However could you edit this block using this method and send me?

I will check if the block will work properly on LT. If so I will ask my boss for Full Version and other who only use blocks will use LT 🙂

 

Take care,

Jacob

0 Likes
Message 22 of 35

Libbya
Mentor
Mentor

The method in the screencast uses an attribute, which I believe IS supported by LT.  No I won't edit the block for you.  

Message 23 of 35

kubaszymanski
Enthusiast
Enthusiast

OK , I understand. 

I will download trial version and check it. I didn't thought about this earlier.

I really appreciate your help, generally. I learn many things from your posts.

 

 

0 Likes
Message 24 of 35

Libbya
Mentor
Mentor

I don't understand why you would need a trial version.  Everything I do in the step-by-step screencast can be done using LT.  I only mentioned the user parameter as an alternative method that would work for people not using LT.    

0 Likes
Message 25 of 35

kubaszymanski
Enthusiast
Enthusiast

Libbya this is a little offtop at my side..  I'm just wondering if there is compatibility if I create block with User Parameters in Full version it will works in LT. 

Your solution is great and probably I will use it but as always I'm wondering or asking.. 

 

 

0 Likes
Message 26 of 35

Libbya
Mentor
Mentor

I have not used LT in more than a decade so I cannot say with certainty, but I believe that within LT there is no issue with the functionality of blocks that contain constraints and user parameters.  They just cannot be created by an LT user.  

Message 27 of 35

kubaszymanski
Enthusiast
Enthusiast

Hi,

I have another problem. I've find difficulty to add third option. Could you help me with this? 

0 Likes
Message 28 of 35

h_s_walker
Mentor
Mentor

You don't need the "width" in the VISIBILITY section of your lookup you only need the visibility state there.

You need to add the red circle parameter to your xx lookup section and create more rows.

See the below two images for guidance

Capture.JPGCapture1.JPG

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
Message 29 of 35

kubaszymanski
Enthusiast
Enthusiast

Actually this Width in Visibility is a parameter to change box size 🙂 but I did the rest like you show and that is fine. 

Now I'll try it in my main block. 

Thank you a lot.

 

 

0 Likes
Message 30 of 35

h_s_walker
Mentor
Mentor

The Width parameter is already there in your RECWIDTH, you do not need to put it in the other visibility state

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 31 of 35

kubaszymanski
Enthusiast
Enthusiast

Please look at attached gif. It isn't working properly if I delete this column.

0 Likes
Message 32 of 35

h_s_walker
Mentor
Mentor

Rectwidth and Width are essentially doing the same job. Delete "Width" and it's Stretch. Delete the MOVE1 action. It's not doing anything. Move Rectwidth to where "Width" was. Now add a stretch parameter to RectWidth and select the rectangle.

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 33 of 35

kubaszymanski
Enthusiast
Enthusiast

Yes, you have right. Still learning.

Thanks a lot. 

 

 

0 Likes
Message 34 of 35

kubaszymanski
Enthusiast
Enthusiast

Hi,

do you know where I can find working lisp Visibility-Add-Eng? 

I tried this http://poleshchuk.spb.ru//cad/2009/tainypod12e.htm but it isn't working in latest Autocad.

My block needs to have fourth option and number of permutations is too large to do it by hand. Adding additional Visibility state could help.

Sorry for little offtop.

0 Likes
Message 35 of 35

Libbya
Mentor
Mentor

As far as I know there is not a version of the visibility_add_eng lisp for any recent version of AutoCAD.  You can also use the scaling method.  If you do a search you can find that method posted by me and by others.  Please start a different thread to discuss your block further.

0 Likes