Results 1 to 6 of 6

Thread: inline calculator

  1. #1
    AUGI Addict MikeJarosz's Avatar
    Join Date
    2015-10
    Location
    New York NY
    Posts
    1,497
    Login to Give a bone
    0

    Default inline calculator

    I have been aware that Revit allows inline calculation for a while, but have never really exploited the possibilities. Wherever a number can be input, entering a formula like =3*3 will be interpreted by Revit as 9.

    My question is, what functions are available (such as square root) and what math symbols are used? Are parentheses allowed? I searched F1-help for "calculator" and got pages and pages about engineering calcs, but nothing about =2+2! I assume arithmetic symbols like +-*/ will work, which are pretty standard in modern software.

    For the math people out there I like the idea of entering =8/3 rather than 2.666666666666666666667. I'm assuming that Revit has some rigorous routines for arithmetic calculation in both decimal and binary that will result in more accuracy. Years ago I had a discussion with Irwin Jungweis about numbers, until it went over my head. But I learned that a repeating number is not neccessarily irrational. 2.6666666667 is rational, whereas 3.14159 is not. That's why I think 8/3 is a good input number.

  2. #2
    All AUGI, all the time CADastrophe's Avatar
    Join Date
    2012-01
    Location
    Site of the next CADaclysm
    Posts
    813
    Login to Give a bone
    0

    Default Re: inline calculator

    You can use parenthese in the inline formulas, and you can use functions like "=sqrt( x )".

    Using exponents is a little trickier, because of the units. You can't just input "=2' ^ 2 " because Revit will interprit that as an area (ft * ft = ft²) which is invalid for a linear input, hence an "Inconsistent Units" error.
    For an exponential value, inputting "=(2 ^ 2) * 1' " would yield the proper results.



    The decimal system we have is not perfect. I've always liked this little tidbit below:

    1/3 + 1/3 + 1/3 = 1
    ______ _
    1/3 = 0.3
    _ _ _ _ _ _ ___ _ _ _
    0.3 + 0.3 + 0.3 = 0.9, which does NOT equal 1
    Last edited by CADastrophe; 2012-11-09 at 05:39 PM.

  3. #3
    AUGI Addict MikeJarosz's Avatar
    Join Date
    2015-10
    Location
    New York NY
    Posts
    1,497
    Login to Give a bone
    0

    Default Re: inline calculator

    I notice parentheses require spaces. Your tidbit, to the best of my knowledge is a problem that exists in every number system. The repeating number 1/3 has its equivalent in the binary representation of 1/10. I think it was the Intel 386 processor that actually had a bug built into its circuits that could not calculate binary 1/10. They had to issue a massive recall.

    Thinking about it, not too many readers here will remember the 386....

  4. #4
    All AUGI, all the time CADastrophe's Avatar
    Join Date
    2012-01
    Location
    Site of the next CADaclysm
    Posts
    813
    Login to Give a bone
    0

    Default Re: inline calculator

    Quote Originally Posted by MikeJarosz View Post
    I notice parentheses require spaces.
    No, you don't actually need the spaces. I placed them in my examples because I'm just used to doing that to provide more clarity when typing out formulas in posts. Sorry.

  5. #5
    AUGI Addict jeffh's Avatar
    Join Date
    2002-09
    Location
    Manchester, NH
    Posts
    1,087
    Login to Give a bone
    0

    Default Re: inline calculator


  6. #6
    AUGI Addict MikeJarosz's Avatar
    Join Date
    2015-10
    Location
    New York NY
    Posts
    1,497
    Login to Give a bone
    0

    Default Re: inline calculator

    Jeff:

    Thanks! Just what I was looking for.

Similar Threads

  1. Cleanups for inline walls w/ different widths
    By Ed Jobe in forum ACA General
    Replies: 2
    Last Post: 2011-04-08, 04:37 PM
  2. inline filter family disappears
    By john.curschmann in forum Revit MEP - General
    Replies: 8
    Last Post: 2010-07-06, 08:37 PM
  3. How to maintain equal airflows between an inline fan?
    By aupy in forum Revit MEP - General
    Replies: 1
    Last Post: 2009-10-25, 02:48 AM
  4. iDrop package XML inline with HTML?
    By lcamara in forum Design Review - General
    Replies: 4
    Last Post: 2008-06-11, 02:36 AM

Posting Permissions

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