×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

family table & pro/program

family table & pro/program

family table & pro/program

(OP)
Hi all!  Need your assistance on this one.  I have search this forum and other with no luck.

I've got a family table with about 200 instance which may increase with time.   What I've got is a lookup_inst to see if that size part exist in the family table.  If it does than it suppress the 2nd part.   If does not,  I want it to suppress the generic part (with the family table) and use a 2nd part (which does not have a family table).  How do I go about doing this?  Thank You for any input.

INPUT
 SHAFT_OD NUMBER
END INPUT

RELATIONS
TEST_RUBBER = LOOKUP_INST ("MOULD_RUB_SILICONE.PRT", 0, "D0", SHAFT_OD, \
"D1", 0.250)
END RELATIONS

 ADD PART (TEST_RUBBER)
 INTERNAL COMPONENT ID 39
 END ADD

 ADD PART DRIVE_ELASTOMER
 INTERNAL COMPONENT ID 40
 END ADD

 
 

RE: family table & pro/program

Try the following:-

INPUT
 SHAFT_OD NUMBER
END INPUT

RELATIONS
 TEST_RUBBER = LOOKUP_INST ("MOULD_RUB_SILICONE.PRT", 0, "D0", SHAFT_OD, \"D1", 0.250
END RELATIONS

IF TEST_RUBBER <> "MOULD_RUB_SILICONE.PRT"

 ADD PART (TEST_RUBBER)
  INTERNAL COMPONENT ID 39
 END ADD

ELSE

 ADD PART DRIVE_ELASTOMER
  INTERNAL COMPONENT ID 40
 END ADD

END IF

RE: family table & pro/program

(OP)
Thanks for trying but it didn't work.  It suppress the 2nd part regardless and it still gives me the generic part from the family table.  Any other idea?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources