RevitCity.com Logo

Home  |  Forums  |  Downloads  |  Gallery  |  News & Articles  |  Resources  |  Jobs  |  FAQ  |  SearchSearch  |  Join  |  LoginLogin

Welcome !

150 Users Online (149 Members): Show Users Online - Most ever was 626 - Mon, Jan 12, 2015 at 2:00:17 PM

 

Forums

Forums >> Revit Building >> Technical Support >> yes/no formula

Search this ThreadSearch this Thread | Page 1 of 1 |

Fri, Aug 3, 2012 at 1:00:36 AM | yes/no formula

#1

vidhikholia


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

 

Fri, Aug 3, 2012 at 2:29:01 AM | yes/no formula

#2

gebber


active
gebber Avatar

Joined: Thu, Jan 24, 2008
144 Posts
5 Stars: 4 Votes


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

Fri, Aug 3, 2012 at 9:35:16 AM | yes/no formula

#3

frifer


active

Joined: Mon, Jul 30, 2012
107 Posts
5 Stars: 4 Votes


hi! not sure of what i am saying beacuse i am pretty new with revit! Smile 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... Smile

 

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 Shadey http://www.revitcity.com/forums.php?action=viewthread&thread_id=28381

This user is offline

 

Fri, Aug 3, 2012 at 9:38:41 AM | yes/no formula

#4

frifer


active

Joined: Mon, Jul 30, 2012
107 Posts
5 Stars: 4 Votes


just tried, it does not work. its a circular reference.. Sad sorry


-----------------------------------

Check out my new Renderlist add-in to render multiple views in sequence overnight! Get it here and remember to leave some feedback Shadey http://www.revitcity.com/forums.php?action=viewthread&thread_id=28381

This user is offline

 

Fri, Aug 3, 2012 at 9:43:59 AM | yes/no formula

#5

frifer


active

Joined: Mon, Jul 30, 2012
107 Posts
5 Stars: 4 Votes


here we go.. tested and works.. Smile hope it is what you need! Smile



Attached Images

109641_formula.JPG

-----------------------------------

Check out my new Renderlist add-in to render multiple views in sequence overnight! Get it here and remember to leave some feedback Shadey http://www.revitcity.com/forums.php?action=viewthread&thread_id=28381

This user is offline

 

Sun, Aug 5, 2012 at 6:21:09 PM | yes/no formula

#6

vidhikholia


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! Smile

Kind Regards,

Vidhi

 


This user is offline

 

Mon, Aug 6, 2012 at 4:02:28 AM | yes/no formula

#7

gebber


active
gebber Avatar

Joined: Thu, Jan 24, 2008
144 Posts
5 Stars: 4 Votes


@ 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

Mon, Aug 6, 2012 at 4:28:19 AM | yes/no formula

#8

frifer


active

Joined: Mon, Jul 30, 2012
107 Posts
5 Stars: 4 Votes


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 Shadey http://www.revitcity.com/forums.php?action=viewthread&thread_id=28381

This user is offline

 

Search this ThreadSearch this Thread | Page 1 of 1 |



Similar Threads

Thread/Thread Starter

Forum

Last Post

Replies

Using schedule total in formula?

Revit Building >> Technical Support

Fri, Apr 4, 2014 at 10:29:50 AM

9

One family parameter has formula one has none

General Discussion >> Revit Project Management

Wed, Jun 25, 2014 at 1:05:54 PM

7

Parameter Formula

Revit Building >> Technical Support

Fri, Mar 5, 2010 at 12:09:09 PM

6

need help with a formula for my calculated value

Revit Building >> Technical Support

Thu, Jan 30, 2014 at 1:03:02 PM

2

Formula Help

Revit Building >> Technical Support

Thu, Aug 10, 2006 at 9:34:15 AM

1

Site Stats

Members:

1990331

Objects:

22877

Forum Posts:

152180

Job Listings:

3

Sponsored Ads

Home | Forums | Downloads | Gallery | News & Articles | Resources | Jobs | Search | Advertise | About RevitCity.com | Link To Us | Site Map | Member List | Firm List | Contact Us

Copyright 2003-2010 Pierced Media LC, a design company. All Rights Reserved.

Page generation time: 1.2863

Login

User Name:

Password:

Remember Me  

Forgot Password?

Search Forums

Advanced Search

Search Forums

Advanced Search


Clear Highlights


Clear Highlights