Results 1 to 6 of 6

Thread: Performance of Formulas in Families

  1. #1
    AUGI Addict iru69's Avatar
    Join Date
    2004-10
    Location
    usa
    Posts
    1,591
    Login to Give a bone
    0

    Default Performance of Formulas in Families

    Is there any performance issues of using the results of a formula from one parameter in another formula parameter.

    Example:
    Parameter A: Parameter B - Parameter C
    Parameter B: Parameter D + Parameter E
    Parameter C: Parameter E - Parameter D
    Parameter D: 10 (example value)
    Parameter E: 20 (example value)

    I've always tried to make every formula non-dependent on the results of another formula, so in the case of parameter A, I'd typically write that formula as:
    Parameter A: (Parameter D + Parameter E) - (Parameter E - Parameter D)

    But I'm wondering if there's any reason to continue doing that from a performance standpoint. I've kept the example extremely simple, but the concern is that as the formulas are processed, when processing hits a formula parameter referencing another formula parameter that hasn't been calculated yet, it might interrupt the processing, skip over it until the results of the referenced formula parameter are calculated, and then loop back to process it - causing a performance penalty. Theoretically, these calcs shouldn't take more than a fraction of a second, but I'm wondering if anyone's noticed any real world implications to performance or other issues?

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

    Default Re: Performance of Formulas in Families

    Ive noticed real world implications on some families that have a LOT of formulas in them, and- where there isnt a benefit- i dont do it. That said, theres usually a benefit. The Armstrong Serpentina Ceiling Component Families ive built are the same way. Theyre all the same, just with different mathematical dimensions that are running off formulas with trig. But, i have them nested in to a Line Based family to array them. You change the type and they move realllllllly slow.

    But having a different family for each size is stupid. Im not here to serve Family Performance as the end goal, im here to do architecture.

    So i wont build an all in one door with 1200 parameters with formulas, but if the multiple conditions dependant on a value, like you have above, i use a parameter in a formula in a formula, etc.

  3. #3
    100 Club
    Join Date
    2007-03
    Posts
    147
    Login to Give a bone
    0

    Default Re: Performance of Formulas in Families

    Time to evaluate first the trade-off using formulas. It will really slow down your work.

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

    Default Re: Performance of Formulas in Families

    No way. ive got hundreds of families with tons of formulas. The ONLY ones that start to actually affect work, are the radial arrays, where families are nested four levels deep, and have formulas nested through all 4 levels.

    The rest of my families have tons of complex formulas, all relating and calculating based on one another, NO performance issues whatsoever. And we model way more and with way more detail than most places, based on those formulas.

  5. #5
    AUGI Addict iru69's Avatar
    Join Date
    2004-10
    Location
    usa
    Posts
    1,591
    Login to Give a bone
    0

    Default Re: Performance of Formulas in Families

    Quote Originally Posted by twiceroadsfool View Post
    So i wont build an all in one door with 1200 parameters with formulas, but if the multiple conditions dependant on a value, like you have above, i use a parameter in a formula in a formula, etc.
    Thanks Aaron! So in conclusion, at least for modest families, you haven't noticed any performance issues with including formula parameters nested within formula parameters, i.e. dependent formulas. Good to hear - I keep most of my "complex" families to no more than a couple dozen parameters, but some of my formulas get really long, and this would help ease the length.

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

    Default Re: Performance of Formulas in Families

    LOL, ive got some formulas that- when copied and pasted in to Word at 11 point font... Are 12 lines long.

    No worries.

    i find its much mroe critical how many times the formula is daisychained through levels of NESTED families. IE, the parametric Radial Arrays- 4 levels deep, if its a formulas with other parameters, and theyre all tied to the other 3 levels of families, they get reallllllll sloooooow.

Similar Threads

  1. 2014: Mathematical formulas in loadable families
    By Silleke in forum Revit Structure - Families
    Replies: 3
    Last Post: 2014-03-18, 06:58 AM
  2. Families and Formulas ---- help
    By j_starko in forum Revit Architecture - Families
    Replies: 9
    Last Post: 2010-11-03, 04:57 PM
  3. Using formulas but not in families, is it possible?
    By rtaube in forum Revit Architecture - General
    Replies: 1
    Last Post: 2010-10-22, 01:12 PM
  4. Array formulas in Parametric families - REVIT
    By Anthony Miguel in forum Revit Architecture - Families
    Replies: 2
    Last Post: 2007-07-09, 07:32 AM
  5. Formulas and Families
    By beegee in forum Revit Architecture - Families
    Replies: 0
    Last Post: 2004-07-22, 10:59 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
  •