Forums
Forums >> Revit Building >> Technical Support >> Yes/No Parameters
|
|
active
Joined: Wed, Nov 14, 2007
42 Posts No Rating |
How can I make a yes/no parameter so that when it is on, another yes/no parameter turns off? I was thinking of using a conditional statement (such as if...), but I cannot make it work. Please help if you have done this before or have any ideas.Thanks.
|
This user is offline |
|
|
|
site moderator|||
Joined: Tue, May 16, 2006
13079 Posts
|
For this to work, one parameter would have to exist and be set before the other and since there is no sequencing that I know of, I don't think there is any way you could do this. BUT ... you can use types in your families where you preset A not B or B not A.....
|
This user is offline |
|
|
active
Joined: Sat, Feb 4, 2006
425 Posts
|
If I understand you, you want to be able to check on visibility check box and have another turn off? You can do this by making one not equal the other in the formula area. For example one I used on a title block recently: ________________________________________________________________ Parameter Value Formula Minnesota Reg # ###### = Wisconsin Reg# ###### = not (Minnesota Reg #) ________________________________________________________________ This way if I uncheck Wisconsin, Minneosta automatically turns on and if I check Wisconsin the Minnesota turns off. HTH Brett
-----------------------------------
"You cannot escape the responsibility of tomorrow by evading it today. " ~ Abraham Lincoln |
This user is offline |
|
|
site moderator|||
Joined: Tue, May 16, 2006
13079 Posts
|
Wow brettgoodchild - I gotta try that one.
|
This user is offline |
|
|
active
Joined: Sat, Feb 4, 2006
425 Posts
|
Hope it works out for you as I use it a lot!
-----------------------------------
"You cannot escape the responsibility of tomorrow by evading it today. " ~ Abraham Lincoln |
This user is offline |
|
|
active
Joined: Mon, Aug 26, 2013
1 Posts No Rating |
brettgoodchild-
This is great, but I'm curious if it's possible to do this with three options?
Here's the scenerio:
I have three visibility parameters created (justify right, justify left, centered), if one is checked the other two need to deselect.
So I set the first (Justify Right) to =not(and(or(Justify Left, Centered)))
which works perfectly. If either Justify Left or Centered is checked it is deselected.
Now the problem is getting the other two to cooperate.
My first inclination was to write another similar formula for Justify Left =not(and(or(Justify Right, Centered))).
I receive a circular error script.
My next inclination was to simply write Justify Left=not(Centered), which Revit accepts, but then Justify Right is lost in the loop.
Any ideas???
Thank you in advance!!
|
This user is offline |
|
|
active
Joined: Mon, Aug 4, 2008
153 Posts
|
Hi Matt,
Here is my way to work around it.
Using integers and Y/N combination, please see my door schedule and open any door family in that thread to see the formula.
And go to door schedule, change the value for "Door Type", you will see the changes for "(2) DOOR TYPE", also it controls the visibilities on door panels.
Here is the thread, http://www.revitcity.com/downloads.php?action=view&object_id=11969
Hope that may provide some ideas.
|
This user is offline |
|
|
active
Joined: Mon, Mar 15, 2010
199 Posts
|
"
brettgoodchild-
This is great, but I'm curious if it's possible to do this with three options?
Here's the scenerio:
I have three visibility parameters created (justify right, justify left, centered), if one is checked the other two need to deselect.
So I set the first (Justify Right) to =not(and(or(Justify Left, Centered)))
which works perfectly. If either Justify Left or Centered is checked it is deselected.
Now the problem is getting the other two to cooperate.
My first inclination was to write another similar formula for Justify Left =not(and(or(Justify Right, Centered))).
I receive a circular error script.
My next inclination was to simply write Justify Left=not(Centered), which Revit accepts, but then Justify Right is lost in the loop.
Any ideas???
Thank you in advance!!
"
make one more parameter of types (ex: 1=left, 2=right, 3=center..)
and give formulas at the rest..like
left=type=1
right=type=2
center=type=3
then you can change all parameters just with type parameter.
-----------------------------------
want more?
You can get more tips at Enjoy Revit |
This user is offline |
View Website
|
|
|
Similar Threads |
Mystery parameters - shared? |
Community >> Newbies
|
Tue, Nov 10, 2015 at 7:06:20 AM
|
1
|
Titleblock Parameters [ 1 2 ] |
Revit Building >> Technical Support
|
Thu, Mar 13, 2014 at 4:57:53 PM
|
17
|
Instance Parameters in titleblock not linking |
Revit Building >> Technical Support
|
Wed, Dec 28, 2011 at 10:31:23 AM
|
12
|
Shared or Project Parameters? |
Revit Structure >> Technical Support
|
Tue, Jan 19, 2010 at 7:01:11 PM
|
10
|
Shared Parameters - Schedules multiple parameters one column? |
Revit Structure >> Technical Support
|
Thu, Oct 4, 2012 at 7:10:20 AM
|
7
|
|
|
Site Stats
Members: | 1990951 | Objects: | 22877 | Forum Posts: | 152184 | Job Listings: | 3 |
|