Trying to get multiple visibilty parameters to work within my block

Trying to get multiple visibilty parameters to work within my block

suzannebeatch
Participant Participant
1,160 Views
10 Replies
Message 1 of 11

Trying to get multiple visibilty parameters to work within my block

suzannebeatch
Participant
Participant

Hi All

 

I'm hoping someone can help me out with this dynamic block for a bathroom layout.  I have multiple sub-blocks that have visibility states within this main layout bathroom block.  I know there are other sub-block in this main block but the sub-blocks that I would like to focus on are the toilet and shower.  Here are the things I'm trying achieve with this block. 

 

1. Have separate visibility parameters for the toilet block and the shower block that show their own drop down menus and work independently from each other.

 

2. Have the main bathroom block rotate and/ or flip with all of the sub-blocks doing what their supposed to do with their visibility parameters.  (This is not a problem to do as I know how to rotate and flip a block.)

 

 

I found the lisp routine, visibility-add-eng_1_6.lsp,  from this forum that lets you add multiple visibility parameters.   I was able to figure how to add a second visibility parameter but I'm not understanding the lookup table part.  I can toggle between my floor mounted toilet and wall mounted toilet but when I do I see all of the shower options on top of one another. When I toggle between my shower options, I still see all of them (curb, curbless and tub) on top of one another and my toilet block shows both toilet options. 

 

So my questions are:

 

1. How do I get the toilet and the shower blocks to function separately with their visibility as if there was only one sub-block in my main block? 

 

2. When I set the visibility for the toilet, do I select the shower options to not show and vice versa for the shower?

 

3. Does this multiple visibility parameter function work with more than 2 visibility parameters?  If it can, once I get the toilet and shower doing what I want I would like to add my towel bar and medicine cabinets but I need to adjust those blocks to the sizes I want first.

 

I'm attaching my drawing here as well as the lisp that I'm using.  This is the first layout of about 10 that I need to do so any help is greatly appreciated.

 

 

 

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

c_hornyak
Contributor
Contributor

This video helped me do this in the past. The process is kind of long and confusing. What I ended up doing was just making a separate visibility state for every combination I need.

 

https://youtu.be/cYZGh70ttF8

0 Likes
Message 3 of 11

suzannebeatch
Participant
Participant

Thank you for your reply and video.  I'll take a look at this.

0 Likes
Message 4 of 11

j.palmeL29YX
Mentor
Mentor

What you want (or expect) is too much for Dynamic Blocks. AFAIK *1) you can have access to dynamic parameters/actions only if they are defined in the block definition of the main block. If you have sub blocks with dynamic properties you can use their functionality only in the block definition (inside of the block editor) of the main block. In inserted block references of the main block the dynamic properties (the parameters) are invisible, the sub blocks are "fixed" and can not changed. 

 

My suggestion: 

Refrain from combining of dynamic sub-blocks into a main block. This will not work. Create your single blocks (as example a toilet, a basin and a shower block) and place each of them where you need it. And if you have several similar bath rooms copy all geometry of an existing bath room (not a block) and change the (dynamic) properties separately in the copy. 

 

 

*1) I did not yet analyze what the LISP does. But I can not imagine that it will help you to solve your problem.

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
Message 5 of 11

j.palmeL29YX
Mentor
Mentor

To demonstrate how to handle with the LookUp's let us know please: 

- Do I understand  right that you have (only) two types of toilet (floor mounted and wall mounted)?

- Show us how look the three variants of the shower (shower-curb, shower-curbless and shower-tub). 

- Show us how looks the double door.

- Do you want to switch the visibility of the Towel Bar and the Hand Towel Rings independent  of each other or "only" drag their size (Bar) respectively the angle (Rings)? 

 

 

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
Message 6 of 11

suzannebeatch
Participant
Participant

Hi Jurgen

 

I kind of figured I was expecting/ wanting too much from my blocks.

0 Likes
Message 7 of 11

suzannebeatch
Participant
Participant

Hi Jurgen

 

I only need visibilities for the toilet options (floor and wall mounted), shower options (curb, curbless and tub) and the towel bar (18", 24", 36"). The door and the hand towel ring can stand alone as just blocks in the main block and don't need to do anything.

 

I would like to select the options for the toilet, shower and towel bar independently from the others.

0 Likes
Message 8 of 11

j.palmeL29YX
Mentor
Mentor

Unfortunately you did not yet answer my questions I asked for above: 

How look the different showers? Please show us side by side how looks the shower-curb, the shower-curbless and the shower-tub. What do you want to see in each of the variants? 

Additional question (for my understanding): Do you want only three different length of the towel bar or also turn on/off its visibility? 

 

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
Message 9 of 11

suzannebeatch
Participant
Participant

Hi Jurgen

 

The cad drawing I attached with my original post has the the blocks with their visibilities already set with what I want for each.  If you go into the block editor and turn on visibility mode you'll be able to see all the sizes for each block.

0 Likes
Message 10 of 11

j.palmeL29YX
Mentor
Mentor

Sorry, I can not see the different showers here. 

 

 

Before we now analyze what causes the problem (I did not yet explore what the LISP does) - create and post three screenshots where we can see what you want to get. Then I can show you (tomorrow) in a video how you can get (without this LISP) what you expect. 

 

 

 

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
Message 11 of 11

suzannebeatch
Participant
Participant
Accepted solution

Hi Jurgen

 

Thank you for your previous replies.  I think I'm not going to make my layouts a block and just have my items as blocks instead.

 

I appreciate the assistance.

Suzanne

0 Likes