RevitCity.com Logo

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

Welcome !

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

 

Forums

Forums >> Revit Building >> Technical Support >> IF STATEMENTS

Search this ThreadSearch this Thread | Page 1 of 1 |

Fri, Nov 20, 2015 at 12:44:14 AM | IF STATEMENTS

#1

VonBraun


active

Joined: Mon, Jun 10, 2013
40 Posts
No Rating


Hi

I'm trying to write an if statement as part of a yes/no parameter in a family. I have two instance linear dimensions, and when the yes/no statement is ticked on, I want those two instance parameters to be equal. I thought this was possible but I'm having trouble with the syntax of writing the formula. Can someone write it out for me? Call the two instance parameters A and B for simplicity

Thanks


This user is offline

 

Fri, Nov 20, 2015 at 8:12:32 AM | IF STATEMENTS

#2

WWHub


site moderator|||

Joined: Tue, May 16, 2006
13079 Posts
3.5 Stars: 389 Votes


Conditional statement sytax is clearly defined in your HELP - http://help.autodesk.com/view/RVT/2015/ENU/?guid=GUID-A0FA7A2C-9C1D-40F3-A808-73CD0A4A3F20

If you don't see what you want to do, you can't do it.


This user is offline

 

Tue, Nov 24, 2015 at 2:43:46 PM | IF STATEMENTS

#3

VonBraun


active

Joined: Mon, Jun 10, 2013
40 Posts
No Rating


First place I looked thanks, because I knew you were going to come on here and say that!

WWHub, I will no stop posting here specifically because of you.


This user is offline

 

Tue, Nov 24, 2015 at 3:16:37 PM | IF STATEMENTS

#4

WWHub


site moderator|||

Joined: Tue, May 16, 2006
13079 Posts
3.5 Stars: 389 Votes


Obviously you don't read the posts or the HELP.

The help clearly tells you WHAT YOU CAN DO WITH CONDITIONAL STATEMENTS  !!!!

Perhaps if you had shown us what you were writing we could point out your error but you want us to do all your work. 

Good Bye!


This user is offline

 

Wed, Dec 2, 2015 at 7:42:56 AM | IF STATEMENTS

#5

marmiketin1


active

Joined: Wed, Aug 19, 2015
0 Posts
4.5 Stars: 10 Votes


I have not done anything in revit with conditional logic but I think you would first need a dimension parameter for the entire length for a reference. then a parameter named HALFLENGTH that pulls the value of half of that overall length dimension and then you would set A,B to equal HALFLENGTH when Visablitly is on.


This user is offline

 

Wed, Dec 2, 2015 at 7:54:51 AM | IF STATEMENTS

#6

marmiketin1


active

Joined: Wed, Aug 19, 2015
0 Posts
4.5 Stars: 10 Votes


I think this is how the statement would be.

We will call your yes/no parameter VIS and use HALFLENGTH from my previous post.

 

=IF (VIS, (A=HALFLENGTH, B=HALFLENGTH), (A, B))


This user is offline

 

Wed, Dec 2, 2015 at 9:11:10 AM | IF STATEMENTS

#7

WWHub


site moderator|||

Joined: Tue, May 16, 2006
13079 Posts
3.5 Stars: 389 Votes


marmik,

You should try this out in a simple generic family.  Look again at your syntax according to the HELP I pointed out earlier.


This user is offline

 

Wed, Dec 2, 2015 at 9:32:47 AM | IF STATEMENTS

#8

marmiketin1


active

Joined: Wed, Aug 19, 2015
0 Posts
4.5 Stars: 10 Votes


I did look at the help you had posted and used IF (<condition>, <result-if-true>, <result-if-false>Winking to make my statement. I currently am out of office and dont have acces to revit so i cannot try it. The only though i have is that maybe you cannot assign multiple values as results the way I am showing it.


This user is offline

 

Wed, Dec 2, 2015 at 9:39:01 AM | IF STATEMENTS

#9

marmiketin1


active

Joined: Wed, Aug 19, 2015
0 Posts
4.5 Stars: 10 Votes


that smiley was suppossed to be a ) as it was copy pasted. and sorry for the change in font as it switched when copy pasted.


This user is offline

 

Wed, Dec 2, 2015 at 10:03:33 AM | IF STATEMENTS

#10

WWHub


site moderator|||

Joined: Tue, May 16, 2006
13079 Posts
3.5 Stars: 389 Votes


Look again when you have time.  Your are setting a value for a variable.

<Variable> you write"...=IF (VIS, (A=HALFLENGTH, B=HALFLENGTH), (A, B))"  This does not conform.

IF (<condition>, <result-if-true>, <result-if-false>  )  How can <Variable> = (A=Halflength)???? 

Must be something like A =If(VIS,HALFLENGTH, <....BUT WHAT GOES HERE?....>Winking

You have to figure out how to get the second , if false, condition.  If you can't do the correct syntax, then you can't do this.

 

Sorry for the larger case ... came in when I copied your post.


This user is offline

 

Wed, Dec 2, 2015 at 10:14:49 AM | IF STATEMENTS

#11

marmiketin1


active

Joined: Wed, Aug 19, 2015
0 Posts
4.5 Stars: 10 Votes


I see what you mean with setting my value for a variable. In your post in the "BUT WHAT GOES HERE?" part, that would be something that VonBraun would have to decide on I guess as he did not provide us with and general values originally. Hopefully he is able to figure out what he is trying to do with what we have discussed.


This user is offline

 

Wed, Dec 2, 2015 at 10:21:14 AM | IF STATEMENTS

#12

WWHub


site moderator|||

Joined: Tue, May 16, 2006
13079 Posts
3.5 Stars: 389 Votes


It would have been better if the original poster had "shown his work" because there is no answer otherwise.

Well thought out and asked questions are great but some posters just want someone else to do their work.


This user is offline

 

Search this ThreadSearch this Thread | Page 1 of 1 |



Similar Threads

Thread/Thread Starter

Forum

Last Post

Replies

Conditional statements in families.

General Discussion >> Wishlist

Wed, May 14, 2008 at 4:27:34 PM

6

If statements

Revit Building >> Technical Support

Tue, Feb 12, 2013 at 5:26:06 PM

3

IF statements (fields and filters within quantities)

Revit Building >> Technical Support

Fri, Jan 22, 2010 at 8:14:07 AM

2

Spreadsheet Math and "IF" Statements

Community >> Newbies

Mon, Jul 1, 2013 at 2:22:08 PM

1

Revit 10?

Revit Building >> Technical Support

Tue, Jan 23, 2007 at 2:19:21 PM

1

Site Stats

Members:

1989610

Objects:

22877

Forum Posts:

152179

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: 0.2550

Login

User Name:

Password:

Remember Me  

Forgot Password?

Search Forums

Advanced Search

Search Forums

Advanced Search


Clear Highlights


Clear Highlights