Results 1 to 8 of 8

Thread: parameter value validation

  1. #1
    All AUGI, all the time
    Join Date
    2006-08
    Posts
    636
    Login to Give a bone
    0

    Default parameter value validation

    just wonder if there're good methods or workarounds for parameter value validation because inappropriate value(either default or user input) may "destroy" that family as user may play around w/ different values.

    besides simple validation like value range, how to handle validation whose value is based on conditional statement?

    well, i don't know if Revit family API can handle this? but some kind of macro ability within Revit family editor will be great help.

  2. #2
    AUGI Addict truevis's Avatar
    Join Date
    2004-07
    Location
    Massachusetts, USA
    Posts
    1,191
    Login to Give a bone
    0

    Default Re: parameter value validation

    It depends upon how robust you want to make the family.

    You can, for example, make a parameter for User Depth and make Depth = if (User Depth < 2, 2, User Depth) for a depth that cannot be less then 2.

  3. #3
    Certifiable AUGI Addict Dimitri Harvalias's Avatar
    Join Date
    2015-12
    Location
    Vancouver, BC Canada
    Posts
    3,753
    Login to Give a bone
    0

    Default Re: parameter value validation

    Validating data is one thing as Truevis describes. Unfortunately there is no way Revit can provide feedback about inappropriate input or prompt the user for appropriate input. So even if the parameter value is corrected by the conditional the user really has no way of knowing that the value they entered is not acceptable.

  4. #4
    AUGI Addict truevis's Avatar
    Join Date
    2004-07
    Location
    Massachusetts, USA
    Posts
    1,191
    Login to Give a bone
    0

    Default Re: parameter value validation

    Quote Originally Posted by Dimitri Harvalias View Post
    ... even if the parameter value is corrected by the conditional the user really has no way of knowing that the value they entered is not acceptable.
    I suppose that the overachieving RFA maker could make a big red X of model lines that becomes visible when any parameters are wrong.

  5. #5
    Certifiable AUGI Addict Dimitri Harvalias's Avatar
    Join Date
    2015-12
    Location
    Vancouver, BC Canada
    Posts
    3,753
    Login to Give a bone
    0

    Default Re: parameter value validation

    One man's overachiever is another man's 'thorough dude'
    Good suggestion.
    My concern about incorrect values has more to do with scheduled values rather than parameters controllinig model geometry.

  6. #6
    AUGI Addict truevis's Avatar
    Join Date
    2004-07
    Location
    Massachusetts, USA
    Posts
    1,191
    Login to Give a bone
    0

    Default Re: parameter value validation

    Quote Originally Posted by Dimitri Harvalias View Post
    ...My concern about incorrect values has more to do with scheduled values rather than parameters controllinig model geometry.
    Couldn't we make a calculated value in a schedule equal
    if good
    if bad
    or something?

    Those are Arial font characters.

    if (User Depth < 2, №, ☺)
    Last edited by truevis; 2009-10-13 at 02:46 AM.

  7. #7
    All AUGI, all the time JoelLondenberg's Avatar
    Join Date
    2015-10
    Posts
    508
    Login to Give a bone
    0

    Default Re: parameter value validation

    Quote Originally Posted by truevis View Post
    I suppose that the overachieving RFA maker could make a big red X of model lines that becomes visible when any parameters are wrong.
    We have done something similar for some of the MEP elements. For instance - a single air grille size will have an appropriate range of air flows. For each size we used a parameter that compares the "Flow" to the "Min Flow" and "Max Flow". If "Flow" is outside that given range shows a big no smoking sign (you know the circle with the diagonal slash) in plan view. It's made with invisible lines so they won't print, just feedback for the user.

  8. #8
    Certifiable AUGI Addict Dimitri Harvalias's Avatar
    Join Date
    2015-12
    Location
    Vancouver, BC Canada
    Posts
    3,753
    Login to Give a bone
    0

    Default Re: parameter value validation

    Good ideas gents. I'll have to remember that one.

Similar Threads

  1. pb validation inventor 2011
    By rpapanicola in forum Inventor - General
    Replies: 0
    Last Post: 2010-07-28, 07:12 PM
  2. Room validation
    By clog boy in forum Revit Architecture - General
    Replies: 1
    Last Post: 2010-01-20, 01:09 PM
  3. Attribute Data Validation
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2008-06-11, 11:15 AM
  4. DWG Validation
    By raj_thapar2003 in forum VBA/COM Interop
    Replies: 5
    Last Post: 2005-08-04, 02:37 PM
  5. Signature Validation Options
    By djahnke in forum AutoCAD General
    Replies: 1
    Last Post: 2005-04-01, 12:07 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
  •