Skip to main content
5-Regular Member
October 21, 2023
Solved

Getting the IBA display Name in Object Initialization Rules

  • October 21, 2023
  • 2 replies
  • 1316 views

Hello,

 

I am trying to set OIR for a WTpart.
I want to get the name from an Enumerated List assigned to an attribute GROUP.
When I create the part I get is the Internal name of the attribute (see part of  the code bellow).

My question is how I get the display name of that attribute.

 

......
<AttrValue id="name" algorithm="wt.rule.algorithm.BooleanBranch">
     <Value algorithm="wt.rule.algorithm.EqualsTest">
             <Attr id="genericType"/>
             <Arg>variant</Arg>
     </Value>

   <Value algorithm="wt.generic.rule.VariantNameGenerator">
             <Arg>{GEN:wt.enterprise.SequenceGenerator:variantnameseq:20:0}</Arg>
    </Value>
   <Value algorithm="wt.rule.algorithm.StringConstant"
          <Attr id="IBA|GROUP"/>
   </Value>
</AttrValue>

 

Thanks in advance

 

 

Best answer by HelesicPetr

Hi @IF_10340601 

You can not use display name in OIR.

But you can set the enumeration to the target parameter, and then you can set the display name based on the internal name.

PetrH

2 replies

17-Peridot
October 23, 2023

Hello @IF_10340601 

Refer to https://www.ptc.com/en/support/article/CS371781

  • Not part of Windchill PDMLink functionality
  • You can refer to Product Ideas @ PTC Community and consider posting a new one.
  • Use Internal Names in OIR as Display Name could be duplicate which may cause discrepancy in the system. Also Display Names could be changed later with Localize option and OIR may not find the required name. Hence using Display Names in OIR is not supported in Windchill
HelesicPetr
22-Sapphire II
22-Sapphire II
October 23, 2023

Hi @IF_10340601 

You can not use display name in OIR.

But you can set the enumeration to the target parameter, and then you can set the display name based on the internal name.

PetrH

5-Regular Member
October 24, 2023

Hello @HelesicPetr 

Thanks.
I will give it a try and see if it works.

 

IoF