See the top rated post in this thread. Click here

Results 1 to 6 of 6

Thread: Roof Drain Pipe Connector Sizing

  1. #1
    Member
    Join Date
    2012-08
    Posts
    23
    Login to Give a bone
    0

    Default Roof Drain Pipe Connector Sizing

    I’m trying to build some intelligence into a pipe connector for a roof drain family. I would like a parameter for Roof Area to control the Pipe Diameter parameter. I don’t know how to write a statement that defines a range of values, (Roof Area in this case), to assign to each Pipe Diameter.

    In broad terms, I need to create a statement that says, “If the Roof Area parameter is less than this value (Roof Area), but greater than this value, (Roof Area), assign this Pipe Diameter”. I have made a Shared Parameter for Roof Area. Would a conditional, if/than statement be better for this family, or do I need to build a Lookup Table? Any suggestions would be welcome.

  2. #2
    Active Member
    Join Date
    2016-02
    Location
    Madison, WI
    Posts
    61
    Login to Give a bone
    1

    Default Re: Roof Drain Pipe Connector Sizing

    It would look something like this. Just remember that the < does not include equal so you will have to go a value over the max or value under for min. So another way to write it would be if(and(not(....>250... That would mean equal to or less than 250.
    Boolean.PNG
    Boolean expression would be your best option as lookup tables do not work with ranges. They are looking for an exact match. Now you could have the Boolean define a value that is looked up in the lookup table.
    Last edited by nathan.chapman; 2016-01-13 at 03:01 PM.

  3. #3
    Member
    Join Date
    2012-08
    Posts
    23
    Login to Give a bone
    0

    Default Re: Roof Drain Pipe Connector Sizing

    Nathan;
    Thanks for your quick reply. I looked at your attachment, and I think I understand how it functions. What purpose does the 1/4" serve near the end of the statement? I'm trying to learn how to write conditional statements. Can you recommend any resource to learn more about them, and how to build them?

  4. #4
    Active Member
    Join Date
    2016-02
    Location
    Madison, WI
    Posts
    61
    Login to Give a bone
    1

    Default Re: Roof Drain Pipe Connector Sizing

    JKRevit
    The 1/4" at the end is what will be shown if nothing is found to be true in the equation. Its what is called the "if not" value. If everything is not true then give me the 1/4". I would make the value a crazy number so it will stand out if a odd value is entered into the roof area.
    As far as resources I really don't know of any off the top of my head. I remember having a class on them back in engineering school but i learned most by trial and error building Revit families over the years. Don't hesitate to ask questions here if your stuck.
    Last edited by nathan.chapman; 2016-01-15 at 01:51 PM.

  5. #5
    Member
    Join Date
    2012-08
    Posts
    23
    Login to Give a bone
    0

    Default Re: Roof Drain Pipe Connector Sizing

    Thanks Nathan!!

    I've completed my Boolean statement, and my pipe diameter parameter is changing in proportion to the Roof Area parameter. This is good news. This will work well for tagging a Roof Drain family built with these parameters. Because the Roof Area quantity will vary with each Roof Drain, I made the Roof Area parameter an Instance parameter. A Type Parameter won't serve my need in this case. I originally hoped to constrain the Pipe Diameter parameter with the Roof Area parameter. However, an error message tells me: Instance Parameters can't be used in Type Parameter formulas. The Diameter and Radius parameters for Pipe Connectors are always Type Parameters. Can you suggest a way to get around the Type/Instance conflict that would allow me to control the Pipe Diameter parameter with the Roof Area parameter?

  6. #6
    Active Member
    Join Date
    2016-02
    Location
    Madison, WI
    Posts
    61
    Login to Give a bone
    0

    Default Re: Roof Drain Pipe Connector Sizing

    The only way that you could get around this is to create your own parameter that would control the dfu/sfu on the connectors. I'm not sure if you schedule these but if you do then make sure its a shared parameter.

Similar Threads

  1. Pipe Flanges defined at the connector, not in the Pipe type
    By Wish List System in forum Revit MEP - Wish List
    Replies: 1
    Last Post: 2016-08-05, 02:41 PM
  2. Roof sloping to drain around multiple penetrations
    By mikeinsverige in forum Revit Architecture - General
    Replies: 6
    Last Post: 2011-05-17, 10:50 AM
  3. Roof Drain RFA to DWG
    By matthew.ozor in forum Revit Architecture - General
    Replies: 0
    Last Post: 2011-04-04, 05:42 PM
  4. Reducing Pipe Fitting Sizing Issue Based on Pipe Size
    By cdsuggs in forum Revit MEP - Families
    Replies: 0
    Last Post: 2010-07-22, 08:06 PM
  5. Family Needed: Roof Drain
    By Scott D Davis in forum Revit Architecture - Families
    Replies: 3
    Last Post: 2006-02-15, 04:52 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
  •