Void visibility

drenL5229
Enthusiast
Enthusiast

Void visibility

drenL5229
Enthusiast
Enthusiast

Hi,

 

I have a problem I don't know how to solve. I am using a void to cut an angle in a line based profile. I want to have my void not visible if the angle is 0 as it would not have to cut anything and I don't want any errors in my family when I do set it to 0.


It is an instance based parameter. I wanted to set it off with an IF statement but I am having errors for "circular..".

 

Basically, how to turn off the void when I set the angle at 0.

 

I appreciate your time.

 

 

0 Likes
Reply
Accepted solutions (1)
620 Views
11 Replies
Replies (11)

curtisridenour
Collaborator
Collaborator

You should use a yes no visibility parameter. Also you should set a parameter to the angle that has a formulat that never goes to 0 so it does not snap.

 

_Angle = if(Angle=0,1,Angle)

0 Likes

drenL5229
Enthusiast
Enthusiast

Actually I want to have the ability to set it at 0 as well, snap, as you said.

So, if(Angle=0, Void (off), Void)

 

I hope this helps.

0 Likes

curtisridenour
Collaborator
Collaborator

Post your family here. I can take a look. 

 

probably more like this though.

Void = if(Angle =0, 1=0, 1=1)

0 Likes

mhiserZFHXS
Advisor
Advisor

You'll need a parameter for you to actually control the angle, and then a parameter that is linked to your voids angle. For the parameter controlling the void, you'll need an equation like :

 

If (Angle=0, 45, Angle)

 

This makes sure your angle parameter doesn't break.

 

Then, for your visibility parameter, have an equation that says:


Angle>0

 

This will hide your void if the angle is zero, since the voids angle will actually be 45, or whatever number you decide.

drenL5229
Enthusiast
Enthusiast

Find it attached below.

Thank you!

0 Likes

curtisridenour
Collaborator
Collaborator

see below and attached.

curtisridenour_0-1677015837534.png

curtisridenour_0-1677015891673.png

 

 

0 Likes

curtisridenour
Collaborator
Collaborator
Angle>0 is a more elegant solution.
0 Likes

mhiserZFHXS
Advisor
Advisor

@curtisridenour wrote:

see below and attached.

curtisridenour_0-1677015837534.png

 


You don't need the if-statement for the visibility parameter. It just needs to be:

 

Thickened slab angle > 0

0 Likes

ToanDN
Consultant
Consultant
Accepted solution

You don't need any extra parameter or formula.

 

ToanDN_1-1677017484527.png

 

ToanDN_2-1677017497379.png

 

 

 

 

 

 

drenL5229
Enthusiast
Enthusiast

@ToanDN thank you!

 

It looks obvious now, so basically put it outside the reference line so that the extrusion has always 4 sides and we don't have to work with triangles, which I did and it made everything more difficult to figure.

 

Thanks!

0 Likes

ToanDN
Consultant
Consultant

@drenL5229 wrote:

 

It looks obvious now, so basically put it outside the reference line so that the extrusion has always 4 sides and we don't have to work with triangles, which I did and it made everything more difficult to figure.

 


Correct.  This is the method I used in older Revit versions, when we didn't have the luxury of the Cut geometry parameter for Void.

0 Likes