RevitCity.com Logo

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

Welcome !

393 Users Online (15 Members): Show Users Online - Most ever was 3914 - Wed, Aug 26, 2026 at 4:53:14 AM

 

Forums

Forums >> Revit Building >> Technical Support >> Formula issue in a revit family

Search this ThreadSearch this Thread | Page 1 of 1 |

Mon, Sep 5, 2016 at 7:52:38 PM | Formula issue in a revit family

#1

marco87


active

Joined: Wed, Nov 26, 2014
0 Posts
No Rating


Hi All,

Thank you in advance for your help.

I'm making a family for a kitchen island bench, it has two footings one for each short side. They have the visibility parameters to show them when is necessary, for example if the bench is against the wall it needs just one footing on the opposite side of the wall. There is a panel which is between them and I need to control its length based on what footing I will show.

I have to satisfy four conditions:

A - Left Footing

B - Right Footing

C - Left and Right Footings

D - No Footings

I’m able to satisfy two or three of them but I can’t figure out how to resolve all of them.

The formula I made for A,B and D conditions is:

Panel Length = if(or(Left Footing, Right Footing), Bench Length-Footing Thickness, Bench Length)

The formula I made for C and D conditions is:

Panel Length = if(and(Left Footing, Right Footing), Bench Length-(2*Footing Thickness), Bench Length)

Is there someone that can help me to put these formulas together to get just one whole formula?

I have tried few times but I always bumped into mistakes like “comma not expected” or “Inconsistent Units”

Thank you,

Marco


This user is offline

 

Tue, Sep 6, 2016 at 7:16:31 AM | Formula issue in a revit family

#2

marmiketin1


active

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


You can have if statements within if statements. Try This

 

if(and(Left Footing, Right Footing), Bench Length - (2 * Footing Thickness), if(or(Left Footing, Right Footing), Bench Length - Footing Thickness, Bench Length))


This user is offline

 

Search this ThreadSearch this Thread | Page 1 of 1 |



Similar Threads

Thread/Thread Starter

Forum

Last Post

Replies

Create.NewFamilyInstance isn't displaying a new family on sheet

Community >> Newbies

Mon, May 9, 2011 at 1:06:22 PM

0

RevDev Studios - RevEx and RevXL - Spreadsheet plugins for Revit

Workflow & Implementation >> API & Third Party Apps

Tue, Feb 28, 2017 at 7:32:28 AM

0

Modelling terrain Revit imported from AutoCad

General Discussion >> Revit Project Management

Thu, Oct 20, 2011 at 10:56:40 AM

2

Revit 2016 Annotative Demo Tag Formula

Revit Building >> Technical Support

Tue, Apr 26, 2016 at 5:56:03 PM

9

New Website Launch of Free Revit Add-on Smart Browser

Workflow & Implementation >> API & Third Party Apps

Sun, Jun 3, 2012 at 5:37:46 AM

1

Site Stats

Members:

2188039

Objects:

23399

Forum Posts:

152455

Job Listings:

0

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.2464

Login

User Name:

Password:

Remember Me  

Forgot Password?

Search Forums

Advanced Search

Search Forums

Advanced Search


Clear Highlights


Clear Highlights