Donate Now Goal amount for this year: 2500 USD, Received: 1627 USD (65%)

Results 1 to 10 of 10
Like Tree3Likes
  • 1 Post By GMcDowellJr
  • 1 Post By GMcDowellJr
  • 1 Post By JeffH

Thread: ? Family help

  1. #1
    Junior Member lukemcgary's Avatar
    Join Date
    March 3, 2016
    Location
    North Carolina
    Posts
    12
    Current Local Time
    11:49 PM

    ? Family help

    if my width and depth are equal to or greater than 31" it should equal this....how do i write this so revit can understand. also what kind of formula does revit actually use and understand so i can get some lessons. Im not horrible in math i just haven't done any in years and need a huge refreshment on what im doing, i don't want to freeload i just need some assistance in understanding whats going on and what im doing wrong

  2. #2
    Forum Addict GMcDowellJr's Avatar
    Join Date
    December 21, 2010
    Location
    Phoenix, AZ
    Posts
    2,609
    Current Local Time
    08:49 PM
    if(and(not(Width>31),not(Depth>31)),THIS,ELSETHAT)

    There's a thread here that shows a lot/most/all of the math you can use in Revit. This isn't math though... it's a logical statement. Similar but different.
    lukemcgary likes this.

  3. #3
    Junior Member lukemcgary's Avatar
    Join Date
    March 3, 2016
    Location
    North Carolina
    Posts
    12
    Current Local Time
    11:49 PM
    thanks could you happen to point me in the direction of that thread or the name of it at least

  4. #4
    Forum Addict GMcDowellJr's Avatar
    Join Date
    December 21, 2010
    Location
    Phoenix, AZ
    Posts
    2,609
    Current Local Time
    08:49 PM
    It's a sticky in the tutorials section -- http://www.revitforum.org/tutorials-...day-usage.html
    lukemcgary likes this.

  5. #5
    Autodesk JeffH's Avatar
    Join Date
    December 13, 2010
    Location
    The Ivory Tower (Manchester NH)
    Posts
    771
    Current Local Time
    11:49 PM
    The Revit online help has a number of topics on formulas as well.

    help.autodesk.com/view/RVT/2017/ENU/?guid=GUID-BA812528-8000-44A5-B53F-137B3F642107
    Dave Jones likes this.

  6. #6
    Junior Member lukemcgary's Avatar
    Join Date
    March 3, 2016
    Location
    North Carolina
    Posts
    12
    Current Local Time
    11:49 PM
    I have been trying this with no results, the parameters were instance parameters but i then changed them to type and still ntn. i have attached a picture so that maybe this would help everyone better understand what im trying to do. i want the double vane visibility to be visible when the depth or width is 31" or more but not be if it is 30" and below. i have also looked at the links yall have provided me and am still confused? Family help-revit.png, this is definitely not my strong suit at all

  7. #7
    Forum Addict GMcDowellJr's Avatar
    Join Date
    December 21, 2010
    Location
    Phoenix, AZ
    Posts
    2,609
    Current Local Time
    08:49 PM
    Two things; you've got the formula referring to itself and to get a yes/no in the formula you need another formula -- I use 1=1 for yes, and 1=2 for no.

    if(and(not(Width>31),not(Depth>31)), 1=1 , 1=2)

  8. #8
    Senior Member
    Join Date
    August 19, 2011
    Location
    New Hampshire
    Posts
    503
    Current Local Time
    11:49 PM
    Quote Originally Posted by GMcDowellJr View Post
    Two things; you've got the formula referring to itself and to get a yes/no in the formula you need another formula -- I use 1=1 for yes, and 1=2 for no.

    if(and(not(Width>31),not(Depth>31)), 1=1 , 1=2)
    and(not(Width > 31), not(Depth > 31)) also works, as yes/no parameters don't need to be told to equal yes or no, just what condition to equal yes.

  9. #9
    Forum Addict GMcDowellJr's Avatar
    Join Date
    December 21, 2010
    Location
    Phoenix, AZ
    Posts
    2,609
    Current Local Time
    08:49 PM
    Quote Originally Posted by Andrew K View Post
    and(not(Width > 31), not(Depth > 31)) also works, as yes/no parameters don't need to be told to equal yes or no, just what condition to equal yes.
    Right. Good point. I didn't even notice that!

  10. #10
    Junior Member lukemcgary's Avatar
    Join Date
    March 3, 2016
    Location
    North Carolina
    Posts
    12
    Current Local Time
    11:49 PM
    seriously thank you all, Ive been at this one thing for 7 hrs already, also i had to change AND to Or to better suit our duct standers, now on to trying to implement gauge and joint sizes

Similar Threads

  1. Replies: 0
    Last Post: March 27th, 2016, 07:18 AM
  2. Replies: 0
    Last Post: March 22nd, 2016, 07:15 PM
  3. Replies: 0
    Last Post: February 4th, 2014, 10:45 PM
  4. Can't change family origin point, family loads into project as hidden lines
    By lukewallace1990 in forum Architecture - Family Creation
    Replies: 3
    Last Post: February 1st, 2013, 03:51 PM
  5. Replies: 16
    Last Post: April 26th, 2012, 09:16 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
  •