Forums
Forums >> Revit Building >> Technical Support >> yes/no formula
|
|
active
Joined: Mon, Mar 28, 2011
14 Posts No Rating |
Trying to find a formula for this situation....
AA, BB & CC are parameters
when CC is turned on, BB and AA turns on;
when BB is turned on, AA turns on and CC turns off;
when AA is turned on, BB and CC turns off.
|
This user is offline |
|
 |
|
active

Joined: Thu, Jan 24, 2008
144 Posts
 |
there are many ways easiest way I gues is;
select AA, in the properties go to, visible and click the box @ the end of the line.
ad parameter and call it AA and set it as a visibility .
do the same with BB & CC.
Whebn these 3 parameters are set go to the Family Types, under family types choose new and call it AA, make sure you check the box with AA and uncheck the boxes BB & CC. repeat this for BB & CC.
load the family in a project to see the results
(in the family you can check wich ellement shows by checking if it has a grey or black outerline)
|
This user is offline |
View Website
|
 |
active
Joined: Mon, Jul 30, 2012
107 Posts
 |
hi! not sure of what i am saying beacuse i am pretty new with revit! i think that your request creates internal conflicts because when CC is turned on it turns on AA wich then turns off CC.. so basically you cannot turn on CC..
what i would do is create three more variables. (on off switches) like this:
SwitchAA
SwitchBB
SwitchCC
AA
BB
CC
and would put these formulas for these:
SwitchAA: if (OR(SwitchBB , SwitchCC), 2<1,1<2 )
SwitchBB: if (OR(SwitchAA , SwitchCC), 2<1,1<2 )
SwitchCC: if (OR(SwitchAA , SwitchBB), 2<1,1<2 )
AA: if(OR(OR(SwitchAA, SwitchBB),SwitchCC),1<2,2<1)
BB: if(AND(OR (SwitchBB, SwitchCC), NOT SwitchAA) ,1<2,2<1)
CC: if(AND(AND(OR(SwitchCC, SwitchBB), NOT SwitchAA),NOT SwitchBB),1<2,2<1)
i did not test it so it might need a few modifications. hope you get what i mean. if you try to explain better what you are trying to achive it might be easier to help... 
regards
Igor
-----------------------------------
Check out my new Renderlist add-in to render multiple views in sequence overnight! Get it here and remember to leave some feedback http://www.revitcity.com/forums.php?action=viewthread&thread_id=28381 |
This user is offline |
|
 |
active
Joined: Mon, Jul 30, 2012
107 Posts
 |
just tried, it does not work. its a circular reference.. sorry
-----------------------------------
Check out my new Renderlist add-in to render multiple views in sequence overnight! Get it here and remember to leave some feedback http://www.revitcity.com/forums.php?action=viewthread&thread_id=28381 |
This user is offline |
|
 |
active
Joined: Mon, Jul 30, 2012
107 Posts
 |
here we go.. tested and works.. hope it is what you need! 
-----------------------------------
Check out my new Renderlist add-in to render multiple views in sequence overnight! Get it here and remember to leave some feedback http://www.revitcity.com/forums.php?action=viewthread&thread_id=28381 |
This user is offline |
|
 |
active
Joined: Mon, Mar 28, 2011
14 Posts No Rating |
@gebber: I already did that but wanted something which would be automatic like with formulas. Thanx for the reply.
@frifer: ur formula worked like a charm! thanks alot! 
Kind Regards,
Vidhi
|
This user is offline |
|
 |
active

Joined: Thu, Jan 24, 2008
144 Posts
 |
@ frifer nice formula,
Anyhow, what advantage does this give you?
Now the family contains calculations wich slow up the model and costs a lot of extra time, besides when a 3rd party has to work with it it takes a lot of time to figure out how this works.
This is why I try to keep it as basic and simple as I can.
I agree it's the most beautifull way to create it like frifer discribes.
|
This user is offline |
View Website
|
 |
active
Joined: Mon, Jul 30, 2012
107 Posts
 |
i would create it with a single parameter insted of the 6 yes/no boxes. i posted that as solution since it was the request.
so instead of having all the switch variables etc i would use a integer that can be a value between 1 and 3 and based on that change all the other variables.
it avoids having multiple checkboxes on at the same time while only one is actually changeing something because it has a higher priority.
so, if AA BB and CC are just some variables in the model and not the checkboxes:
Switch on number (is an integer between 1 and 3)
AA: if(Switch on number = 1, 2345 mm, 6541 mm)
BB: if(Switch on number = 2, 2645 mm, 1541 mm)
CC: if(Switch on number = 3, 345 mm, 641 mm)
in case of switches its even easier:
Switch: if(Switch on number = 1,1<2, 2<1)
its easy tu understand, to use, and to implement.
-----------------------------------
Check out my new Renderlist add-in to render multiple views in sequence overnight! Get it here and remember to leave some feedback http://www.revitcity.com/forums.php?action=viewthread&thread_id=28381 |
This user is offline |
|
 |
 |
Similar Threads |
Using schedule total in formula? |
Revit Building >> Technical Support
|
Fri, Apr 4, 2014 at 10:29:51 AM
|
9
|
One family parameter has formula one has none |
General Discussion >> Revit Project Management
|
Wed, Jun 25, 2014 at 1:05:55 PM
|
7
|
Parameter Formula |
Revit Building >> Technical Support
|
Fri, Mar 5, 2010 at 12:09:10 PM
|
6
|
need help with a formula for my calculated value |
Revit Building >> Technical Support
|
Thu, Jan 30, 2014 at 1:03:03 PM
|
2
|
Formula Help |
Revit Building >> Technical Support
|
Thu, Aug 10, 2006 at 9:34:16 AM
|
1
|
 |
|
Site Stats
Members: | 2109308 | Objects: | 23183 | Forum Posts: | 152300 | Job Listings: | 3 |
|