Page 4 of 26 FirstFirst 1234567814 ... LastLast
Results 31 to 40 of 257
Like Tree72Likes

Thread: Revit Formulas for "everyday" usage

  1. #31
    Moderator
    "Mark Twain"
    mdradvies's Avatar
    Join Date
    December 16, 2010
    Location
    Boxtel, Netherlands
    Posts
    4,552
    Current Local Time
    07:35 PM
    Right, I was thinking in a complete opposite direction for this problem. Here's how you can handle this:

    - Go to Manage > Project Parameters > Add and Add a Shared Parameter.
    - Create a new SP, Integer, name it something like choose_foundation or something
    - Add the SP to Structural Foundations, make it a TYPE parameter
    - Add the SP to the project
    - Go to the Schedule, add the SP to the Schedule and add values to the different Footing Types, depending on which height column they use (1 for Default Thickness, and 2 for Foundation Thickness). Because this is a type parameter, it will be filled in for all instances (and new instances).
    - Create a Calculated Value with this formula: if(choose_foundation = 1, Default Thickness, Foundation Thickness). Now this column will show the thickness.
    - Apply this to your template so you never have to do it again...

  2. #32
    Junior Member
    Join Date
    April 12, 2011
    Posts
    6
    Current Local Time
    12:35 PM
    Quote Originally Posted by mdradvies View Post
    Right, I was thinking in a complete opposite direction for this problem. Here's how you can handle this:

    - Go to Manage > Project Parameters > Add and Add a Shared Parameter.
    - Create a new SP, Integer, name it something like choose_foundation or something
    - Add the SP to Structural Foundations, make it a TYPE parameter
    - Add the SP to the project
    - Go to the Schedule, add the SP to the Schedule and add values to the different Footing Types, depending on which height column they use (1 for Default Thickness, and 2 for Foundation Thickness). Because this is a type parameter, it will be filled in for all instances (and new instances).
    - Create a Calculated Value with this formula: if(choose_foundation = 1, Default Thickness, Foundation Thickness). Now this column will show the thickness.
    - Apply this to your template so you never have to do it again...
    That's a acceptable workaround, thank you very much

  3. #33
    Moderator
    "Mark Twain"
    mdradvies's Avatar
    Join Date
    December 16, 2010
    Location
    Boxtel, Netherlands
    Posts
    4,552
    Current Local Time
    07:35 PM
    No problem, I have this problem a lot when dealing with content from multiple sources. You would always get different parameters which you have to convert. A BIG reason to start creating everything for myself.
    Funny thing though: the schedule "warns" you when you add families with yet another parameter for the footing thickness: those won't calculate so you know there's something wrong.

  4. #34
    Forum Co-Founder Alfredo Medina's Avatar
    Join Date
    December 7, 2010
    Location
    Miami, FL, USA | info@planta1.com
    Posts
    1,925
    Current Local Time
    03:35 PM
    Quote Originally Posted by dzatto View Post
    Speechless. At this rate, I'll never get a POTM nomination. lol
    Well, Dan, you made it into the list of nominees for Best Posts of the Month of March 2011, with your post about "Best Practices for Modeling in Revit". Thanks for sharing!

    See the complete list of nominees here.

  5. #35
    Member ekkonap's Avatar
    Join Date
    May 23, 2011
    Location
    Netherlands
    Posts
    317
    Current Local Time
    09:35 PM

    save the planet, use less complicated formula's :-)

    To sort out the largest variable, how about -> =if(A>C, if(A>B, A, B), if(B>C, B, C)) ?
    It kind of becomes a shambles with 4 or more variables though. Use a matrix to keep your head on straight:


    A>D A>C A>B A
    B>D B>C B
    C>D C
    D

    =if(A>D, if(A>C, if(A>B, A, B), if(B>C, B, C)), if(B>D, if(B>C, B, C)), if(C>D, C, D))

    EDIT=if(A > D, if(A > C, if(A > B, A, B), if(B > C, B, C)), if(B > D, if(B > C, B, C), if(C > D, C, D)))

    On a side note, I was looking for a way to generate a random-ish value, and found a decent use for the abs function:

    Y=sin(x)-0,20*abs(sin(2*x))*abs(sin(x))/sin(x)

    Any (x) gives a Y between -1 and 1. Just have to make sure there is no interference between (x) and the period of the function. Usually works for larger and non-pi related values.

    I came up with it to make trees and such, got carried away, and still haven't actually made anything with it
    Last edited by ekkonap; May 23rd, 2011 at 07:36 PM.

  6. #36
    Administrator Munkholm's Avatar
    Join Date
    December 7, 2010
    Location
    Kingdom of Denmark
    Posts
    4,031
    Current Local Time
    09:35 PM
    Ekkonap - That is BRILLIANT! Maybe the planet have a future after all

    The Matrix approach is very slick - would have never thought of that. The random-ish abs formula is also pretty slick, but yah... not sure when and why to use it

    Hey, and welcome to the Forum BTW!

  7. #37
    Moderator
    "RFO 2012 Spelling Bee Champion"
    Alex Cunningham's Avatar
    Join Date
    December 8, 2010
    Location
    Northern California
    Posts
    2,935
    Current Local Time
    12:35 PM
    I am a formula n00b... what is a the ABS formula and what does it do?

  8. #38
    Member ekkonap's Avatar
    Join Date
    May 23, 2011
    Location
    Netherlands
    Posts
    317
    Current Local Time
    09:35 PM
    Converts negative values into positive values, and leaves positive values alone. Handy if you are trying to model a series of speedbumps from a sinus function, but not much else.

  9. #39
    Moderator
    "RFO 2012 Spelling Bee Champion"
    Alex Cunningham's Avatar
    Join Date
    December 8, 2010
    Location
    Northern California
    Posts
    2,935
    Current Local Time
    12:35 PM
    Just found a use for a "not(or(statment"

    not(or(Boxes Horizontal = 1))
    not(or(Boxes Horizontal = 0, or(Boxes Horizontal = 2, or(Boxes Horizontal = 3, or(Boxes Horizontal = 4)))))

    helping me make my detail boundry boxes more parametric.

    "not(and( statment" also work.
    Attached Files Attached Files

  10. #40
    Moderator
    "Mark Twain"
    mdradvies's Avatar
    Join Date
    December 16, 2010
    Location
    Boxtel, Netherlands
    Posts
    4,552
    Current Local Time
    07:35 PM
    NICE!!!!

Page 4 of 26 FirstFirst 1234567814 ... LastLast

LinkBacks (?)

  1. February 28th, 2012, 03:07 PM
  2. January 10th, 2012, 01:31 PM
  3. January 2nd, 2012, 06:57 PM
  4. December 2nd, 2011, 11:31 AM
  5. November 4th, 2011, 08:59 AM

Similar Threads

  1. Fórmulas de Revit para el "uso diario"
    By Munkholm in forum Foro Español
    Replies: 8
    Last Post: June 7th, 2011, 11:43 AM
  2. Slab slope discrepancy btw "Slope arrow" and "Define Slope"
    By jh75 in forum Structure - General Questions
    Replies: 3
    Last Post: May 6th, 2011, 08:39 PM
  3. Revit 2011 - "Black rendering" with Non-English Win XP
    By Munkholm in forum Tutorials, Tips & Tricks
    Replies: 0
    Last Post: January 10th, 2011, 08:15 AM
  4. Replies: 2
    Last Post: January 7th, 2011, 06:19 PM
  5. Replies: 2
    Last Post: January 7th, 2011, 06:19 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
  •