Results 1 to 2 of 2

Thread: If....Then....Else statement in Property Set Definition Help?

  1. #1
    100 Club jgardner.79905's Avatar
    Join Date
    2004-12
    Posts
    150

    Angry If....Then....Else statement in Property Set Definition Help?

    I am defining a tag the has two manual definitions, "Phase" & "Elevation", and am trying to develop a third formula definition that looks something like this:

    If [Phase]= Null Then
    RESULT = [Elevation]
    Else
    RESULT = [Phase]|[Elevation]

    For some reason I am having trouble getting it to work. I would like the definition to report just the "Elevation" definition value if the "Phase" value is nill. However, if both definitions have values I would like the result to be ("Phase" + "|" + "Elevation"). Can anyone help.

    Just as a side note, if it matters, I would like this to work no matter if the user places letters or numbers in the definitions.

    Thanks
    ~Jason

  2. #2
    Member martin.schmid's Avatar
    Join Date
    2005-12
    Posts
    45

    Default Re: If....Then....Else statement in Property Set Definition Help?

    If Len(Trim("[Phase]"))=0 then
    RESULT = "[Elevation]"
    else
    RESULT = "[Phase]|[Elevation]"
    end if
    Martin Schmid, P.E.
    Revit MEP Analysis Product Manager

Similar Threads

  1. Blocks Property Set Definition
    By tha in forum ACA General
    Replies: 3
    Last Post: 2008-01-28, 06:24 PM
  2. Formula Property Definition
    By jgardner.79905 in forum VBA/COM Interop
    Replies: 3
    Last Post: 2006-06-13, 12:58 PM
  3. Door Tag and Property Set Definition
    By jbayne in forum ACA/AMEP Styles Library
    Replies: 1
    Last Post: 2006-06-01, 11:46 AM
  4. Replies: 0
    Last Post: 2005-02-09, 08:08 PM
  5. Formula Property Definition
    By arcadia_x27 in forum ACA General
    Replies: 1
    Last Post: 2004-09-10, 06:26 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
  •