Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

family table & pro/program

Status
Not open for further replies.

otman73

Mechanical
Joined
Apr 20, 2009
Messages
2
Location
US
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


 
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
 
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top