Skip to main content
13-Aquamarine
May 2, 2017
Question

Repeat Region Relation to Differentiate Between Contexts

  • May 2, 2017
  • 1 reply
  • 1849 views

My company has one Windchill context for Libraries and one for Products.  I'd like to write a Repeat Region relation that would differentiate between contexts and populate a drawing's BOM accordingly.

 

For example, if the assembly member comes from the Products context, I'd like the asm.mbr.name set to a parameter.  If the assembly member comes from the Libraries context, I'd like the asm.mbr.name to be just that.

 

Something along the lines of...

 

IF

     asm.mbr.PTC_WM_LOCATION==/Products

          asm.mbr.name=A relation-driven parameter in the part

ELSE    

     asm.mbr.name

 

Does anyone have a suggestion for how to access the PTC_WM... parameters?

1 reply

23-Emerald IV
May 2, 2017

Yes, this is possible with repeat region relations.  The parameter is called ASM_MBR_PTC_WM_LOCATION.

13-Aquamarine
May 2, 2017

That's exactly what I was looking for, Tom.  Thank you very much for your help.

2-Explorer
May 3, 2017

Mark Tom Uminn answer as correct , in order to help other users with similar problem.

Regards

Milan Bonka