Hide All Dimensions with zero value

Hide All Dimensions with zero value

Anonymous
Not applicable
1,231 Views
9 Replies
Message 1 of 10

Hide All Dimensions with zero value

Anonymous
Not applicable

Hi everyone,

 

I am pretty new here and I start my activity with a question.

 

Please look at the picture below. You can see 2 identical blocks. Left one with Parameter Destance1=300 and right one =zero. As you can see on the right one there is a visible zero dimension which is unwanted.

 

I know I can create a visibility parameter to get rid of btm part where not needed, but instead of that, can we set something in dynamic block so if a dimension value becomes zero it disappears from view?

 

I appreciate your time and help.

 

Kind Regards,

Behzad

 

Hide Zero Dimensions

 

0 Likes
1,232 Views
9 Replies
Replies (9)
Message 2 of 10

Libbya
Mentor
Mentor

Here you go.  Double lookup with the distance parameter as input and visibility as output.  When distance = 0 visibility automatically switches to hide the dim.

0 Likes
Message 3 of 10

Anonymous
Not applicable

Hey Libbya,

 

Wow, It works exactly as I wanted. I haven't looked at how you did it yet but it is something new for me.

 

Well done and Thanks Smiley Wink

 

I have more questions to ask in the board about dynamic blocks, but I hold them and make topics later after I can help at least one person giving answer to their question. In another say I want to pay the price by doing what you did even may not be as great as yours.

 

Regards

Behzad

0 Likes
Message 4 of 10

Anonymous
Not applicable

I am strugling with recreating what you did Smiley Sad

 

I cannot apply second lookup action to the first lookup parameter... 

 

the other thing, when I type (0.) in the lookup window, it wipes out. I have to open your block, and copy paste what you typed as (0.) in my block so it stays 😞

 

trying googling trying failing and goes on...

 

if i make it, i delete this poet, if not, please advise. Thanks.

0 Likes
Message 5 of 10

Libbya
Mentor
Mentor

Here's how to make a double lookup;  http://forums.autodesk.com/t5/dynamic-blocks/how-to-make-a-double-lookup/m-p/5785708#M18799

 

The range value uses a comma, not a period.  It should be (0,) not (0.).

 

 

0 Likes
Message 6 of 10

Anonymous
Not applicable

Hey,

 

you are so quick! I just searched the board for double lookup and found the post. Came back here to say "yeyyy I found it!!!" but you already answered.

 

Thanks. I get into it and continue learning.

 

Appreciate it.

0 Likes
Message 7 of 10

Anonymous
Not applicable

Hi again,

 

The way I learnt today from Libbya works to hide dimensions if there is no other visibility parameter in the block.

 

The Block you see in dwg attached is what I wanted to fix by auto hiding 2 dimensions called "Sill" and "BTM of Door Clearance".

 

What I tried:

 

I tried to replace the main visibility i had with a lookup. Then added a double look up to hide dimensions. It is not working because:

 

1- It doesn't let me do the "allow reverse lookup"

2- The main lookup for visibility is not visible

 

I searched the board to see if I can have 2 visibilities in one block. I found out we can use enginge something for 2010 and below. Well that would not be a choice because I use 2013.

 

Thanks in advance for the time you spend on this.

 

Regards,

Behzad

 

0 Likes
Message 8 of 10

Libbya
Mentor
Mentor

You're jumping in the deep end.  You cannot have two lookup parameter both control the visibility parameter.  Autocad cannot resolve the state of a block that has two different visibility states defined for the lookup values.  The grip of a lookup will not show up unless it allows reverse lookup as the grip cannot have any effect.  A block will not allow reverse lookup if there is more than 1 input value for a given lookup value as it cannot be resolved.  If you want to have the 3 states of no highlight, 1 highlight, and 2 highlights and you want two separate dimensions to turn on or hide, you will need a total of 12 visibility states (3 x 2 x 2).  Instead of having the transom lookup directly control the visibility state, you should have it control a separate input parameter.  I typically use point parameters.  You then add that to your input table of your double lookup and control the visibility state with the second table.  The working block is attached.

0 Likes
Message 9 of 10

Anonymous
Not applicable

Thanks a lot again 🙂

 

I am sick off work today. I opened your block in my laptop and it works magically! My laptop is slow in graphic and I am slow today as well.

 

So much information i need to learn. I will dig into it tomorrow to underestand how you did it.

 

I have to get good in combining visibility and lookup parameters.

 

Wll done and hats off!

 

Cheers

0 Likes
Message 10 of 10

Anonymous
Not applicable

Libbya,

 

I think I understood what you mean. I think the point parameter you called it input, acts like a third person between 2 bodies that are trying to swap their watermelons. They can't just through the watermelon they hold in the air to grab the one from the other guy. So they have to give their watermelon to the third person once at a time to grab the other and so on.

 

You have done all the work on my block! thanks. I am not touching it as it works perfectly now. But I have to practice it on my other blocks where possible.

 

If I succeed, I will share it here to prove being a good student 🙂

 

Cheers,

Behzad

0 Likes