Results 1 to 3 of 3

Thread: ABS2007 Property Set Formula Help

  1. #1
    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 Property Set Formula Help

    I have a property set (Let's call it PS3) that combines two other property sets (PS1 and PS2).

    Currently 'None' is an option in both PS1 and PS2. If both property sets have none selected my PS3 now says "None None". What I want to do is look at PS1 and PS2 and if either one of them say 'None' then make PS3 = 'None. My problem is I don't know the code very well. What I want is something like:

    If PS1 = "None"
    Then RESULT = "None"

    ElseIf PS2 = "None"
    Then RESULT = "None"

    RESULT = PS1 PS2

    Please excuse my ignorance on this issue but I'm not sure how to write the formula to achieve the desired results

    Thanks in advance for all of your help,
    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~

  2. #2
    Super Moderator dkoch's Avatar
    Join Date
    2003-03
    Location
    Philadelphia, PA
    Posts
    2,392
    Login to Give a bone
    0

    Default Re: ABS2007 Property Set Formula Help

    Quote Originally Posted by stelthorst
    I have a property set (Let's call it PS3) that combines two other property sets (PS1 and PS2).

    Currently 'None' is an option in both PS1 and PS2. If both property sets have none selected my PS3 now says "None None". What I want to do is look at PS1 and PS2 and if either one of them say 'None' then make PS3 = 'None. My problem is I don't know the code very well. What I want is something like:

    If PS1 = "None"
    Then RESULT = "None"

    ElseIf PS2 = "None"
    Then RESULT = "None"

    RESULT = PS1 PS2

    Please excuse my ignorance on this issue but I'm not sure how to write the formula to achieve the desired results

    Thanks in advance for all of your help,
    Try this:

    Code:
     If "[PS1]" = "None" or "[PS2]" = "None" Then 
       RESULT = "None"
    Else
       RESULT = "[PS1]" & "[PS2]"
    End If
    Or, if you prefer, this:

    Code:
     If "[PS1]" = "None" Then 
       RESULT = "None"
    Elseif  "[PS2]" = "None" Then 
       RESULT = "None"
    Else
       RESULT = "[PS1]" & "[PS2]"
    End If
    More on the syntax of the If statement can be found in this blog article, if you are interested. I did not test any of the above myself, but I think I got the statements right. Post back if there are problems. I also assumed that if the PS1 and PS2 properties are both not "None" that you want to concatenate the values. If that is not the case, you will need to revise the Else statement's RESULT line.

  3. #3
    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: ABS2007 Property Set Formula Help

    Quote Originally Posted by dkoch
    More on the syntax of the If statement can be found in this blog article, if you are interested. I did not test any of the above myself, but I think I got the statements right. Post back if there are problems. I also assumed that if the PS1 and PS2 properties are both not "None" that you want to concatenate the values. If that is not the case, you will need to revise the Else statement's RESULT line.
    Thanks David I was missing two minor things in my formula. The EndIF statement and the quotation marks around my property sets. I added those two items and it's working like a charm. I really need to spend some time learning the code. I'm pretty good with formulas in Excel and I tend to try to use that format in my PS codes.

    Thanks again for your help.
    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 problems in ABS2007.1
    By stelthorst in forum Style Management
    Replies: 5
    Last Post: 2007-12-06, 02:59 PM
  2. Formula Help in ABS2007.1
    By stelthorst in forum Style Management
    Replies: 4
    Last Post: 2007-04-16, 11:22 PM
  3. ABS2007 Property set help
    By stelthorst in forum Style Management
    Replies: 6
    Last Post: 2007-03-27, 12:11 PM
  4. ABS2007 Help with an elevation Property Set for a Mass Element
    By stelthorst in forum Style Management
    Replies: 6
    Last Post: 2007-02-26, 01:57 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
  •