See the top rated post in this thread. Click here

Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Revit 2010 / 2011 - Family - Change Formula by Type

  1. #1
    I could stop if I wanted to
    Join Date
    2007-01
    Posts
    466
    Login to Give a bone
    0

    Default Revit 2010 / 2011 - Family - Change Formula by Type

    Hi all...

    So I have a family with a Formula Parameter. For simplicity sake let's say it's

    Area / 25

    Is it possible to change the Formula by Type?

    For example:

    Type A, I want Area / 25
    Type B, I want Area * 100
    Type C, I want (Area / 3) + 2
    (never mind that these formulas don't make sense in any practical application. They're just for illustration)

    Now, I know I can do this with a nested conditional statement...

    IF(Type = A, Area / 25, IF(Type = B, Area * 100, IF(Type = C, Area / 3 +2, 0)))
    But... I may have 30 different types. The conditional statement is guaranteed to get very long, and very complex. It would be difficult, if not impossible, to add a new type. Furthermore, Type D might be a conditional in and of itself.

    Ideally, I would like a Type_Formula parameter, that is an expression of the desired formula. Then as the type changes, the actual formula changes too.

    Does anyone know if this is possible?

    Thank you,

  2. #2
    Login to Give a bone
    1

    Default Re: Revit 2010 / 2011 - Family - Change Formula by Type

    Hi there, to my knowledge there is no way you can do this other than the way you indicated...depending on your application, you might be able to creatively use nested families to get what you want, but I'm not sure that is any better of a solution or would even work in your situation.

  3. #3
    I could stop if I wanted to
    Join Date
    2007-01
    Posts
    466
    Login to Give a bone
    0

    Default Re: Revit 2010 / 2011 - Family - Change Formula by Type

    Quote Originally Posted by josh.made4worship View Post
    nested families.
    YES! I think I can make this work.

    Thanks for the point in the right direction.

  4. #4
    I could stop if I wanted to
    Join Date
    2007-01
    Posts
    466
    Login to Give a bone
    0

    Default Re: Revit 2010 / 2011 - Family - Change Formula by Type

    Hrm... So I was really excited to try this as a nested family. And it works!... Sort of.

    I can pass a number from the host family to the nest family, and then run a calculation in the nested family. So that works great... But...

    I can't get the result from the calculation back up to the host family. So I can't schedule the values, and get a grand total.

    Then I thought, Aha! Shared Parameters will save the day!


    But... I can't access shared parameters in Generic Annotations. And I can't put labels in regular families. So I'm stuck... grrrrr

  5. #5
    Certifiable AUGI Addict twiceroadsfool's Avatar
    Join Date
    2006-01
    Location
    ---
    Posts
    4,516
    Login to Give a bone
    0

    Default Re: Revit 2010 / 2011 - Family - Change Formula by Type

    The host family has to basically be nothing more than a carrier, you have to schedule the nested families, to do what youre trying to do.

  6. #6
    I could stop if I wanted to
    Join Date
    2007-01
    Posts
    466
    Login to Give a bone
    0

    Default Re: Revit 2010 / 2011 - Family - Change Formula by Type

    Right. I can share the nested families. And then schedule each nested family. But I may have 10 or more nested families. I would like to schedule all the nested families together, and come up with a grand total.

    And to my knowledge, I can't make a multi-category schedule for note blocks.

  7. #7
    Certifiable AUGI Addict twiceroadsfool's Avatar
    Join Date
    2006-01
    Location
    ---
    Posts
    4,516
    Login to Give a bone
    0

    Default Re: Revit 2010 / 2011 - Family - Change Formula by Type

    For instance.

    If i wanted to calculate, say... Occupants per door, based on varying calculations of code, i could have nested families in the "door" with different formulas in the different Code families. The different code families all have an instance parameter for door number, which is Linked to the Door number in the door family. So when i schedule the shared nested Code family, there will be once for each door placed, with the caluclations ive asked it for as shared parameters. its only going to schedule the ones that are in use, selected by the Family Type parameter in the door family. So you alter your "selection" and it uses that one. It doesnt matter how many variations there are.

    Our door panels and frames 9and many other peoples) work the same way.

    For note blocks.... Im not sure you can do it. How about you tell us what youre trying to actually achieve instead of the hypothetical? Then we wont send you running at the wrong tree.

  8. #8
    I could stop if I wanted to
    Join Date
    2007-01
    Posts
    466
    Login to Give a bone
    0

    Default Re: Revit 2010 / 2011 - Family - Change Formula by Type

    Good question, Aaron.

    Wasn't trying to be cryptic. Just looking for the individual tools to make this work.

    My goal is similar to this thread:
    LINK

    In a nutshell, I'm trying to find a clean, simple method of calculating Required Plumbing Fixtures, per IBC. I would like to type in my occupant load, into a Generic Annotation family. Set the Use group as a Type setting. And then have Revit run the calculation for required plumbing fixtures, per IBC.

    It's funny Aaron, you and I have discussed calculating plumbing fixtures as area plans:
    LINK

    But I was never able to overcome the issue of having multiple discrete business areas on the same floor. As you know, the formula for Business does not scale in an additive manner.

    ---

    So... I'm happy to share what I've started, in the hopes of further development. Note, it looks like poop right now, and it only has two use groups, and the formulas are not correct per code. I'll fix all that once I get the mechanics worked out.

    But there are nested families that have a different formula for each use group.

    For the most part, this will work... Except, at the end of the day, I want to be able to add the grand total of all required fixtures, across all Use Groups. This last step is where I'm getting stuck.

    I can't make a Type setting change the formula. (as far as I know), which is why it's nested.
    I can't have the nested family push data back to the Host family.
    I can't run a schedule of each unique nested family.

    Anyway, I would really appreciate your help.

    Cheers,

    Bryan
    Attached Files Attached Files

  9. #9
    Certifiable AUGI Addict twiceroadsfool's Avatar
    Join Date
    2006-01
    Location
    ---
    Posts
    4,516
    Login to Give a bone
    0

    Default Re: Revit 2010 / 2011 - Family - Change Formula by Type

    Quote Originally Posted by saeborne View Post
    I can't run a schedule of each unique nested family.

    Cheers,

    Bryan
    Why not? My Door Panels and Door Frames are all Shared and Nested, and i can schedule every one of them. Maybe use an actual Family instead of the Generic Annotations, and i think itll cure up the entire problem.

    If i wasnt so slammed on a deadline right now, id try to whip it up.

  10. #10
    I could stop if I wanted to
    Join Date
    2007-01
    Posts
    466
    Login to Give a bone
    0

    Default Re: Revit 2010 / 2011 - Family - Change Formula by Type

    Right... I can schedule a nested, shared, generic annotation. But specifically, here's where I'm running into trouble.

    1 Host family, has 10 different nested families, (actual different families, not types of the same family. They are different families so each can have a unique formula to calculate the OCC_LOAD.)

    I'm having trouble scheduling each of the 10 different nested families, in the same schedule, to get a grand total.

    If you can figure it out, you will be my personal hero, and I'll make a little shrine in my apartment in your honor. It will have candles and little velvet curtains. It will be sa-wheeet!

Page 1 of 2 12 LastLast

Similar Threads

  1. The ability to use paramter type 'NumberOfPoles" in family formula
    By Wish List System in forum Revit MEP - Wish List
    Replies: 0
    Last Post: 2012-02-29, 05:15 PM
  2. Using elevation in family type formula
    By adonkle in forum Revit MEP - General
    Replies: 1
    Last Post: 2011-12-21, 07:36 AM
  3. Duplicate a family type 2011
    By adeuley in forum Revit - API
    Replies: 0
    Last Post: 2011-06-02, 06:00 PM
  4. 2010 - What happened to Change Type?
    By patricks in forum Revit Architecture - General
    Replies: 11
    Last Post: 2009-05-15, 09:54 AM
  5. Family Type Formula
    By jeff.richards in forum Revit Architecture - Families
    Replies: 5
    Last Post: 2007-11-01, 11:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •