cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Repeat Region Relation

SOLVED
Sapphire I

Repeat Region Relation

We have the standard bulk item relation in the BOM that sets QQTY to AR if the item is a bulk item part.

I added a second relation that would set the QTY to AR if the number was a certain value. It was a shown item in the drawing, a clamp, that was noted use as many as needed. When I regened the drawing, my item QTY went to AR and the bulk item QTY fields went to blank.

Is there some trick to getting both relations to execute and populate the BOM properly?

Ben

Windchill 10.0 m040

Creo 2.0 m100

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Repeat Region Relation

Right, The last one wins.  The second relation is changing ALL values back to rpt_qty (except for "TPZ-652").  Just remove the "ELSE" section completely from the second set of relations.  You don't need it.

6 REPLIES 6

Re: Repeat Region Relation

Can you share your relations?

Re: Repeat Region Relation

IF asm_mbr_type=="BULK ITEM"

QTY="AR"

ELSE

QTY=rpt_qty

ENDIF

IF asm_mbr_pdm_number == "TPZ-562"

QTY="AR"

ELSE

QTY=rpt_qty

ENDIF

With only the first relation for Bulk Items, all of the bulk item QTY fields go to AR.

When I add the second relation, the QTY filed for TPZ-562 goes to AR and the bulk items all go QTY blank.

Re: Repeat Region Relation

Right, The last one wins.  The second relation is changing ALL values back to rpt_qty (except for "TPZ-652").  Just remove the "ELSE" section completely from the second set of relations.  You don't need it.

Re: Repeat Region Relation

Yea, what Tom said...the way I do it is by combining all in to one continuous IF

IF asm_mbr_type=="BULK ITEM"

QTY="AR"

ELSE

IF asm_mbr_pdm_number == "TPZ-562"

QTY="AR"

ELSE

QTY=rpt_qty

ENDIF

ENDIF

Although I don't rightly remember if I'm supposed to keep the ELSE in the middle or not...always a little trial and error for me.


Steve Williams
Pro/E Version 15/16 (Circa 1995/1996)

Re: Repeat Region Relation

Nested IFs works okay for a limited number of conditions, but if checking for many of them, then I think it's cleaner to keep each one independent.  To each their own! 

Re: Repeat Region Relation

I like this solution best as it does not need the ELSE clause.

Thank you both for the help.