Results 1 to 2 of 2

Thread: Formula Property Definition PLEASE HELP

  1. #1
    Woo! Hoo! my 1st post
    Join Date
    2008-04
    Posts
    1
    Login to Give a bone
    0

    Default Formula Property Definition PLEASE HELP

    I am trying to get a formula to generate a room Number and can get it working using numbers for my room types but I would like it to work with text eg replace the “1” with Room, “2” with Lift, “1” with Stairwell but I cannot get it to work. Is this possible or am I just not doing something right.

    If [RoomType]="1" Then
    RESULT ="R[FloorLevel].[Room_ID]"
    ElseIf [RoomType]="2" Then
    RESULT = "L[FloorLevel].[Room_ID]"
    ElseIf [RoomType]="3"Then
    RESULT = "S[FloorLevel].[Room_ID]"
    Else
    RESULT ="SD[FloorLevel].[Room_ID]"
    End If

  2. #2
    ACA/AMEP Community Chair stelthorst's Avatar
    Join Date
    2003-10
    Location
    San Francisco CA
    Posts
    1,190
    Login to Give a bone
    0

    Default Re: Formula Property Definition PLEASE HELP

    Hi douglas,

    Try putting the RoomType in quotes.

    If "[RoomType]" = "1" Then
    RESULT = "R[FloorLevel].[Room_ID]"
    ElseIf "[RoomType]" = "2" Then
    RESULT = "L[FloorLevel].[Room_ID]"
    ElseIf "[RoomType]" = "3" Then
    RESULT = "S[FloorLevel].[Room_ID]"
    Else
    RESULT = "SD[FloorLevel][Room_ID]"
    End If

    It worked for me when I did it.

    Hope this helps,
    Scott Telthorst
    Quality Control Manager
    Helix Electric, Inc.
    www.helixelectric.com

    Some see the glass as half full, others as half empty. As an engineer I see the glass as twice as big as it needs to be. ~Unknown~

Similar Threads

  1. Property Set Definition: Formula Def for ACAD OBJs
    By freedomonek in forum Style Management
    Replies: 0
    Last Post: 2010-02-26, 06:00 PM
  2. formula function in property set definition
    By sam_ctlim in forum AMEP General
    Replies: 4
    Last Post: 2009-03-05, 11:07 PM
  3. Formula Property Definition
    By jgardner.79905 in forum VBA/COM Interop
    Replies: 3
    Last Post: 2006-06-13, 12:58 PM
  4. Problem with Formula Property Definition
    By mflure.80520 in forum Style Management
    Replies: 10
    Last Post: 2005-08-18, 10:39 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
  •