Yes/No Check Box

Yes/No Check Box

Anonymous
Not applicable
2,143 Views
4 Replies
Message 1 of 5

Yes/No Check Box

Anonymous
Not applicable

Hi All,

 

I wish to use a void in a revit family so that when i check a yes box it cuts and when i check no it does not.  I have found that its not possible to create a visibility parameter for a void so I am trying to create this void through a length perameter where the check box add on the thickness of the element im cutting (and cuts it) when i check yes when i check no the lengtt is zero ( and not cutting it).

 

Im hoping someone can tell me how to set up a formula which does somethink like:

 

If check is yes then select Lenght A (set to 15mm) if check box is No the do not a length A (15 is not set

 

or 

 

If check is yes then Lenght A is 15mm if check box is No then length A is 0mm?

 

Please can anyone assist me?

 

Thanks

 

Liam

0 Likes
Accepted solutions (1)
2,144 Views
4 Replies
Replies (4)
Message 2 of 5

Ilic.Andrej
Advisor
Advisor
Accepted solution

Its easy

 

if(CheckMe,15mm,1mm)

where "CheckMe" is the name of a yes/no parameter. No void or solid dimension can be 0.

 

Here is one of my old screencasts- the same approach.

 

 

 

 



Andrej Ilić

phonetical: ændreɪ ilich
MSc Arch

Autodesk Expert Elite Alumni

0 Likes
Message 3 of 5

barthbradley
Consultant
Consultant

If I understand correctly, you can't do what you want to do -- that is: have the void cut or not cut the host. You would need to model two conditions: one with the host cut and one without, and then use a Yes/No Parameter to control which one is visible.  

0 Likes
Message 4 of 5

ToanDN
Consultant
Consultant

Don;t set the length in the formula to 0, it only needs to be short enough to not cutting the solid.  So if you move the void 10 mm away from the solid, a 9 mm void will not cut it, but a 11 mm void will.

0 Likes
Message 5 of 5

barthbradley
Consultant
Consultant

@Anonymous: check this family out. It took a whole team of elite Reviteers working tirelessly for weeks on end to build this Alpha prototype.  What do you think?  Is it ready for Beta testing?   

 

 

0 Likes